Scripting downtime

Jason Martin jhmartin at toger.us
Tue Apr 13 17:52:28 CEST 2004


-----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





More information about the Users mailing list