<p>That is really strange. Have you tried changing its ip to an invalid one and see if you can recreate the problem?</p>
<div class="gmail_quote">On Aug 28, 2012 5:29 PM, "Net Warrior" <<a href="mailto:netwarrior863@gmail.com">netwarrior863@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for your advice, I know what you mean, but this is not the case<br>
unfortunately, In the logs I can see the 3 time check was reached and<br>
the alarm did not fired, now the server is up and I did not get the<br>
notification the server is back on line either.<br>
<br>
Is critical and not SOFT for the host and the service<br>
[1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out)<br>
[1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL -<br>
Socket timeout after 30 seconds<br>
<br>
[1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss =<br>
0%, RTA = 4.84 ms<br>
<br>
This is weird.<br>
<br>
Thanks for your time and support<br>
Regards<br>
<br>
<br>
2012/8/28 Travis Runyard <<a href="mailto:travisrunyard@gmail.com">travisrunyard@gmail.com</a>>:<br>
> Your should look at the log before the service notification was suppressed<br>
> because the host was down. I'm 90% sure the reason why your host down<br>
> notification was not sent was because the host was in a soft state type and<br>
> came back online before it was determined to be in a hard state. And you<br>
> didn't post your linux-server template config so you will have to check your<br>
> and retry_interval definition.<br>
><br>
> For my host objects I set a retry_interval of 1 and max_check_attemps of 2<br>
> in the template so I get notified a little quicker when a host goes down.<br>
><br>
> <a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html</a><br>
><br>
> -Travis Runyard<br>
><br>
> On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior <<a href="mailto:netwarrior863@gmail.com">netwarrior863@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi there guys.<br>
>><br>
>> I have face something weird, I did not get a notificationn of a down<br>
>> state for a particular host,<br>
>> this is the host config.<br>
>><br>
>> define service{<br>
>>         use                             local-service         ; Name<br>
>> of service template to use<br>
>>         host_name                       hostname<br>
>>         service_description             SSH<br>
>>         check_command                   check_ssh<br>
>>         flap_detection_enabled          0<br>
>>         notifications_enabled           1<br>
>>         notification_options            w,u,r,c<br>
>>         check_period                    24x7<br>
>>         check_interval                  1<br>
>>         max_check_attempts              3<br>
>>         first_notification_delay        0<br>
>>         notification_interval           10<br>
>> }<br>
>><br>
>><br>
>><br>
>> define host{<br>
>>         use                     linux-server            ; Name of host<br>
>> template to use<br>
>>                                                         ; This host<br>
>> definition will inherit all variables that are defined<br>
>>                                                         ; in (or<br>
>> inherited by) the linux-server host template definition.<br>
>>         host_name                       hostname<br>
>>         alias                           the alias<br>
>>         address                         x.x.x.x<br>
>>         contact_groups                  admins<br>
>>         contacts                        nagiosadmin<br>
>>         check_interval                  1<br>
>>         max_check_attempts              3<br>
>>         notification_interval           10<br>
>>         flap_detection_enabled          0<br>
>>         first_notification_delay        0<br>
>>         }<br>
>><br>
>> and in the logs I got<br>
>> [1346196987.097821] [032.0] [pid=21145] ** Service Notification<br>
>> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,<br>
>> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969<br>
>> [1346196987.097843] [032.1] [pid=21145] The host is either down or<br>
>> unreachable, so we won't notify contacts about this service.<br>
>> [1346196987.097851] [032.0] [pid=21145] Notification viability test<br>
>> failed.  No notification will be sent out.<br>
>><br>
>> The host is either down or unreachable --- Of coure, so why the<br>
>> notification was not fired?<br>
>><br>
>> Any idea what could be wrong?, I got some notification with other host<br>
>> and all have the same configuration, I have already restarted nagios<br>
>><br>
>> Thanks for your time and support<br>
>> Best regards.<br>
>><br>
>><br>
>> ------------------------------------------------------------------------------<br>
>> Live Security Virtual Conference<br>
>> Exclusive live event will cover all the ways today's security and<br>
>> threat landscape has changed and how IT managers can respond. Discussions<br>
>> will include endpoint security, mobile security and the latest in malware<br>
>> threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
>> _______________________________________________<br>
>> Nagios-users mailing list<br>
>> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
>> ::: Please include Nagios version, plugin version (-v) and OS when<br>
>> reporting any issue.<br>
>> ::: Messages without supporting info will risk being sent to /dev/null<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> Live Security Virtual Conference<br>
> Exclusive live event will cover all the ways today's security and<br>
> threat landscape has changed and how IT managers can respond. Discussions<br>
> will include endpoint security, mobile security and the latest in malware<br>
> threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when reporting<br>
> any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div>