patch: changing a service check command depending on time of day

Hendrik Baecker andurin at process-zero.de
Fri Apr 27 14:13:24 CEST 2007


Hi Duncan,

realy nice idea, but why don't you take the adaptive monitoring feature
for this?

It is not as nice to configure like your example, but doesn't need your
nagios hack.

Some kind of cronjob or eventhandler on the right place to execute the
external command "CHANGE_SVC_CHECK_COMMAND" should do the trick.

See more on this:
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=108

Just an idea.

Regards
Hendrik

Duncan Ferguson schrieb:
> Hello Ethan & list,
>
> I have added some functionality to nagios to allow for overriding a
> check command for a service depending on the time of day (so for
> example checking the system load during the day can have x limits set,
> but change them to y for when batch processing is run over night).
>
> The patch is available on the blog
> at http://altinity.blogs.com/dotorg/2007/04/changing_a_serv.html
>
> Comments and suggestions welcome.
> Thanks
>
>   Duncs
>
> -- 
> Duncan Ferguson
>
> Opsview - Making Nagios Easier
>
> http://www.altinity.com
> Tel: +44 (0)870 787 9243
> Fax: +44 (0)845 280 1725
> Skype: duncan_j_ferguson
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list