OMNOMNOM. DEPRECATED SENSORS BEGONE.

This line, and those below, will be ignored--

M    html/pages/device.php


git-svn-id: http://www.observium.org/svn/observer/trunk@1046 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-03-23 15:39:59 +00:00
parent 72f600ac3f
commit 6d881f3a23
+8 -8
View File
@@ -53,15 +53,15 @@ if($health) {
</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);
#$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/">
<img src="images/16/contrast.png" align="absmiddle" border="0" /> Sensors
</a>
</li>');
}
#if($cisco_sensors) {
# echo('<li class="' . $select['ciscosensors'] . '">
# <a href="'.$config['base_url'].'/device/' . $device['device_id'] . '/ciscosensors/">
# <img src="images/16/contrast.png" align="absmiddle" border="0" /> Sensors
# </a>
#</li>');
#}
if(is_dir($config['collectd_dir'] . "/" . $device['hostname'] ."/")) {
echo('<li class="' . $select['collectd'] . '">