Scheduled "maintenance"
John R. Daily
jdaily at apparatus.net
Tue Nov 27 06:19:25 CET 2007
We wrote a couple of tools to assist with this scenario. I'm
attaching them.
They leverage an external tool which we wrote to parse the Nagios
configuration and identify/verify hosts, but that dependency can be
removed easily.
We run them from cron. Examples:
55 03 * * * /etc/nagios/tools/toggle-host-notifications --off server1
05 04 * * * /etc/nagios/tools/toggle-host-notifications --on server1
00 02 * * * /etc/nagios/tools/toggle-service-notifications --off --
service "HTTP redirect" server3.domain.com
40 02 * * * /etc/nagios/tools/toggle-service-notifications --on --
service "HTTP redirect" server3.domain.com
-John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toggle-host-notifications.pl
Type: text/x-perl-script
Size: 1619 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071127/91f4a3de/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toggle-service-notifications.pl
Type: text/x-perl-script
Size: 1706 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071127/91f4a3de/attachment-0001.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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