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

Duncan Ferguson duncan.ferguson at altinity.com
Fri Apr 27 14:20:19 CEST 2007


Hi Hendrik,

I did consider it, but thought adding the check directly to nagios  
would keep it easier to manage in the long run (especially since most  
of the code is already there and it was just a few additions to  
enable it) , rather than trying to keep track of cron jobs.

Thanks

   Duncs

On 27 Apr 2007, at 13:13, Hendrik Baecker wrote:

> 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/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



-- 
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/




More information about the Developers mailing list