check_by_ssh from a different username

Marc Powell marc at ena.com
Tue Mar 9 14:23:18 CET 2010


On Mar 9, 2010, at 12:46 AM, Morris, Patrick wrote:

>> How can I use check_by_ssh to monitor remote servers, when the 
>> username on the remote box is different from the Nagios user name?
> 
> Install the private keys of the remote users on the Nagios machine under 
> the nagios user.  You've already determined they work, so now copy them 
> over.

Actually, it's the opposite. He needs to add the nagios user's public key to the authorized_keys file for each user on the remote machines.

Moving private keys around is a security no-no.

--
Marc


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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