if [ -e /usr/sbin/hpacucli ] && [ -e /dev/cciss/c0d0 ] ; then
if ! grep '^nagios.*hpacucli' /etc/sudoers > /dev/null; then
echo
echo 'WARNIG: Add these lines to sudoers:'
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show'
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd all show'
if [ -e /usr/sbin/hpacucli ] && [ -e /dev/cciss/c0d0 ] ; then
if ! grep '^nagios.*hpacucli' /etc/sudoers > /dev/null; then
echo
echo 'WARNIG: Add these lines to sudoers:'
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show'
echo 'nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd all show'