Re: [Nagios-users] check_by_ssh from nagios user

2013-07-18 Thread Mario Garcia
; > *From:* Mario Garcia [mailto:mar...@absi.be] > *Sent:* Wednesday, July 17, 2013 11:10 AM > *To:* nagios-users@lists.sourceforge.net > *Subject:* [Nagios-users] check_by_ssh from nagios user > > ** ** > > Hello > > i want to monitor a bluecoat reporter

Re: [Nagios-users] check_by_ssh from nagios user

2013-07-17 Thread Sunil Sankar
Can you do an ssh from nagios server as nagios user to the blue host server without password with -i option ssh -i .ssh/ On Wed, Jul 17, 2013 at 9:40 PM, Mario Garcia wrote: > Hello > i want to monitor a bluecoat reporter with check_by_ssh as nrpe or snmp > are not available. > > when i logg

Re: [Nagios-users] check_by_ssh from nagios user

2013-07-17 Thread MAHONEY, DANIEL
er idea to work as a noon-root user anyway. From: Mario Garcia [mailto:mar...@absi.be] Sent: Wednesday, July 17, 2013 11:10 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_by_ssh from nagios user Hello i want to monitor a bluecoat reporter with check_by_ssh as nrpe or snmp ar

[Nagios-users] check_by_ssh from nagios user

2013-07-17 Thread Mario Garcia
Hello i want to monitor a bluecoat reporter with check_by_ssh as nrpe or snmp are not available. when i loggin from nagios user using simple ssh I can login when i execute check_by_ssh from root user and execute a command it does work when i execute check_by_ssh from the nagios user on the nagios

[Nagios-users] check_by_ssh to Openvms system

2013-06-12 Thread Mr Allan Thorne
I am trying to use either command files or perl or c to return a status and value to check_by_ssh. When I test the command interactively using: /usr/lib64/nagios/plugins/check_by_ssh -H -s c1 -C "" -i -l -S 1 -E I get WARNING - check_by_ssh: Remote command returned status 1 Any help woul

Re: [Nagios-users] check_by_ssh plugin - remote command execution failed.

2013-02-18 Thread Ismael Puerto
Hello I think that you should use tha path complete, example: /system/bin/zpool status syspool Best regards On 17/02/13 23:58, saimon michelson wrote: > Hi, > > I have a question regarding the check_by_ssh plugin. > > I have a Linux server running a Nagios-core server and i am developing a >

[Nagios-users] check_by_ssh plugin - remote command execution failed.

2013-02-18 Thread saimon michelson
Hi, I have a question regarding the check_by_ssh plugin. I have a Linux server running a Nagios-core server and i am developing a plugin to obtain information from a remote SunOS host over SSH. I assumed that the way it works is that the nagios establishes a SSH connection with the remote host,

[Nagios-users] check_by_ssh help

2010-11-12 Thread Brian O'Mahony
I have an appliance that I cannot install anything on. However I can connect via ssh. I can run remote commands with check_by_ssh, eg check_by_ssh -H hmc -C "lsled -m ratbat -r sa -t phys" -l hscroot -s /home/nagios/.ssh/id_rsa This checks my HMC for the status of the attention LED on an AIX bo

Re: [Nagios-users] check_by_ssh plugin; how to ignore pulgin timeout being critical?

2010-05-26 Thread Spyou
Le 27/05/2010 01:46, Mirza Dedic a écrit : > *command_line $USER1$/check_by_ssh -H someserver -p 22 > -i /home/nagios/.ssh/id_dsa -t 10 -C > "/home/nagios/plugins/check_logfiles -t 30 -f > /home/nagios/log_conf/usr1_data450.lg"* Increase both timeouts for check_ssh and check_logfi

[Nagios-users] check_by_ssh plugin; how to ignore pulgin timeout being critical?

