Scheduled Downtime via Cron

nagios at acmecargo.com nagios at acmecargo.com
Tue Jan 6 00:13:41 CET 2004


I'm using the two scripts provided by Sam Tilders on the Nagios Download 
page. I've updated the "CommandFile=" path to point to my nagios.cmd file 
and both scripts are chmod 755. When I try to run the command as suggested 
in the schedule_host_downtime script I get the following:

[root at host]# /usr/local/nagios/libexec/schedule_host_downtime host "`date 
--iso-8601` 05:00:00" "`date --iso-8601` 06:00:00" 1 3600 cron "scheduled 
maintenance"
: bad interpreter: No such file or directoryst_downtime: /bin/sh

I'm running this on RedHat 8.0. Any suggestions?

Dylan



-------------------------------------------------------
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