Hi Michel, Hi Marcus ;-) now i see what's wrong here:
in your sudoers you allow the nagios-user to execute /sbin/hpasmcli with sudo but according to the nrpe.cfg command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm you actually try to execute /usr/local/nagios/libexec/check_hpasm with sudo. Inside the check_hpasm i have some code which decides wether to execute "/sbin/hpasmcli" or "sudo /sbin/hpasmcli". This depends on the uid under which the plugin was started. You have two possibilities: 1. - Stay with the current sudoers configuration which works ("....Yes, the sudo /sbin/hpasmcli -s help works run as nagios. I get the following output....") - Tell NRPE to run check_hpasm as the nagios user: command[check_hpasm]=/usr/local/nagios/libexec/check_hpasm The check_hpasm would detect that it runs under a non-root uid and will call sudo /sbin/hpasmcli ... 2. - Add /usr/local/nagios/libexec/check_hpasm to the list of privileged commands in /etc/sudoers and keep your nrpe.cfg I would recommend Nr.1 > little bit afraid of the time you have to spend to configure it :-) If i can help convincing a management to accept Nagios, then it was worth it. Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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