Nagios: UNKNOWN: Drive S/N : No health status line found,

root's picture

So, you added check_smart.pl to a new server and ran into this error:
UNKNOWN: Drive S/N : No health status line found

This means the Nagios user doesn’t have the necessary permissions to execute the command—pretty clear from the error, right?
Fortunately, you’ve found the right place to fix it! If check_smart.pl is located in /usr/lib/nagios/plugins/, just add the following line to the sudoers file:

# grep nagios /etc/sudoers  
nagios ALL=(ALL) NOPASSWD:/usr/lib/nagios/plugins/check_smart.pl

That should do the trick!

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root