[Nagios-users] (no subject)

2012-03-30 Thread yves laurent
 yveslore...@yahoo.fr Yves-laurent SOUMELONG EWOUNE Elève Ingénieur Polytechnique Yaoundé Option Informatique, 5e année Membre JCI - YDE EXCEL www.jci.cc CEO Intelligentsia Corporation www.intelligentsiacorporation.com Tél: +237 96 78 00 19  "Faillir mourir ne change rien, mourir change t

[Nagios-users] The router - two providers - only one can be up

2012-03-30 Thread Esteban Monge
Hi folks: I have the following scenario: One router with two interfaces, each interfaces have one different internet provider. When the primary link is up, the secundary link is down, when the primary internet provider fails, the secundary link up and waiting to solve the problem of the primary l

Re: [Nagios-users] The router - two providers - only one can be up

2012-03-30 Thread Mike Guthrie
You could monitor this using Nagios BPI. You can create a business process out of these two hosts and then monitor the business process so that you only get alerted if both hosts are down. http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-%28BPI%29/detai

[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

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

2012-03-30 Thread James Pratt
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 bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman,

[Nagios-users] AUTO: Eliot Picken is out of the office (returning 10/04/2012)

2012-03-30 Thread Eliot Picken
I am out of the office until 10/04/2012. I am currently out of the office on leave, and your email has not been forwarded. For emergency issues, please contact Alex Lawrie on +44 (0) 1224 894 000 otherwise I will respond to your email upon my return Note: This is an automated response to

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

2012-03-30 Thread Parkman, Mikhail
Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_namedlg_notifications command_line/usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shel

Re: [Nagios-users] The router - two providers - only one can be up

2012-03-30 Thread Seth Low
Looked at check_cluster? -Seth Sent from my mobile device, please forgive the typos. On Mar 30, 2012, at 11:58 AM, Mike Guthrie wrote: > You could monitor this using Nagios BPI. You can create a business > process out of these two hosts and then monitor the business process so > that you only

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

2012-03-30 Thread James Pratt
Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it f

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

2012-03-30 Thread James Pratt
Sorry, I also remembered you can add an "-x" to the end of the "#!/bin/bash line and it will execute in verbose mode - it's a bit noisy, but it may help figure out where/why it's failing. From: Parkman, Mikhail [mailto:mikhail_park...@cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: N

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 different

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

2012-03-30 Thread Parkman, Mikhail
Actually I verified that this script runs fine manually using default (Bourne) shell too. So now I have "#!/bin/sh" in the beginning of my script and it still is not being picked up by service. And I restart Nagios to initiate the service attempt. Do you refer to Bourne shell ("#!/bin/sh" ) in t

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

2012-03-30 Thread Edwin Zoeller
If this is run on a remote host using nrpe this what I would check: - type "which bash" on the remote host and make sure the path matches what's in your script. - verify your nrpe.cfg has an entry in it for your script I.e "check_myscript" - verify on the master that check commands matches the

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

2012-03-30 Thread James Pratt
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 script with by the shebang line in the top of the file, and whether or not it's executable. I would definitely try and execute it as the nagios user - th

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

2012-03-30 Thread Parkman, Mikhail
The script represents in Nagios terms external application. It runs on the local (monitoring) box. Script due to its content makes connection to the mbeans on the remote server (target box), receives notifications from mbeans, and then writes to the external fifo file (usr/local/nagios/var/rw/nag

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

2012-03-30 Thread James Pratt
ok it's really very simple - find the exact command definition string you want to execute in your commands.cfg, and su - nagios (as root) and then interactively (like actually type it right?) the same exact command that the command definition is attempting to execute as the nagios user, and see