aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/public
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-06-28 17:58:18 +0200
committerKristian Lyngstol <kly@kly.no>2016-06-28 17:58:18 +0200
commit480028f783aea36f7420fac1162a6ff76998fc3e (patch)
treeea771f51389adece15ce999dc64b2340d4faee68 /web/api/public
parent6f2295c7784492d9347930f49f97a97d3e7b6841 (diff)
Get cisco temperatures too and mix other tweaks
Diffstat (limited to 'web/api/public')
-rwxr-xr-xweb/api/public/switch-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/public/switch-state b/web/api/public/switch-state
index eaa8be3..b7cd70c 100755
--- a/web/api/public/switch-state
+++ b/web/api/public/switch-state
@@ -45,7 +45,7 @@ while ( my $ref = $q->fetchrow_hashref() ) {
}
$json{'switches'}{$sysname}{totals}{'total'} += 1;
}
- $json{'switches'}{$sysname}{'temp'} = $data{'misc'}{'jnxOperatingTemp'}{'7.1.0.0'};
+ $json{'switches'}{$sysname}{'temp'} = $data{'misc'}{'jnxOperatingTemp'}{'7.1.0.0'} || $data{'misc'}{'ciscoEnvMonTemperatureStatusValue'}{'1011'};
$json{'switches'}{$sysname}{'time'} = $ref->{'time'};
}