check_by_ssh vs. ssh (when executed, have different environments)

John P. Rouillard rouilj at cs.umb.edu
Thu Oct 12 14:30:00 CEST 2006


In message <A7B0A9F02975A74A845FE85D0B95B8FA05371A24 at misex01.ena.com>,
"Marc Powell" writes:
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] 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 able
>> to get it to work. With this feature you could run a single ssh to
>> execute say 5 check_disk commands. As I said I haven't gotten it to
>> work, but it could cut down on the number of ssh connections that are
>> needed.
>
>It can but I haven't tried that myself either. It does so by appending a
>';echo STATUS CODE: $?;' (or very close to that) to each command that
>you pass then parses the output to get the return code for each plugin
>executed. I believe the end command passed to ssh would look something
>like --
>
>/path/to/ssh -other -args user at host "command1;echo STATUS CODE:
>$?;command2;echo STATUS CODE: $?;..."

Yup that's almost exactly what it does. It doesn't appear to work
properly however. I have tried to debug it, but I have yet to be able
to get it to work. From the response I have gotten on the plugins
list nobody else seems to have got it working either.

				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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