Am running the following script via cron to schedule the downtime of a service each evening:

*#!/bin/sh

now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'

printf "[%lu] SCHEDULE_SVC_DOWNTIME;RPL-MORRIS;Lotus Notes Service;1110741500;1110748700;1;0;7200;1533;TELF - Scheduled Lotus Notes Service Downtime\n" $now > $commandfile
*
This runs correctly and dumps the following message into /var/log/messages:

*May 4 19:54:47 RPL-RENAULT nagios: EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;RPL-MORRIS;Lotus Notes Service;1110741500;1110748700;1;0;7200;1533;TELF - Scheduled Lotus Notes Service Downtime*

And the following into the Nagios Event Log:

*[04-05-2006 19:54:47] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;RPL-MORRIS;Lotus Notes Service;1110741500;1110748700;1;0;7200;1533;TELF - Scheduled Lotus Notes Service Downtime*

The problem I am having is that the downtime never gets shown on the Downtime screen within Nagios and therefore never gets run :(

Does anyone have any suggestions?

Thanks.

Pete.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to