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:
[r...@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)
[nag...@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@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

Reply via email to