> The nrpe daemon that handles the script runs as the "nagios" user and
> the command needed is camcontrol:

First lines of the check_ciss.sh command:


    if [ $(whoami) != "root" ]; then
            sudo $*

And allow in sudoerrs.conf the nagios user to run the check_ciss.sh
command without passwords.

Works fine here for years :-)


Edwin Groothuis         Website: http://www.mavetju.org/
[EMAIL PROTECTED]       Weblog:  http://www.mavetju.org/weblog/
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to