Don't just print the sudoers lines to stdout, tell the admin to add them also.
+dsa-nagios-nrpe-config (48) unstable; urgency=low
+
+ * Don't just print the sudoers lines to stdout, tell the admin to add them
+ also.
+
+ -- Peter Palfrader <weasel@debian.org> Tue, 22 Jul 2008 21:25:56 +0000
+
dsa-nagios-nrpe-config (47) unstable; urgency=low
* dsa-check-hpacucli: Check transfer speed of disks.
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 show status'
echo
elif ! grep '^nagios.*hpacucli.* pd .*:.* show' /etc/sudoers > /dev/null; then
+ echo
+ echo 'WARNIG: Add these lines to sudoers:'
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show'
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show'
fi