Scheduled Downtime via Cron

nagios at acmecargo.com nagios at acmecargo.com
Tue Jan 6 21:10:13 CET 2004


In addition, I can execute only the 
/usr/local/nagios/libexec/schedule_host_downtime host script and I get the 
same message:

/usr/local/nagios/libexec/schedule_host_downtime host

Dylan

At 02:52 PM 1/6/2004, you wrote:
>/bin/sh is a link to /bin/bash. Not that it matters but I changed the 
>schedule_host_downtime script to use /bin/bash but get the same error. As 
>for the user, I'm running the command from CLI as root.
>
>Is anybody else using this script from the nagios.org download extras page?
>
>At 11:39 AM 1/6/2004, you wrote:
>
>
>> > -----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&opick
>>_______________________________________________
>>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
>
>
>
>
>-------------------------------------------------------
>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




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