setting a schedule on check
Richard Luys
richard.luys at vanderlet.nl
Fri Jul 2 11:06:03 CEST 2004
On Fri, 02 Jul 2004 01:48:00 -0500, Neil
<neil-on-nagios at restricted.dyndns.org> wrote:
> Hey guys, I would like to setup a check that should only be executed
> between 12:45am and 1:00am, daily. How can I do this? Thanks. Neil
>
Create an entry in 'timeperiods.cfg' specific for this task. Use the
'check_period' directive with the name of the defined timeperiod as
parameter in the host or service check you like to execute in that
specific timeperiod.
This should work if Nagios is running smoothly without great delays. If
Nagios is too busy during that timeperiod to run the scheduled checks,
it's possible that the check is delayed or not run at all...
Other option: Use a cron-job to schedule the check, and let it send it's
result to Nagios as a passive check. See the Nagios documentation for
details on Passive Checks.
Hope this answers your question, or at least gives you some hints on how
to proceed...
---
Richard Luys
Unix Specialist
Vanderlet B.V.
The Netherlands
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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