Scripting downtime
Jon Lyons
jlyons30 at yahoo.com
Tue Apr 13 18:12:35 CEST 2004
Just add some scripting to the customers scripts that will execute an expect or perl script that;
cat "DISABLE_SVC_CHECK;Name_of_object;PING" >> nagios.cmd
Do tail -f nagios.cmd file for more examples.....
Jason Martin <jhmartin at toger.us> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a situation where I need to script arbitrarily-long downtime and am
not quite sre how to approach it. I have an application that spans
several machines. Every night a script is lauched by someone that shuts
down the application, and some hours later anothe script is executed to
start it back up again. The customer would like alarms squelched during
thd downtime, but re-enabled as soon as the application is back up. The
downtime is different every night depending on what sort of mainenance is
being performed. For that reason the simple solution of making the
notification / check periods exclude the maintenance window won't work.
Scheduling downtime doesn't work very well either since the script that
brings the application down won't know how long it will be down.
I could modify the app-specific plugins to look for a 'flag-file' touched
by the shutdown script and removed by the startup script and always return
OK if they see it, but that feels like a hack-ish solution.
I also can't disable all checks / notifications as this Nagios instance is
monitoring several applications with disparate maintenance windows.
Has anyone had experience with such a situation?
Thanks,
- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
iD8DBQFAfAzCl2ODWuqVSBMRApZ4AKCV8qsl04vA/WqwGHxv6+nhTvx6NACfTBmo
htzcwcTuQ0hu6NGesGIvXk4=
=pvXi
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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
---------------------------------
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040413/7f34b893/attachment.html>
More information about the Users
mailing list