Random Project

Simple and working

Check location of the script in sudoers file. I had the same problem because my installation is under /usr/local/nagios/

The correct line in sudoers file is:
nagios ALL=(root) NOPASSWD:/usr/local/nagios/libexec/check_hddtemp.sh

this works for me!