Problem with check_by_ssh

Matt Simmons standalone.sysadmin at gmail.com
Fri Jan 22 15:27:24 CET 2010


Are you able to ssh to the remote machine as the remote user? I've
been bitten by not having the remote host in my nagios user's
known_hosts file, and my scripts get prompted, and for some reason
that stops me from obtaining statistics ;-)

--Matt


On Fri, Jan 22, 2010 at 7:35 AM, Mario Rimann <mario at rimann.org> wrote:
>
> Hi there
>
> We're experiencing an issue on a new setup where check_by_ssh should run a
> script on a foreign host with two parameters and handle the response.
> Executing the script on the remote server works - but the parameters don't
> get transmitted to the remote server. Afther fiddling around with the
> service and the command definition, I started to run the command on the
> shell to see what happens:
>
> If I run it locally as root, all works out:
> [root at monitoring ~]# /path/to/libexec/check_by_ssh -l root -H
> xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"
>
> Running the same stuff as the nagios user fails (script get's called, but
> doesn't get the parameters)
> [nagios at monitoring ~]$  /path/to/libexec/check_by_ssh -l root -H
> xxx.xxx.xxx.xxx -v -C "/root/bin/checkSomeThing.sh 300 500"
>
> I already checked /etc/passwd - but besides the user's names, user-id,
> group-id and the home directory path all looks the same - both have
> /bin/bash as their logon shell.
>
> Any hint?
>
> Cheers,
> Mario
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> 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
>



-- 

LITTLE GIRL: But which cookie will you eat FIRST?
COOKIE MONSTER: Me think you have misconception of cookie-eating process.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
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