check_smart plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
kabamaru
Posts: 11
Joined: Thu Sep 14, 2023 4:45 am

check_smart plugin

Post 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
kg2857
Posts: 237
Joined: Wed Apr 12, 2023 5:48 pm

Re: check_smart plugin

Post by kg2857 »

Plugins run as nagios, not root.
Post Reply