Check_Ping plugin not Incrementing Check Attempt Value
Claudio Kuenzler
ck at claudiokuenzler.com
Tue Jan 31 10:03:44 CET 2012
Yes, you're right.
But what's strange in your log are also the missing SOFT states, where are
they?
Did you define the service to be checked only once (max_check_attempts 1),
every minute (check_interval and retry_interval 1) ?
Here's an example of a typical soft-to-hard-change:
Jan 31 05:15:09 nagios-server nagios: SERVICE ALERT: fileserver;Drive Space
F:;WARNING;SOFT;1;f:\ - total: 49.99 Gb - used: 45.80 Gb (92%) - free 4.19
Gb (8%)
Jan 31 05:18:09 nagios-server nagios: SERVICE ALERT: fileserver;Drive Space
F:;WARNING;SOFT;2;f:\ - total: 49.99 Gb - used: 45.80 Gb (92%) - free 4.19
Gb (8%)
Jan 31 05:21:09 nagios-server nagios: SERVICE ALERT: fileserver;Drive Space
F:;WARNING;HARD;3;f:\ - total: 49.99 Gb - used: 45.80 Gb (92%) - free 4.19
Gb (8%)
The 3rd check was handled as HARD state. I'm sure you know how that all
works, but the missing SOFT states are strange anyhow.
Could you post the complete definition of this service? Maybe that'll give
us a hint.
Another question: Is the "Ping Check" used for the same host for which the
check is defined for (host_name) or is this just a ping to another remote
host? If the line was down, the target host was definitely down as well,
and for Nagios it wouldn't make sense to send notifications for the
services defined on a host which is down.
On Mon, Jan 30, 2012 at 8:55 PM, Robert V. Bolton
<robert at robertvbolton.com>wrote:
> On Mon, Jan 30, 2012 at 11:39 AM, Claudio Kuenzler <ck at claudiokuenzler.com
> > wrote:
>
>> It looks like you use parent-child-relationships?
>> That would explain why it's written "Host Unreachable (172.21.10.170) "
>> instead of Host Down.
>> Was the parent of this host down as well? In this case, Nagios 'knows'
>> that it doesn't make sense to continue checks on the child hosts.
>>
>
> This host is duel homed using both Ethernet and Infiniband networks. To
> Nagios's point of view the parent of this host is the Ethernet switch that
> it is plugged into, which didn't go down at all during this outage. Host
> Unreachable is a valid ICMP code, so that's why the plugin reported this
> error, not because of any Nagios parent/child relationship.
>
> So in this situation Nagios should have increased the check attempts count
> by one until the max check attempts threshold was reached, thus sending out
> a service notification. Is this an error in Nagios or the check_ping
> plugin. I'm using Nagios v3.2.3 and check_ping v1.4.15 by the way.
>
> --
> *Robert V. Bolton*
> Email: robert at robertvbolton.com
> Web: http://robertvbolton.com
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120131/89a35579/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
-------------- next part --------------
_______________________________________________
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