2010-05-26 Thread Mirza Dedic
Hi List, I have Nagios currently using check_by_ssh (check_by_ssh v2002 (nagios-plugins 1.4.13)) to check some of my remote servers, it calls a log script on the remote server and the log script returns a warning if the log files matches the criteria. Every now and then, the check_by_ssh s

Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-22 Thread O'Donnell, Robert L
Neither of Frank's suggestions solved it, but something strange did happen. First there was no known_users folder under nagios, only under /root. I copied this file and tried the check again. Nothing. I deleted the lines referring to the host both by name and by ip. I logged in again, and I

Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-20 Thread frank
O'Donnell, Robert L wrote: > Date: Tue, 20 Apr 2010 16:18:05 -0700 > From: "O'Donnell, Robert L" > Reply-To: Nagios Users List > To: "nagios-users@lists.sourceforge.net" > Subject: Re: [Nagios-users] check_by_ssh failing - host key verification >

Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-20 Thread O'Donnell, Robert L
No joy in Mudville. I can ssh interactive as user nagios with both the ip address and the name of the target machine. Also, my .cfg file does define the host name and address Define host{ Use linux-server Host_name (machine_name) Alias (machin

Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-14 Thread patrick . morris
Hi O'Donnell,! On Wed, 14 Apr 2010, O'Donnell, Robert L wrote: > Giorgio, > > Yes. > > Ssh (remote_machine_ip) -l nagios ?I /etc/nagios/.ssh/id_dsa > > logs me in with prompt ?nagios@(remote_machine_name):~>? and > whoami returns nagios. I see that you're logging in by IP, but in the config s

Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-14 Thread O'Donnell, Robert L
Giorgio, Yes. Ssh (remote_machine_ip) -l nagios -I /etc/nagios/.ssh/id_dsa logs me in with prompt "nagios@(remote_machine_name):~>" and whoami returns nagios. If u try an ssh login from Nagios box to the remote box, u can login without been asked for a password? Ciao, Giorgio

Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-14 Thread Giorgio Zarrelli
If u try an ssh login from Nagios box to the remote box, u can login without been asked for a password? Ciao, Giorgio Il giorno 14/apr/2010, alle ore 23.15, "O'Donnell, Robert L" > ha scritto: Running nagios 3.0.6 on OpenSUSE and trying to get info from a SUSE enterprise machine. Chk

[Nagios-users] check_by_ssh failing - host key verification failed

2010-04-14 Thread O'Donnell, Robert L
Running nagios 3.0.6 on OpenSUSE and trying to get info from a SUSE enterprise machine. Chk_by_ssh returns UNKNOWN and "Remote command execution failed: Host key verification failed", check_ping works. I have played with every combo of options I could think of, but same results. This is my f

Re: [Nagios-users] check_by_ssh from a different username

2010-03-09 Thread Matt Simmons
Yes. And you can simplify this by running ssh-copy-id as the Nagios user: -- nag...@monserv:~$ ssh-copy-id remu...@remhost remu...@remhost's password: Now try logging into the machine, with "ssh 'r...@webdb1.int.ia'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys

Re: [Nagios-users] check_by_ssh from a different username

2010-03-09 Thread Marc Powell
On Mar 9, 2010, at 12:46 AM, Morris, Patrick wrote: >> How can I use check_by_ssh to monitor remote servers, when the >> username on the remote box is different from the Nagios user name? > > Install the private keys of the remote users on the Nagios machine under > the nagios user. You've al

Re: [Nagios-users] check_by_ssh from a different username

2010-03-08 Thread Morris, Patrick
David Mitchell wrote: > Hello list, > > I've got a situation where I can't create 'nagios' users on the > systems I need to monitor; I'm stuck with using a set of different > user names to monitor a range of systems. > > For the sake of the discussion, assume the account on the Nagios > server i

[Nagios-users] check_by_ssh from a different username

2010-03-08 Thread David Mitchell
Hello list, I've got a situation where I can't create 'nagios' users on the systems I need to monitor; I'm stuck with using a set of different user names to monitor a range of systems. For the sake of the discussion, assume the account on the Nagios server is 'nagios' and the account I've been gi

Re: [Nagios-users] check_by_ssh -C & different user

2009-09-17 Thread Assaf Flatto
On Thursday 17 September 2009 12:42:33 Alex Huth wrote: > Hi! > > Even when it is not directly a nagios topic, i hope someone can help me. I > have to execute with a eventhandler a command remote with another user as > the user for nagios. > > Let's say the nagios user is aaa, the user to login r

[Nagios-users] check_by_ssh -C & different user

2009-09-17 Thread Alex Huth
Hi! Even when it is not directly a nagios topic, i hope someone can help me. I have to execute with a eventhandler a command remote with another user as the user for nagios. Let's say the nagios user is aaa, the user to login remote by ssh is user bbb and the user who can execute the init script

Re: [Nagios-users] check_by_ssh error - Remote command execution failed

2009-09-02 Thread Jim McNamara
On Wed, 2009-09-02 at 14:19 +0300, Juki wrote: > 2009/9/2 Thomas Guyot-Sionnest > > > > This had to do with the server's kay that changed and is being > cached in > > the nagios user's ~/.ssh/known_hosts. Find any entry matching > the target > ho

[Nagios-users] check_by_ssh error - Remote command execution failed

2009-09-02 Thread Juki
2009/9/2 Thomas Guyot-Sionnest > This had to do with the server's kay that changed and is being cached in > the nagios user's ~/.ssh/known_hosts. Find any entry matching the target > host name or IP and delete them, then connect manually to the host as > the nagios user. > Thanks for the reply.

Re: [Nagios-users] check_by_ssh error - Remote command execution failed

2009-09-02 Thread Grant Sewell
On Wed, 02 Sep 2009 06:25:48 -0400 Thomas Guyot-Sionnest wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 02/09/09 05:26 AM, Juki wrote: > > Hello people, > > > > Remote command execution failed: ## !!! > > WARNING !!! # > > This had

Re: [Nagios-users] check_by_ssh error - Remote command execution failed

2009-09-02 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/09/09 05:26 AM, Juki wrote: > Hello people, > > Remote command execution failed: ## !!! WARNING !!! > # This had to do with the server's kay that changed and is being cached in the nagios user's ~/

[Nagios-users] check_by_ssh help

2009-05-24 Thread Waynn Lue
I'm trying to set up check_by_ssh to run a php script on a remote machine that acts as a Nagios plugin. The script runs a few ls commands to figure out the number of directories in a subdirectories, then gives output and return codes accordingly (if it's past a certain threshold, I wantit to error

Re: [Nagios-users] check_by_ssh problem

2009-05-08 Thread Marc Powell
On May 8, 2009, at 1:13 PM, Anirudh Srinivasan wrote: > In order to monitor the remote linux server we are using > check_by_ssh as root. I know it is not advisable to use it as root , > but we are in a transition to NRPE slowly which uses nagios. > > Here's what i did : > > 1) As root copied

[Nagios-users] check_by_ssh problem

2009-05-08 Thread Anirudh Srinivasan
In order to monitor the remote linux server we are using check_by_ssh as root. I know it is not advisable to use it as root , but we are in a transition to NRPE slowly which uses nagios. Here's what i did : 1) As root copied the id_rsa.pub to the remote server's root user's .ssh directory and pa

Re: [Nagios-users] check_by_ssh error: Remote command execution failed: You don't exist, go away!

2009-05-08 Thread Chris Pepper
Chris Pepper wrote: > I'm not finding much current documentation on check_by_ssh -- does it > work? Nevermind! I forgot that I had found a UID conflict on some of the monitored nodes, so I changed nagios' UID on the monitoring servers. "service nagios stop; chown -R nagios /usr/lo

[Nagios-users] check_by_ssh error: Remote command execution failed: You don't exist, go away!

2009-05-08 Thread Chris Pepper
I'm not finding much current documentation on check_by_ssh -- does it work? I have set up the nagios account with /bin/sh as its shell on 2 Linux Nagios servers and several clients (RHEL/SuSE/Sol10). I installed nagios-plugins-1.4.13 on the clients, and set up public key trust f

[Nagios-users] check_by_ssh plugin

2009-04-29 Thread Anirudh Srinivasan
to monitor the remote linux machine i use check_by_ssh plugins . I loged in as nagios user and did key-gen and exchanged the plublic key so that nagios can do a password less login and get the datas like memory, cpu load etc But for some reason i dont see anything in the web interface except fo

Re: [Nagios-users] check_by_ssh

2009-04-16 Thread Marc Powell
On Apr 16, 2009, at 8:55 AM, Melanie Pfefer wrote: > > Hi > > I want to use check_by_ssh with a script that uses an argument > > ./check_by_ssh -l myuser -H myhost -t 120 -C myscript > my_script_argument > > > The script gives an output as if the my_script_argument is empty > > any idea? Quote

[Nagios-users] check_by_ssh

2009-04-16 Thread Melanie Pfefer
Hi I want to use check_by_ssh with a script that uses an argument ./check_by_ssh -l myuser -H myhost -t 120 -C myscript my_script_argument The script gives an output as if the my_script_argument is empty any idea? thank you

Re: [Nagios-users] check_by_ssh for new linxux users.. shed some light...

2009-01-05 Thread Satish Kumar P
On Tue, Jan 6, 2009 at 7:36 AM, Mirza Dedic wrote: > Hello, > > I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I > am able to get Nagios to monitor all the things I need on a Win32 box (using > NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work >

Re: [Nagios-users] check_by_ssh for new linxux users.. shed some light...

2009-01-05 Thread Patrick Morris
On Tue, 06 Jan 2009, Mirza Dedic wrote: > Hello, > > I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I am > able to get Nagios to monitor all the things I need on a Win32 box (using > NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work > for me

[Nagios-users] check_by_ssh for new linxux users.. shed some light...

2009-01-05 Thread Mirza Dedic
Hello, I have a Nagios system running (3.0.X) along with Nagios Plug-ins; while I am able to get Nagios to monitor all the things I need on a Win32 box (using NSClient++ & Check_NT); I am having difficulty getting check_by_ssh to work for me. I have previously never used check_by_ssh; I am als

Re: [Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread Matthew Pounsett
I believe this to be caused by the check itself is timing out. As when I try to login it will sometimes take up to a minute or two just to get a prompt. As for setting the timeouts for that sort of thing, this is what I do. In my resource.cfg: -- # check_by_ssh timeout $USER4$=10 -- .. an

Re: [Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread Charlie Reddington
On Oct 6, 2008, at 11:03 AM, James wrote: > On Mon, October 6, 2008 11:37 am, Charlie Reddington wrote: >> I should also mention that I also have these timeouts in place... >> >> >> service_check_timeout=90 host_check_timeout=30 >> event_handler_timeout=30 >> notification_timeout=60 ocsp_timeo

Re: [Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread Charlie Reddington
, 2008 11:35 AM > To: Nagios User list > Subject: [Nagios-users] check_by_ssh timeouts / how to work around? > > Hi, > > I have a couple machines that spit out a warning similar to this: > > WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ > check_disk&#

Re: [Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread James
On Mon, October 6, 2008 11:37 am, Charlie Reddington wrote: > I should also mention that I also have these timeouts in place... > > > service_check_timeout=90 host_check_timeout=30 event_handler_timeout=30 > notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 > > Charlie > > > On Oct 6, 2008

Re: [Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread Matt Rivet
Are you using a LDAP server and RSA keys? -Original Message- From: Charlie Reddington [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2008 11:35 AM To: Nagios User list Subject: [Nagios-users] check_by_ssh timeouts / how to work around? Hi, I have a couple machines that spit out a

Re: [Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread Charlie Reddington
I should also mention that I also have these timeouts in place... service_check_timeout=90 host_check_timeout=30 event_handler_timeout=30 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 Charlie On Oct 6, 2008, at 10:35 AM, Charlie Reddington wrote: > Hi, > > I have a couple machines

[Nagios-users] check_by_ssh timeouts / how to work around?

2008-10-06 Thread Charlie Reddington
Hi, I have a couple machines that spit out a warning similar to this: WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/ check_disk' returned status 1 I believe this to be caused by the check itself is timing out. As when I try to login it will sometimes take up to a minute or

[Nagios-users] check_by_ssh - getting errors in logs

2008-09-12 Thread Charlie Reddington
Hi all, I have nagios working pretty good, it's checking all i want over ssh. But ever since I have set up nagios over ssh, I keep getting the following in my logs. authpriv crit sshd[8939]: fatal: Read from socket failed: Connection reset by peer I've checked the load / iowait of the

Re: [Nagios-users] check_by_ssh wont work - help.

2008-02-12 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of News > Sent: Tuesday, February 12, 2008 10:37 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] check_by_ssh wont work - help. > > Hi all

[Nagios-users] check_by_ssh wont work - help.

2008-02-12 Thread News
Hi all. Im trying to get check_by_ssh to work but i keep failing. Its between two linux, Debian (nagiosserver) and redhat (cilent). Im trying something simple at first, just check the disk.I have setup the keys so i can login without password (with user nagios). When i do a test with from terminal

Re: [Nagios-users] check_by_ssh problem

2008-01-07 Thread Holger Weiss
* [EMAIL PROTECTED] [2008-01-03 14:31]: > > * [EMAIL PROTECTED] [2008-01-02 21:56]: > >> > On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote: > >> >> I want to do some checks on a remote host using check_by_ssh. > >> >> Although user nagios can ssh to that host without being asked > >> >> for a p

[Nagios-users] check_by_ssh against localhost segfaults?

2008-01-03 Thread Petersen, Mark
I'm trying to run check_by_ssh against my localhost (for consistency purposes.) I'm using forced command execution with ssh: `cat /home/nagios/.ssh/authorized_keys2` command="/home/nagios/bin/check_by_ssh.sh" ssh-dss B3N nagios_check_by_ssh /usr/lib/nagios/plugins/check_by_ssh -i /etc/nagios

Re: [Nagios-users] check_by_ssh problem

2008-01-03 Thread beick
> * [EMAIL PROTECTED] [2008-01-02 21:56]: >> > On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote: >> >> I want to do some checks on a remote host using check_by_ssh. >> Although >> >> user nagios can ssh to that host without being asked for a password >> >> the webinterface of my nagios is tellin

Re: [Nagios-users] check_by_ssh problem

2008-01-02 Thread Holger Weiss
* [EMAIL PROTECTED] [2008-01-02 21:56]: > > On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote: > >> I want to do some checks on a remote host using check_by_ssh. Although > >> user nagios can ssh to that host without being asked for a password > >> the webinterface of my nagios is telling me: > >

Re: [Nagios-users] check_by_ssh problem

2008-01-02 Thread beick
> > On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote: > >> I want to do some checks on a remote host using check_by_ssh. Although >> user nagios can ssh to that host without being asked for a password >> the >> webinterface of my nagios is telling me: >> >> Unknown >> Remote command execution fa

Re: [Nagios-users] check_by_ssh problem

2008-01-02 Thread Marc Powell
On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote: > I want to do some checks on a remote host using check_by_ssh. Although > user nagios can ssh to that host without being asked for a password > the > webinterface of my nagios is telling me: > > Unknown > Remote command execution failed: Per

[Nagios-users] check_by_ssh problem

2008-01-02 Thread beick
I want to do some checks on a remote host using check_by_ssh. Although user nagios can ssh to that host without being asked for a password the webinterface of my nagios is telling me: Unknown Remote command execution failed: Permission denied (publickey,keyboard-interactive) If I run nagios in th

Re: [Nagios-users] check_by_ssh vs nrpe discussion (was check_by_ssh)

2007-12-13 Thread mark . potter
"mark redding" <[EMAIL PROTECTED]> wrote on 12/13/2007 10:36:16 AM: > Hi, > > On 13/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Currently I know of no risk associated with running NRPE however any service > > that opens a port on a system can become a risk. After much debate an

Re: [Nagios-users] check_by_ssh

2007-12-13 Thread mark . potter
> Further, what is the big concern about running nrpe ??? I have a > number of mission critical systems that all run nrpe. Configured with > the correct "allowed_hosts" list, with "nrpe_user" & "nrpe_group" set > to the right type of account, and the "dont_blame_nrpe=0" parameter > set (in order to

Re: [Nagios-users] check_by_ssh

2007-12-13 Thread mark redding
Hi, On 10/12/2007, Peter Lauda <[EMAIL PROTECTED]> wrote: > I've set up a test command to run a remote check_load using check_by_ssh and > when I run it manually it works as expected. When it is run in the nagios > framework I get the "(No output!)" result. Are you absolutely sure that the accou

[Nagios-users] check_by_ssh

2007-12-10 Thread Peter Lauda
I'm sure this has been addressed but I can't find any resolutions that seem to work in my environment. My apologies in advance. I am trying to use check_by_ssh to invoke remote system/service checks rather than using nrpe. I have had great success with nrpe but I do not have the authority to imple

Re: [Nagios-users] check_by_ssh failing on commands that work via remote ssh as the nagios user

2007-11-19 Thread mark . potter
> > Nagios: 2.10 > Plugins: 1.4.9 > OS: SLES 9.3 > > I am having some trouble figuring out how to make check_by_ssh work > properly. I think I have done all of the usual troubleshooting and I > have googled the issue to no avail: > > Command as nagios user on the remote server: > > /usr/l

[Nagios-users] check_by_ssh failing on commands that work via remote ssh as the nagios user

2007-11-19 Thread mark . potter
Nagios: 2.10 Plugins: 1.4.9 OS: SLES 9.3 I am having some trouble figuring out how to make check_by_ssh work properly. I think I have done all of the usual troubleshooting and I have googled the issue to no avail: Command as nagios user on the remote server: /usr/local/nagios/libexec/check_loa

Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-04 Thread Live Great
> To: nagios-users@lists.sourceforge.net Sent: Thursday, October 4, 2007 11:02:17 PM Subject: Re: [Nagios-users] check_by_ssh - please clarify. > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Live Great > Sent: Wednesday, Octo

Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-04 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Live Great > Sent: Wednesday, October 03, 2007 2:02 AM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] check_by_ssh - please clarify. > >

Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-03 Thread Live Great
If I want to set Nagios distribution architecture, can I still use check_by_ssh with NSCA server? eg. Nagios central server <--> NSCA ---execute ssh--> host 1 in this sense, NSCA will gather information from host 1 using check_by_ssh, and send back the collected data to the Nagios central server

[Nagios-users] check_by_ssh - please clarify.

2007-10-03 Thread Live Great
Hi, I am aware that NSCA can uses check_by_ssh to check remote host. I am wondering if this means I don't have to install NSCA or Nagios plugins in remote host? Thanks Sam - This SF.net email is sponsored by: Microsoft Def

Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-02 Thread Live Great
Hi, This is the follow up the previous question. For example, if I want to check disk info in a remote host, In the NSCA server, I will define the following config: define command{ command_namecheck_slash_free command_line $USER1$/check_by_ssh -i /var/ssh/nagios-key -l root -H

Re: [Nagios-users] check_by_ssh

2007-06-15 Thread Patrick Morris
Hi Robert! On Fri, 15 Jun 2007, Robert Cole wrote: > Well as you might notice from my message the keybased authentication is > working well, no problem but I wasn't using sudo so I tried adding that > line to my sudo config with no success. It still asks for a passphrase > or password when I u

Re: [Nagios-users] check_by_ssh

2007-06-15 Thread Robert Cole
Well as you might notice from my message the keybased authentication is working well, no problem but I wasn't using sudo so I tried adding that line to my sudo config with no success. It still asks for a passphrase or password when I use check_by_ssh but if I "ssh remotecomputer" I go right in

Re: [Nagios-users] check_by_ssh

2007-06-15 Thread James
Robert Cole wrote: > I tried the multiple v's: > > [EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i > - ~/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%" > Enter passphrase for key '/home/nagios/.ssh/id_dsa': > [EMAIL PROTECTED]'s password: > > Didn't g

Re: [Nagios-users] check_by_ssh

2007-06-15 Thread Robert Cole
I tried the multiple v's: [EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i - ~/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%" Enter passphrase for key '/home/nagios/.ssh/id_dsa': [EMAIL PROTECTED]'s password: Didn't give me anymore output but as I

[Nagios-users] check_by_ssh

2007-06-15 Thread Robert Cole
I noticed this list has a lot more activity on it and the plugin list next to none so please excuse me. I'm not sure if I found a bug or what but I can login to the remote system I'm trying to check with key based authentication I can even do a "ssh -i ~/.ssh/id_dsa remotecomputer "/usr/nagios

Re: [Nagios-users] check_by_ssh anomaly

2007-05-31 Thread Daniel Tandowski
Ahh yes, thankyou both! For reference, the offending host_key was living in /var/spool/nagios/.ssh/known_hosts (as the nagios user has nologin). Thanks again! On Friday 01 June 2007 01:08, Patrick Morris wrote: > On Fri, 01 Jun 2007, Daniel Tandowski wrote: > > I appreciate your quick response

Re: [Nagios-users] check_by_ssh anomaly

2007-05-31 Thread Patrick Morris
On Fri, 01 Jun 2007, Daniel Tandowski wrote: > I appreciate your quick response, ssh known_hosts / authorized_keys was my > first culprit also... unfortunately, this doesn't explain why it would work > correctly when I run the same command nagios is running from the CLI (using > the same key)!?

Re: [Nagios-users] check_by_ssh anomaly

2007-05-31 Thread Daniel Tandowski
I appreciate your quick response, ssh known_hosts / authorized_keys was my first culprit also... unfortunately, this doesn't explain why it would work correctly when I run the same command nagios is running from the CLI (using the same key)!? #/usr/lib/nagios/plugins/check_by_ssh -t 60 -H -l

[Nagios-users] check_by_ssh anomaly

2007-05-31 Thread Daniel Tandowski
Hi all, long time Nagios user, first time poster. I'm having an issue with one of my check_by_ssh scripts - which basically just checks the size and modified time of a backup file on each of roughly 70 Linux hosts. All of the hosts are working correctly, except one, which as far as I can tell,

Re: [Nagios-users] check_by_ssh id key file reject

2007-05-07 Thread James
2007 12:34 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] check_by_ssh id key file reject > > Hi everyone i have a problem with using the check_by_ssh plugin > > for some reason i can run from the command line fine the check_by_ssh > plugin with my id keyf

Re: [Nagios-users] check_by_ssh id key file reject

2007-05-07 Thread Babineau, Mike
: [Nagios-users] check_by_ssh id key file reject Hi everyone i have a problem with using the check_by_ssh plugin for some reason i can run from the command line fine the check_by_ssh plugin with my id keyfile id_rsa my id_rsa file is chowned by nagios so that shouldn't be a problem. i had also ch

[Nagios-users] check_by_ssh id key file reject

2007-05-07 Thread James
Hi everyone i have a problem with using the check_by_ssh plugin for some reason i can run from the command line fine the check_by_ssh plugin with my id keyfile id_rsa my id_rsa file is chowned by nagios so that shouldn't be a problem. i had also chmoded 777 for testing. /usr/local/nagios/libexe

[Nagios-users] check_by_ssh issues

2007-05-03 Thread Steven Schwartz
This is just weird: ssh -i /usr/local/nagios/etc/.ssh/id_dsa -l nagios fully.qualified.hostname.com /usr/local/bin/nagcheck produces output, run as nagios. Running the check_by_ssh binary, with this command line: ./check_by_ssh -H fully.qualified.hostname.com -l nagios -i usr/lo

Re: [Nagios-users] check_by_ssh plugin

2007-01-29 Thread Andreas Ericsson
Moayad Mohammad wrote: > when i use check_by_ssh plugin to check the CPU or hard disk, I got the > following error > ( Remote command execution failed: /usr/local/nagios/libexec/check_disk: > error while loading shared libraries: libssl.so.6: cannot open shared > object file: No such file or direc

[Nagios-users] check_by_ssh plugin

2007-01-27 Thread Moayad Mohammad
when i use check_by_ssh plugin to check the CPU or hard disk, I got the following error ( Remote command execution failed: /usr/local/nagios/libexec/check_disk: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory ) And the following command

Re: [Nagios-users] check_by_ssh

2006-11-09 Thread Andreas Ericsson
Robert Fitzpatrick wrote: > On Thu, 2006-11-09 at 10:51 -0600, Marc Powell wrote: >> You must be running something different from the command line as the >> above could never work. Check_by_ssh is expecting -C to be a full path >> and command to run on a remote host. I'm doing the same kind of thin

Re: [Nagios-users] check_by_ssh

2006-11-09 Thread Robert Fitzpatrick
On Thu, 2006-11-09 at 10:51 -0600, Marc Powell wrote: > You must be running something different from the command line as the > above could never work. Check_by_ssh is expecting -C to be a full path > and command to run on a remote host. I'm doing the same kind of thing > with -- Yes, I was running

Re: [Nagios-users] check_by_ssh

2006-11-09 Thread Gavin Conway
> # 'check_by_ssh' command definition > define command{ > command_namecheck_by_ssh > } > This doesn't look right; > command_line$USER1$/check_by_ssh -H $HOSTADDRESS$ -C "$ARG1$" This does -- Cheers, Gavin UKS Ltd, Birmingham Road, Studley, Warwickshire,

Re: [Nagios-users] check_by_ssh

2006-11-09 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Robert Fitzpatrick > Sent: Thursday, November 09, 2006 10:01 AM > To: Nagios > Subject: [Nagios-users] check_by_ssh > > Trying to use check_by_ssh and can'

[Nagios-users] check_by_ssh

2006-11-09 Thread Robert Fitzpatrick
Trying to use check_by_ssh and can't seem to get the -C argument right. I am getting a WARNING with this: Bad escape character ' 60 -F /var/spool/nagios/nagios.log -C /usr/local/bin/nagios' This is the way I have my checkcommand and service setup, I tried without the single quotes and it gave me

Re: [Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-12 Thread John P. Rouillard
In message <[EMAIL PROTECTED]>, "Marc Powell" writes: >> From: [EMAIL PROTECTED] [mailto:nagios-users- >> [EMAIL PROTECTED] On Behalf Of John P. Rouillard >> >> Also supposedly check_by_ssh can run checks for multiple services at >> the same time. See the -C, -O and -s arguments. I have never been

Re: [Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-11 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of John P. Rouillard > Sent: Wednesday, October 11, 2006 7:31 PM > To: Craig Worthington > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] check

Re: [Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-11 Thread John P. Rouillard
Top posting. Reformatted: In message <[EMAIL PROTECTED]>, Craig Worthington writes: >On Thu, 2006-10-12 at 08:43, John P. Rouillard wrote: >> In message <[EMAIL PROTECTED]>, >> "Marc Powell" writes: >> >> On Behalf Of Bret Goodfellow >> >> The user (nagios) is the id that is executing both ssh an

Re: [Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-11 Thread Craig Worthington
On the same sort of ssh track... Is it possible to configure ssh or check_by_ssh to use a ssh tunnel ? I have a number of heavy loaded computers (executing climate models) where re-establishing ssh connections every 30 seconds is causing a load problem. I guess the goal would be to have a check-

Re: [Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-11 Thread John P. Rouillard
In message <[EMAIL PROTECTED]>, "Marc Powell" writes: >> On Behalf Of Bret Goodfellow >> The user (nagios) is the id that is executing both ssh and check_by_ssh. >> When these commands are run, the "environments" established for ssh and >> check_by_ssh are different (why)? >> >check_by_ssh does n

Re: [Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-11 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Bret Goodfellow > Sent: Wednesday, October 11, 2006 4:14 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] check_by_ssh vs. ssh (when execu

[Nagios-users] check_by_ssh vs. ssh (when executed, have different environments)

2006-10-11 Thread Bret Goodfellow
The user (nagios) is the id that is executing both ssh and check_by_ssh.  When these commands are run, the "environments" established for ssh and check_by_ssh are different (why)?   Below is the environment established for ssh:   SHELL=/bin/bash SSH_CLIENT=10.8.24.170 58641 22 USER=nagios L

Re: [Nagios-users] check_by_ssh not working

2006-08-24 Thread Hugo van der Kooij
On Thu, 24 Aug 2006, Nelson Serafica wrote: > Here's the scenario: > > user John can connect via ssh to SONICSERVER using oracle user without > authentication. To verify, i run this command and encountered no problem: > > ssh -i /home/John/.ssh/id_rsa [EMAIL PROTECTED] w > > and the command

[Nagios-users] check_by_ssh not working

2006-08-24 Thread Nelson Serafica
Here's the scenario:user John can connect via ssh to SONICSERVER using oracle user without authentication. To verify, i run this command and encountered no problem:ssh -i /home/John/.ssh/id_rsa [EMAIL PROTECTED] wand the commands run properly.But when i tried this command: [EMAIL PROTECTED] ~]$ /u

[Nagios-users] check_by_ssh -> best timeout options ...

2006-07-26 Thread Denny Schierz
hi, i check the most servers (most dyndns.org) via check_by_ssh and it is working, but sometimes i get messages like this: CRITICAL - Plugin timed out while executing system call or: (No output!) but, after the next checks, its up again. I think, the problem is, when the remote host is changin