randomize a service's check interval

Gius, Mark mgius at createspace.com
Fri Jul 2 17:44:01 CEST 2010


You'll also probably want to set up freshness checking for this service, so that if the script stops sending in data, Nagios will take steps to manually scrape the info, or restart the script.

http://nagios.sourceforge.net/docs/3_0/freshness.html

-Gius

From: Jaden Bentley [mailto:jaden.bentley at gmail.com]
Sent: Thursday, July 01, 2010 11:35 PM
To: Nagios Users List
Subject: Re: [Nagios-users] randomize a service's check interval

On Thu, Jul 1, 2010 at 5:12 PM, Jim Avery <jim at jimavery.me.uk<mailto:jim at jimavery.me.uk>> wrote:
On 2 July 2010 00:56, Jaden Bentley <jaden.bentley at gmail.com<mailto:jaden.bentley at gmail.com>> wrote:
> The only idea I've had so far involves changing the service check interval
> to something large (say 60 minutes), as a 'fallback' in case of failure, and
> then having the service check itself re-schedule itself by sending nagios a
> command.  I'm not sure that would work and it seems pretty ugly and I'm not
> sure if it would be that easy to implement (mostly because I haven't worked
> with manual nagios commands before).
> Can anyone think of a better way?

You can set up the check as a passive check in Nagios.  Run the check
from a similar looping script like you had before to do the random
timing stuff and have it send the result back to nagios either
directly using the command interface or using send_nsca and have nsca
submit the result to Nagios.

See:

http://nagios.sourceforge.net/docs/3_0/passivechecks.html

and the nsca_wrapper script is useful for such stuff.  See:

http://exchange.nagios.org/directory/Addons/Passive-Checks/NSCA-Wrapper/details



That makes a lot of sense.  Don't know why I didn't think of that.  Thank you very much!!

--
Jaden Bentley
jaden.bentley at gmail.com<mailto:jaden.bentley at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100702/ff979573/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
-------------- 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