From 480028f783aea36f7420fac1162a6ff76998fc3e Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Tue, 28 Jun 2016 17:58:18 +0200 Subject: Get cisco temperatures too and mix other tweaks --- web/api/public/switch-state | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/api') 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'}; } -- cgit v1.2.3