25 |
TEMPERATURE=$($READ_TEMPERATURE --mrtg) |
TEMPERATURE=$($READ_TEMPERATURE --mrtg) |
26 |
|
|
27 |
if [ $TEMPERATURE -gt $CRIT_TEMP ]; then |
if [ $TEMPERATURE -gt $CRIT_TEMP ]; then |
28 |
$ECHO "Temperature is $TEMPERATURE °C\n" |
$ECHO "CRITICAL: Temperature is $TEMPERATURE °C\n" |
29 |
exit $STATE_CRITICAL |
exit $STATE_CRITICAL |
30 |
elif [ $TEMPERATURE -gt $WARN_TEMP ]; then |
elif [ $TEMPERATURE -gt $WARN_TEMP ]; then |
31 |
$ECHO "Temperature is $TEMPERATURE °C\n" |
$ECHO "WARNING: Temperature is $TEMPERATURE °C\n" |
32 |
exit $STATE_WARNING |
exit $STATE_WARNING |
33 |
else |
else |
34 |
$ECHO "Temperature is $TEMPERATURE °C\n" |
$ECHO "OK: Temperature is $TEMPERATURE °C\n" |
35 |
exit $STATE_OK |
exit $STATE_OK |
36 |
fi |
fi |