mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
fix to show health tab when device has temp sensors
git-svn-id: http://www.observium.org/svn/observer/trunk@1309 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -48,7 +48,7 @@ if ((is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['o
|
||||
}
|
||||
|
||||
$health = mysql_result(mysql_query("select count(*) from storage WHERE device_id = '" . $device['device_id'] . "'"), 0) +
|
||||
mysql_result(mysql_query("select count(temp_id) from temperature WHERE device_id = '" . $device['device_id'] . "'"), 0) +
|
||||
mysql_result(mysql_query("select count(sensor_id) from sensors WHERE device_id = '" . $device['device_id'] . "'"), 0) +
|
||||
mysql_result(mysql_query("select count(*) from cempMemPool WHERE device_id = '" . $device['device_id'] . "'"), 0) +
|
||||
mysql_result(mysql_query("select count(*) from cpmCPU WHERE device_id = '" . $device['device_id'] . "'"), 0) +
|
||||
mysql_result(mysql_query("select count(*) from processors WHERE device_id = '" . $device['device_id'] . "'"), 0) +
|
||||
|
||||
Reference in New Issue
Block a user