nagios plugin - it's a toggle. stop checking?
hymie!
hymie at lactose.homelinux.net
Sun Feb 6 14:52:46 CET 2011
Greetings.
I have a time period defined thusly:
define timeperiod{
timeperiod_name bacula
alias bacula
tuesday 01:00-20:00
wednesday 01:00-20:00
thursday 01:00-20:00
friday 01:00-20:00
saturday 01:00-20:00
}
This works great. However, this particular plugin could best be described
as a toggle. It monitors a backup process. It starts as "WARNING"
when the backup is waiting/running and becomes "OK" when the backups
completes. At that point, there's no need to spend my time, cycles, or
network checking it.
So is there a way that I can tell my Nagios plugin "Now that you've got
an OK status, go to sleep and wake up when the time period starts again"?
I've been using "Adaptive Monitoring" to reset the "next check" time
with SCHEDULE_FORCED_SVC_CHECK, but that isn't doing quite what I want.
I really want a time period that runs from 1:00 until whenever the
status becomes OK.
Thanks.
--hymie! http://lactose.homelinux.net/~hymie hymie at lactose.homelinux.net
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
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