Conditional checks between different hours?

Greg Pangrazio pangrazi at gmail.com
Tue Sep 21 21:09:02 CEST 2010


I have in the past used a wrapper script that took the different
inputs and issued the command differently based on the time of day.
The answer is that it looks the same to nagios but the return value
from the plugin (my wrapper) is different based on time of day.
Basically my script called the original command with different inputs
and passed what ever it got back to nagios.

I don't have any examples right now but I have done it in the past and
it worked fine.

Greg Pangrazio





On Tue, Sep 21, 2010 at 1:14 PM, Scott Lofland <SLofland at slco.org> wrote:
>
>>-----Original Message-----
>>From: Jim Avery [mailto:jim at jimavery.me.uk]
>>
>>On 20 September 2010 16:27, Ricardo F <rikr_ at hotmail.com> wrote:
>>>
>>> Hello,
>>>     Is it possible to put different checks values
>>> (max_check_attempts, retry_check_interval, normal_check_interval, notification_interval)
>>> and check each one if is one hour on another?
>>
>>I'm pretty sure it isn't (not without a cludge of some sort anyway).
>>
>>I'm intrigued to know what would drive such a requirement as I don't
>>think you're the first to ask this and doubt you'll be the last.
>>
>
> I've been about this type of functionality in my environment to take into account variable network and hardware conditions based on expected high user load at different times of the day as well as differing loads on different network segments during standard backup times or regular maintenance windows.
>
> _______________________________________________
> 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
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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