randomize a service's check interval

Jaden Bentley jaden.bentley at gmail.com
Fri Jul 2 08:35:17 CEST 2010


On Thu, Jul 1, 2010 at 5:12 PM, Jim Avery <jim at jimavery.me.uk> wrote:

> On 2 July 2010 00:56, Jaden Bentley <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100701/d34204a9/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