Build precise queries to find exactly what you need
Press ESC to close
@Miron
Favorites0
Views
Projects0
If you receive NRPE error "UNKNOWN: No health status line found", check that you have added "/usr/bin/sudo " into nrpe.cfg before command like this: command[check_smart]=/usr/bin/sudo /usr/local/nagios/libexec/check_smart -i $ARG1$ -d $ARG2$ And now in the file /etc/sudoers at the end add line: nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_smart now try: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_smart -a ata /dev/sda and you will got: OK: no SMART errors detected|Raw_Read_Error_............ :)
Reviewed 13 years ago