regular scheduled maintenance

dave at homer.cymry.org dave at homer.cymry.org
Wed Dec 24 10:09:40 CET 2003


On Wed, Dec 24, 2003 at 11:33:21AM +0000, John P. Looney wrote:
>  I've nagios setup to email me when stuff goes down.
> 
>  One server, a win2k webserver is restarted around 02:00 every day, so
> it'll be vaugely stable during the day. Is there anyway of telling nagios
> not to mail me then ?
> 
>  Can I use cron to set "don't notify" and "now notify again" for that
> particular server ?
> 
> John

the following cron line should work

58 1 * * *  root  echo "`date '+%s'`;DISABLE_HOST_SVC_NOTIFICATIONS;win2kserver"
>> /usr/local/nagios/var/rw/nagios.cmd

that presupposes:
1. that you have external command checks enabled (see the docs)
2. that your external commands file is in /usr/local/nagios/var/rw (see the docs)
3. that your server is called "win2kserver"


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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