Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread James Pratt
is the apparent issue - as you say - it runs correctly otherwise. Jamie From: Parkman, Mikhail [mailto:mikhail_park...@cable.comcast.com] Sent: Friday, March 30, 2012 8:43 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios The script

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread Parkman, Mikhail
...@norwich.edu] Sent: Friday, March 30, 2012 12:19 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Yes I agree with Ed as well on the remote stuff - And yes, the *nix OS determines what shell/program (eg perl/bash/sh/zsh etc) to execute the

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread James Pratt
user - that is all that is left in your case it seems (?) From: Edwin Zoeller [mailto:edwin.zoel...@ama-assn.org] Sent: Friday, March 30, 2012 3:11 PM To: 'nagios-users@lists.sourceforge.net' Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios If this is

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread Edwin Zoeller
heck commands matches the remote entry Ed From: Parkman, Mikhail [mailto:mikhail_park...@cable.comcast.com] Sent: Friday, March 30, 2012 01:50 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Actually I verified that this script runs fi

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread Parkman, Mikhail
uld I su - nagios user anyway? And responding to Edwin's question, it is on local host. Thanks. Mikhail. From: James Pratt [mailto:jpr...@norwich.edu] Sent: Friday, March 30, 2012 11:33 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Na

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread Edwin Zoeller
Is be run on a remote host or local? From: Parkman, Mikhail [mailto:mikhail_park...@cable.comcast.com] Sent: Friday, March 30, 2012 12:27 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread James Pratt
March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_namedlg_notificat

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread James Pratt
Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_namedlg_notifications command_

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread Parkman, Mikhail
To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling

Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread James Pratt
Jamie From: Parkman, Mikhail [mailto:mikhail_park...@cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{

[Nagios-users] how to associate /bin/bash with shell script in Nagios

2012-03-30 Thread Parkman, Mikhail
Hello, I have the following command: define command{ command_namedlg_notifications command_line/bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_descript