Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have Icinga installed on a machine with the basic configuration and we just use the Host Status Detail screen with a big monitor only to know when a machine is down due to network/eletrical problems. But it takes too long to update the ping times (+1min). I'd like to know how to decrease this ping time to 30 seconds to all machines (just 15 machines) and how to decrease the refresh display time from the webpage.

I did play with some values, mainly interval_length inside icinga.cfg (60 to 30) but with no effect.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

interval_length is a global config item, you should not mess around with that.

if you really want to push values more often into the core, you should consider running that script by yourself, say in 30sec interval, pushing its results into the command pipe as passive check result - which is considered a workaround, but changing your host config object to passive checks only will work then. if your script fails somehow, make sure to enable freshness checks then.

that will be changed in icinga2 config format, which will understand different time formats (and seconds as well). but it's too soon to make promises here, though you can test the first tech preview as announced on icinga.org

share|improve this answer
    
So are you saying that I can't do any of this with Icinga, changing icinga's cfg files, right now? –  StackUnder Oct 29 '12 at 18:50
    
I'm saying you cannot do it via active checks, but rather should configure passive service checks in your config, pushing the results in a more frequent interval - that option works, and is used in some of my environments. freshness checks are ofc enabled to see when something did go wrong (no results received in a timely manner, freshness threshold). –  dnsmichi Nov 13 '12 at 16:10
    
Can you show me how to do this (tutorial link/snippet) ? –  StackUnder Nov 13 '12 at 19:09
1  
try docs.icinga.org/latest/en/freshness.html for the general explaination on freshness checks, as well as the documentation on passive checks and their usage here: docs.icinga.org/latest/en/passivechecks.html decreasing the check_interval may be reasonably possible with floats too (undocumented as it's dangerous with the current architecture). –  dnsmichi Jun 8 '13 at 13:41

If you want to change the ping intervals please change them either in the command-icinga.conf you can also configure the fpingv4 or pingv4 command for each host then in each host you use vars.ping_packets or vars.fping_interval.

One can use the fping command where you can specify the size of the packets and the frequency at which they can be used.

However be careful when using fping command there is currently a bug in the command-icinga.conf that the developers have yet to fix that is :

"host" = {
                        value = "$fping_address$"
                        skip_key = true
                        order = -1
                }
                "-4" = ""

in the command-icinga.conf file. Please relate to this thread for further detail: http://www.monitoring-portal.org/wbb/index.php?page=Thread&postID=211605&highlight=#post211605

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.