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:[email protected]]
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
<[email protected]<mailto:[email protected]>> wrote:
On 2 July 2010 00:56, Jaden Bentley
<[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
[email protected]
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