Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-14 Thread Onotsky, Steve x55328
: be...@bennyvision.com To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work I also tried this as well from the server , which does work ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 Authorized users

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-14 Thread steve f
getting this resolved, Rod Benny. Hopefully it helps someone else down the road. Regards, Steve Date: Tue, 13 Jul 2010 16:57:49 -0700 From: raand...@cyber-office.net To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work On 07/13

[Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread steve f
Hello All, have been banging my head against the wall trying to get check_by_ssh to work. No matter what I try to do, I keep getting Remote command execution failed: . I have verified that I can ssh to the remote pc from the server as both root the nagios user with no problem or password

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread C. Bensend
I have tried running the check_by_ssh plugin from the command line with no success , specifying ports, protocol, user, etc ./check_by_ssh -H pbylinux7 -C '/usr/local/nagios/libexec/check_ssh' -2 -4 -p 22 Have you tried using the *IP* instead of the hostname? Depending on how you have your

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread steve f
Thanks for the reply, yes I have tried it with both ip name with the same results. I assume that the command line check should work as I have written it here correct? /usr/local/nagios/libexec ./check_by_ssh -H 172.xx.xx.xx -C '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios -2

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread C. Bensend
Thanks for the reply, yes I have tried it with both ip name with the same results. I assume that the command line check should work as I have written it here correct? /usr/local/nagios/libexec ./check_by_ssh -H 172.xx.xx.xx -C '/usr/local/nagios/libexec/check_users -w 5 -c 8' -l nagios

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread steve f
: be...@bennyvision.com To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work Thanks for the reply, yes I have tried it with both ip name with the same results. I assume that the command line check should work as I have written it here

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread steve f
@lists.sourceforge.net Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work Thanks for the reply, yes I have tried it with both ip name with the same results. I assume that the command line check should work as I have written it here correct? /usr/local/nagios/libexec

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread C. Bensend
I also tried this as well from the server , which does work ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 Authorized users only. USERS OK - 0 users currently logged in |users=0;5;8;0 This tells me that 1. ssh as Nagios works 2. the check_users script runs on

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread steve f
To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work I also tried this as well from the server , which does work ssh 172.xx.xx.xx /usr/local/nagios/libexec/check_users -w 5 -c 8 Authorized users only. USERS OK - 0 users

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread C. Bensend
If I remember, that line is in the sshd.config for the auth users banner. I should be able to comment it out to test it. Didn't think about that... I'll dial in when I get home try it.. If you're running a recent release of OpenSSH, you might be able to use a match directive to skip the

Re: [Nagios-users] Going Nuts trying to get check_by_ssh to work

2010-07-13 Thread Roderick A. Anderson
On 07/13/2010 04:03 PM, C. Bensend wrote: If I remember, that line is in the sshd.config for the auth users banner. I should be able to comment it out to test it. Didn't think about that... I'll dial in when I get home try it.. If you're running a recent release of OpenSSH, you might be