/[svn.andrew.net.au]/scripts/check_temperature
ViewVC logotype

Diff of /scripts/check_temperature

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by apollock, Sun May 27 19:27:45 2007 UTC revision 21 by apollock, Sun May 27 19:34:48 2007 UTC
# Line 25  CRIT_TEMP=$2 Line 25  CRIT_TEMP=$2
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

Legend:
Removed from v.20  
changed lines
  Added in v.21

  ViewVC Help
Powered by ViewVC 1.1.22