Too many notifications

Ian Chilton mailinglist at ichilton.co.uk
Sun Mar 2 18:37:19 CET 2003


Hello,

>  How can I set up nagio, so that notifications are ONLY sent out after
>  a certain number of tests?


In hosts.cfg, when you setup the host, use something like this:

max_check_attempts      5

This means, when the host is found down, it is only marked as "soft
down" - it needs to fail 5 checks to be marked as "hard down" and a
notification to be sent. Or, as the docs describe it:

max_check_attempts: This directive is used to define the number of times
that Nagios will retry the host check command if it returns any state
other than an OK state. Setting this value to 1 will cause Nagios to
generate an alert without retrying the host check again. Note: If you do
not want to check the status of the host, you must still set this to a
minimum value of 1. To bypass the host check, just leave the
check_command option blank.  


Hope this helps

--ian



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list