Scripting downtime

Marc Powell marc at ena.com
Tue Apr 13 18:43:39 CEST 2004


Actually, http://nagios.sourceforge.net/docs/1_0/extcommands.html is a
better and more complete reference than potentially interfering with
external commands that are being submitted.

--
Marc 

________________________________

From: Jon Lyons [mailto:jlyons30 at yahoo.com] 
Sent: Tuesday, April 13, 2004 11:13 AM
To: Jason Martin; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Scripting downtime


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 cou! ld 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?
	



-------------------------------------------------------
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_id70&alloc_id638&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