adding new /health/ pages, need cleaning up, need option to enable/disable graphs (right side 'toggle'?)

git-svn-id: http://www.observium.org/svn/observer/trunk@1062 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-04-11 13:45:19 +00:00
parent a72cccb1f3
commit 46faf7cf9d
12 changed files with 269 additions and 13 deletions
+6 -2
View File
@@ -48,13 +48,14 @@ $health = mysql_result(mysql_query("select count(*) from storage WHERE device_i
if($health) {
echo('<li class="' . $select['health'] . '">
<a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/health/">
<img src="images/16/chart_curve.png" align="absmiddle" border="0" /> Health
<img src="images/icons/sensors.png" align="absmiddle" border="0" /> Health
</a>
</li>');
}
#$cisco_sensors = mysql_result(mysql_query("SELECT count(*) FROM `entPhysical` WHERE device_id = '".$device['device_id']."' AND entSensorType != '' AND entSensorType NOT LIKE 'No%'"),0);
### This needs to die, rolled into generic sensors! (still need to implement booleans, tx/rx powers and currents)
#$cisco_sensors = mysql_result(mysql_query("SELECT count(*) FROM `entPhysical` WHERE device_id = '".$device['device_id']."' AND entSensorType != '' AND entSensorType NOT LIKE 'No%'"),0);
#if($cisco_sensors) {
# echo('<li class="' . $select['ciscosensors'] . '">
# <a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/ciscosensors/">
@@ -104,6 +105,9 @@ if($config['enable_bgp'] && $device['bgpLocalAs']) {
</li>');
}
### This probably needs to die? DEATH TO NAGIOS!
#if(@mysql_result(mysql_query("SELECT count(*) FROM nagios_hosts WHERE address = '".$device['hostname']."'", $nagios_link), 0) > '0') {
# echo('<li class="' . $select['nagios'] . '">
# <a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/nagios/">