EXTERNAL COMMANDS from Script
Posted: Mon Feb 09, 2015 10:32 am
Hi,
I am having problem getting EXTERNAL COMMAND to work when send the command directly to the nagios.cmd file.
When I run from a script all I get in the log file is...
From Script
[1423495647] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;Laserjet-3015;1423495646;1423496246;1;0;7200,martin.stevens;test-from-script
When I work through the Web GUI, it also triggers the HOST DOWNTIME ALERT
From WebUI
[1423495661] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;Laserjet-3015;1423495618;1423502818;1;0;7200;Martin Stevens(Systems Administrator);Testing
[1423495661] HOST DOWNTIME ALERT: Laserjet-3015;STARTED; Host has entered a period of scheduled downtime
Permissions wouldn't seem to be the issue, as I can insert the command.
Any ideas ?
Martin
I am having problem getting EXTERNAL COMMAND to work when send the command directly to the nagios.cmd file.
When I run from a script all I get in the log file is...
From Script
[1423495647] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;Laserjet-3015;1423495646;1423496246;1;0;7200,martin.stevens;test-from-script
When I work through the Web GUI, it also triggers the HOST DOWNTIME ALERT
From WebUI
[1423495661] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;Laserjet-3015;1423495618;1423502818;1;0;7200;Martin Stevens(Systems Administrator);Testing
[1423495661] HOST DOWNTIME ALERT: Laserjet-3015;STARTED; Host has entered a period of scheduled downtime
Permissions wouldn't seem to be the issue, as I can insert the command.
Any ideas ?
Martin