Scheduled Downtime via Cron

Marc Powell marc at ena.com
Tue Jan 6 17:39:31 CET 2004



> -----Original Message-----
> From: nagios at acmecargo.com [mailto:nagios at acmecargo.com]
> Sent: Monday, January 05, 2004 5:14 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Scheduled Downtime via Cron
> 
> 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?

While the output appears garbled, it seems to indicate that /bin/sh does
not exist or is not executable by the user you are running the program
as (more likely the former).

--
Marc



-------------------------------------------------------
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_id78&alloc_id371&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