Nagios Core 3.2.0<br>nagios-plugins-1.4.14<br>Ubuntu server 8.04.3 LTS<br><br>Hi,<br><br>I'm encountering problems to configure the notifications in case a server is no more responding to PING (ICMP).<br>I don't understand why Nagios is jumping over steps when it's doing service-check "icmp".<br>
Here is the config :<br><br><span style="font-family: courier new,monospace;">define host{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> use </span><span style="font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">generic-server</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> host_name </span><span style="font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">server1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> alias </span><span style="font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">server1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> address </span><span style="font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">the.ip.the.ip</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> hostgroups </span><span style="font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">prod-servers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> contact_groups </span><span style="font-family: courier new,monospace;"> </span><span style="font-family: courier new,monospace;">group1</span><br><span style="font-family: courier new,monospace;"> check_command check-host-alive</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> check_period 24x7</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> check_interval 5</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> retry_interval 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> max_check_attempts 4</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"> notification_period 24x7</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> notification_interval 60</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> notification_options d,u,r</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">define service{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> use generic-service</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> host_name server1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> service_description ICMP</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> check_command check_icmp!100.0,20%!500.0,60%</span><br><span style="font-family: courier new,monospace;"> max_check_attempts 4</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> normal_check_interval 5</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> retry_check_interval 1</span><br><span style="font-family: courier new,monospace;"> notification_options w,u,c,r</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> notification_interval 60</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> notification_period 24x7</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}<br>[...]<br><span style="font-family: courier new,monospace;">define command{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> command_name check-host-alive</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">define command{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> command_name check_icmp</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;">
[...]<br style="font-family: courier new,monospace;"></span><br><span style="font-family: arial,helvetica,sans-serif;"></span>Here is an example of history that I get :<br>
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Service Critical" title="Service Critical" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:33:13] SERVICE ALERT: server1;ICMP;CRITICAL;SOFT;1;CRITICAL - </span><span style="font-family: courier new,monospace;">the.ip.the.ip</span><span style="font-family: courier new,monospace;">: rta nan, lost 100%</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:33:43] HOST ALERT: server1;DOWN;SOFT;1;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Service Critical" title="Service Critical" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:34:13] SERVICE ALERT: server1;ICMP;CRITICAL;HARD;1;CRITICAL - </span><span style="font-family: courier new,monospace;">the.ip.the.ip</span><span style="font-family: courier new,monospace;">: rta nan, lost 100%</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:34:43] HOST ALERT: server1;DOWN;SOFT;2;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:35:23] HOST ALERT: server1;DOWN;SOFT;3;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:36:33] HOST ALERT: server1;DOWN;HARD;4;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/recovery.png" alt="Host Up" title="Host Up" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:37:43] HOST ALERT: server1;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.67 ms</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/recovery.png" alt="Service Ok" title="Service Ok" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:39:13] SERVICE ALERT: server1;ICMP;OK;HARD;1;OK - the.ip.the.ip</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">: rta 0.943ms, lost 0%</span><br>
<br>Or later :<br>
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:42:03] HOST ALERT: </span><span style="font-family: courier new,monospace;">server1</span><span style="font-family: courier new,monospace;">;DOWN;SOFT;1;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:43:13] HOST ALERT: </span><span style="font-family: courier new,monospace;">server1</span><span style="font-family: courier new,monospace;">;DOWN;SOFT;2;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Service Critical" title="Service Critical" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:44:13] SERVICE ALERT: </span><span style="font-family: courier new,monospace;">server1</span><span style="font-family: courier new,monospace;">;ICMP;CRITICAL;HARD;1;CRITICAL - </span><span style="font-family: courier new,monospace;">the.ip.the.ip</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">: rta nan, lost 100%</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/critical.png" alt="Host Down" title="Host Down" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:44:43] HOST ALERT: </span><span style="font-family: courier new,monospace;">server1</span><span style="font-family: courier new,monospace;">;DOWN;SOFT;3;(Host Check Timed Out)</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/recovery.png" alt="Host Up" title="Host Up" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:45:53] HOST ALERT: </span><span style="font-family: courier new,monospace;">server1</span><span style="font-family: courier new,monospace;">;UP;SOFT;4;PING OK - Packet loss = 0%, RTA = 0.64 ms</span><br style="font-family: courier new,monospace;" clear="all">
<img style="font-family: courier new,monospace;" src="http://enacnagios.epfl.ch/nagios/images/recovery.png" alt="Service Ok" title="Service Ok" align="left"><span style="font-family: courier new,monospace;">[2010-02-16 11:49:13] SERVICE ALERT: </span><span style="font-family: courier new,monospace;">server1</span><span style="font-family: courier new,monospace;">;ICMP;OK;HARD;1;OK - </span><span style="font-family: courier new,monospace;">the.ip.the.ip</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">: rta 0.948ms, lost 0%</span><br>
<br>Someone any clue?<br><br>Regards,<br>Samuel Bancal<br>-- <br>Samuel <span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Bancal</span> - CH<br>