[-]
[+]
|
Changed |
nagios-plugins-snmp.changes
|
|
[-]
[+]
|
Changed |
nagios-plugins-snmp.spec
^
|
|
[-]
[+]
|
Changed |
check_snmp_brocade_health
^
|
@@ -1,8 +1,8 @@
#!/usr/bin/php
<?php
// Author: Carsten Schoene
-// $LastChangedDate: 2015-02-01 18:52:22 +0100 (So, 01. Feb 2015) $
-// Rev: $Rev: 9776 $
+// $LastChangedDate: 2015-02-02 07:59:29 +0100 (Mo, 02. Feb 2015) $
+// Rev: $Rev: 9778 $
// required arguments
// $1 = Host / IP
// $2 = read community string
@@ -158,13 +158,13 @@
}
$crittemp = $shuttemp - 2;
$lowcrittemp = $shuttemp - 10;
- if ( $curtemp < $crittemp && $curtemp > $warntemp ) {
+ if ( $curtemp < $crittemp && $curtemp > $lowcrittemp && $curtemp > $warntemp ) {
$tempstate = CRITICAL;
- $tempoutput = "Chassis Temperature " . $curtemp . $grad."C is near shutdown level";
- }elseif ( $curtemp < $lowcrittemp && $curtemp > $warntemp ) {
- $tempstate = WARNGING;
+ $tempoutput = "Chassis Temperature " . $curtemp . $grad."C is near shutdown level (".$shuttemp.$grad."C / ".$crittemp.$grad."C)";
+ }elseif ( $curtemp <= $lowcrittemp && $curtemp > $warntemp ) {
+ $tempstate = WARNING;
$tempoutput = "Chassis Temperature " . $curtemp . $grad. "C has reached warnging level (".$warntemp.$grad."C)";
- }elseif ( $curtemp < $warntemp ) {
+ }elseif ( $curtemp <= $warntemp ) {
$tempstate = OK;
$tempoutput = "Chassis Temperature " . $curtemp . $grad. "C is normal";
} else {
|