> 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:
#!/bin/sh
if [ $(whoami) != "root" ]; then
sudo $*
fi
And allow in sudoerrs.conf the nagios user to run the check_ciss.sh
command without passwords.
Works fine here for years :-)
Edwin
--
Edwin Groothuis Website: http://www.mavetju.org/
[EMAIL PROTECTED] Weblog: http://www.mavetju.org/weblog/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"