Project

General

Profile

Actions

Feature #5174

open

nrpe: check_sensors doesnt work, missing lmsensors

Added by dean hamstead over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
NRPE
Target version:
-
Start date:
09/18/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

[2.2.4-RELEASE][root@firewall]/usr/pbi/nrpe-amd64/libexec/nagios: ./check_sensors
SENSORS UNKNOWN - command not found (did you install lmsensors?)

The actual check itself is a shell script with the following critical section

*)
sensordata=`sensors 2>&1`
status=$?
if test ${status} -eq 127; then
text="SENSORS UNKNOWN - command not found (did you install lmsensors?)"
exit=$STATE_UNKNOWN
elif test ${status} -ne 0; then
text="WARNING - sensors returned state $status"
exit=$STATE_WARNING
elif echo ${sensordata} | egrep ALARM > /dev/null; then
text="SENSOR CRITICAL - Sensor alarm detected!"
exit=$STATE_CRITICAL
elif echo ${sensordata} | egrep FAULT > /dev/null \
&& test "$1" != "-i" -a "$1" != "--ignore-fault"; then
text="SENSOR UNKNOWN - Sensor reported fault"
exit=$STATE_UNKNOWN
else
text="SENSORS OK"
exit=$STATE_OK
fi

It doesnt seem solvable other than using bsdhwmon as an alternative

Actions

Also available in: Atom PDF