check_by_ssh failing on commands that work via remote ssh as the nagios user

mark.potter at academy.com mark.potter at academy.com
Mon Nov 19 16:29:11 CET 2007


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_load -w 7,7,7 -c 10,10,10
OK - load average: 0.01, 0.04, 0.03|load1=0.010;7.000;10.000;0; 
load5=0.040;7.000;10.000;0; load15=0.030;7.000;10.000;0;

Command as nagios user via ssh on Nagios server:

ssh ulwswas01 "/usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10"
<MOTD REMOVED FOR PRIVACY REASONS>
OK - load average: 0.05, 0.07, 0.04|load1=0.050;7.000;10.000;0; 
load5=0.070;7.000;10.000;0; load15=0.040;7.000;10.000;0;

check_by_ssh attempt as nagios user on Nagios server:
/check_by_ssh -H ulwswas01 -C "/usr/local/nagios/libexec/check_load -w 
7,7,7 -c 10,10,10"
Remote command execution failed: <MOTD DISPLAYS IN PART THEN CONNECTION 
ENDS>

I get nothing in the log files concerning this and it makes little sense. 
I have tried everything I need to have working, to the best of my 
knowledge, as the nagios use and it works. Thanks in advance for any help!

Best Regards,

Mark L. Potter
Systems Engineer
Academy Sports & Outdoors
1800 N. Mason Rd
Katy, Texas 77449
Office: 281-646-5857
Cell: 281-734-6965
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071119/3d5e25d5/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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