> -----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_by_ssh vs. ssh (when executed,have > different environments) >
[chop] > > 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 [EMAIL PROTECTED] "command1;echo STATUS CODE: $?;command2;echo STATUS CODE: $?;..." -- Marc ------------------------------------------------------------------------- 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@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