[Nagiosplug-help] Nagios - check_by_ssh

Guillaume silencer at free-4ever.net
Thu Nov 16 10:50:16 CET 2006


Martin Konicek a écrit :
> Hi,
> 
> I just found propably mistake in nagios plugin chech_by_ssh
> 
> When I try to use this command place in checkcommands.cfg file
> 
> /usr/lib/nagios/plugins/check_by_ssh -lnagios -H $HOSTADDRESS$ -C
> "/usr/lib/nagios/plugins/traffic.sh" -t20
> 
> I receive WARNING from nagios with this message "Could not create
> directory '/sbin/.ssh'."
> 
> When I run this command manually from command line as root it works
> without problem. Nagios is also run as root so I do not understand where
> is a problem. For authentification I use SSH private and public key
> located in /root/.ssh. I also tried to create symlink /sbin/.ssh ->
> /root/.ssh but I received the same message
> 
> -- 
> =========
> Martin Koníček
> ::: Messages without supporting info will risk being sent to /dev/null

Hi,

Are you share you Nagios are running with root user ???

All Linux distribs and FreeBSD are creating a user nagios or something
like that !

Guillaume


-- 
Guillaume
E-mail: silencer_<at>_free-4ever_<dot>_net
Blog: http://guillaume.free-4ever.net
----
Site: http://www.free-4ever.net




More information about the Help mailing list