Build precise queries to find exactly what you need
Press ESC to close
As /usr/sbin/hddtemp has to be run by root, there are two manual tweaks to do to have it run properly.
First add sudo in /usr/lib/nagios/plugins/contrib/check_lm_sensors at the command issued at line 29O (in the revision 1030) : my $command = “$hddtemp_bin -n /dev/$name”; changes to -> my $command = “sudo $hddtemp_bin -n /dev/$name”;
Then edit the sudoers file to add an authorization to the nagios user for sudoing this peculiar command : nagios ALL=(root) NOPASSWD:/usr/sbin/hddtemp (if your nagios user is not called nagios, please update accordingly)
And that’s all.
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!