Roberto, Take a look at Aaron Segura's nagios_down script, it does exactly what you need. I have used it several times for scheduling recurring maintenance windows.
http://www.monitoringexchange.org/inventory/Utilities/AddOn-Projects/Downtimes/Downtime-Scheduling-Utility I even have a wrapper for it that will allow any of our sysadmins to remotely schedule downtime for any hosts and/or services from the command line (unfortunately I can't release it as it has quite a few dependencies on our internal environment). For those who are suggesting just changing the timeperiod for the checks, that doesn't do exactly the same thing as downtime. Downtime will allow you to keep monitoring the host(s) while not sending notifications and/or affecting the uptime statistics. Roberto R. Morelli wrote: > Marty, > > Any chance of sharing that script ? > > Cheers, > Roberto > > > --On March 2, 2010 8:37:21 PM +1100 Martin Barry <[email protected]> > wrote: > >> >> At $JOB[-1] we implemented this by writing a script that echoed the >> correct >> "schedule downtime" syntax into the command FIFO. It took hostname, >> start >> time and duration as arguements. >> >> It was then a matter of having a crontab file which called the script >> with >> the appropriate arguements. >> >> We found this a simpler and more flexible method than adjusting time >> schedules inside Opsview. >> >> cheers >> Marty >> -- Dan Rich <[email protected]> | http://www.employees.org/~drich/ | "Step up to red alert!" "Are you sure, sir? | It means changing the bulb in the sign..." | - Red Dwarf (BBC) _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
