[Nagios-users] max_check_attempts over time

Daniel Wittenberg daniel.wittenberg.r0ko at statefarm.com
Thu Dec 23 14:38:41 UTC 2010


What if it doesn't write to the eventlog?  We have some strange apps
here...

Dan

-----Original Message-----
From: Jim Avery [mailto:jim at jimavery.me.uk] 
Sent: Thursday, December 23, 2010 7:16 AM
To: Nagios Users List
Subject: Re: [Nagios-users] max_check_attempts over time

On 22 December 2010 19:42, Daniel Wittenberg
<daniel.wittenberg.r0ko at statefarm.com> wrote:
> I want to know if a service restarts 3 times in one hour.
>
> Right now I can only find a way to do 3 times, ever, using
max_check_attempts.
>
> Better ?
>
> Dan

If the service writes an event to the Windows event log each time it
restarts then I would think it should be easy to query NSClient++ to
alert if there are more than 3 such events in the last hour.

See:
http://nsclient.org/nscp/wiki/CheckEventLog/CheckEventLog

Note the new syntax for CheckEventLog is a whole lot easier now than
it was in previous versions, so if you're not using the up-to-date
version of NSClient++, then I recommend you upgrade.

If you're not using NSClient++, please state what agent (if any) you are
using.

hth,

Jim

------------------------------------------------------------------------
------
Learn how Oracle Real Application Clusters (RAC) One Node allows
customers
to consolidate database storage, standardize their database environment,
and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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 Nagios-users mailing list