diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-06-28 17:58:18 +0200 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-06-28 17:58:18 +0200 |
commit | 480028f783aea36f7420fac1162a6ff76998fc3e (patch) | |
tree | ea771f51389adece15ce999dc64b2340d4faee68 /web/api/public | |
parent | 6f2295c7784492d9347930f49f97a97d3e7b6841 (diff) |
Get cisco temperatures too and mix other tweaks
Diffstat (limited to 'web/api/public')
-rwxr-xr-x | web/api/public/switch-state | 2 |
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'}; } |