check_by_ssh problems

Jamie Baddeley jamie.baddeley at vpc.co.nz
Mon Apr 21 11:04:27 CEST 2003


Hi,

I running nagios on debian box.

I'm successfully doing check_by_ssh from the prompt i.e:

/usr/lib/netsaint/plugins/check_by_ssh -H foo.bar -P 22 -l noc -C 
'/usr/lib/netsaint/plugins/check_procs -a openam -c 7:'

It returns the correct result.

However whenever I run this from nagios, I'm getting an "Unknown" with status 
information only saying "Usage:"

I suspect it is because nagios runs check_by_ssh as nagios, and I'm doing my 
testing (at prompt) from root. 

The easy fix is to su to nagios and run ssh-keygen again and redistribute the 
keys.

The problem is the system won't let me su nagios. Not only this, but there is 
no home directory for nagios. If I can't su nagios, I can't ssh-keygen. So 
I'm stuck.

Has anyone else come across this? What is the solution?

Help.

Jamie


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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