deferring a notification

Andreas Ericsson ae at op5.se
Tue Oct 2 15:40:45 CEST 2007


Melanie Pfefer wrote:
> hi
> we have a weekly reboot for a server at midnight and
> we want nagios to defer the notification e-mail till
> morning.
> 
> How to do that?

Short answer: You can't.

Long answer: Write a script that adds a "to-send" email file in mbox format
(or some such) somewhere on the server, and have your cron run a script that
sends those out whenever appropriate. The notification command script should
ofcourse only queue mail for when you don't want to send it, and otherwise
send it immediately.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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