Page 1 of 1

check_smart plugin

Posted: Fri Oct 06, 2023 4:04 am
by kabamaru
Hello all

I am trying to use the check_smart plugin on my nagios setup core 4.4.14. The plugin is here:
https://exchange.nagios.org/directory/P ... ng/details

When I run it locally on the host (Centos7), I get a result.

Code: Select all

[root@dvv-1 libexec]# ./check_smart -d /dev/sdb -i auto
OK: Drive  DELL MD32xx S/N 3C3005A: no SMART errors detected. 
But I when I try it from nagios (Rocky 9), I get the following output:

Code: Select all

[root@stoca plugins]# ./check_nrpe -H [i]hostname[/i] -c check_smart -a '-d /dev/sdb -i auto'
UNKNOWN: Drive  S/N :  No health status line found, 
Is my syntax correct? Has anyone used this plugin before successfully?

Thank you
Yanni

Re: check_smart plugin

Posted: Fri Oct 06, 2023 4:16 am
by kg2857
Plugins run as nagios, not root.