Hi! Even when it is not directly a nagios topic, i hope someone can help me. I have to execute with a eventhandler a command remote with another user as the user for nagios.
Let's say the nagios user is aaa, the user to login remote by ssh is user bbb and the user who can execute the init script is also user bbb. The check_by_ssh command i have so far is the following: /adm/libexec/nagios/check_by_ssh -H xxx -l bbb -i /adm/etc/nagios/id_nagios -C '/etc/init.d/saprouter.sh restart' The process on the remote machine is running as nobody and must be killed to stop the service. So finally the user to execute a command has to be the same user as the ssh login user. How can i do that? Thx Alex ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ 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