diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php
index 41040604f..fbeea38a5 100644
--- a/html/includes/print-menubar.php
+++ b/html/includes/print-menubar.php
@@ -1,8 +1,8 @@
-
@@ -81,9 +81,9 @@ if (!isset($config['show_services']) || $config['show_services'])
All Services
-
- Alerts ('.$service_alerts.') ');
+ Alerts ('.$service_alerts.') ');
} ?>
= '10') {
}
## Display Locations entry if $config['show_locations']
-if ($config['show_locations'])
-{
+if ($config['show_locations'])
+{
$locations = mysql_query("SELECT DISTINCT location FROM devices ORDER BY location");
?>
-
@@ -141,11 +141,13 @@ if ($config['show_locations'])
Errored ('.$ports['errored'].') ');
}
-if ($ports['ignored']) {
+if ($ports['ignored'])
+{
echo(' Ignored ('.$ports['ignored'].') ');
}
@@ -155,13 +157,14 @@ if ($config['enable_pseudowires']) { echo(' { echo('<li><a href=) VRFs '); $ifbreak = 1;}
-?>
+?>
IPv4 Search
IPv6 Search
= '5') {##FIXME html
+if ($_SESSION['userlevel'] >= '5')
+{
echo('
');
if ($config['int_customers']) { echo(' Customers '); $ifbreak = 1;}
if ($config['int_l2tp']) { echo(' L2TP '); $ifbreak = 1; }
@@ -173,26 +176,28 @@ if ($_SESSION['userlevel'] >= '5') {##FIXME html
if ($ifbreak) { echo('
'); }
-if (isset($interface_alerts)) {
-echo(' Alerts ('.$interface_alerts.') ');
+if (isset($interface_alerts))
+{
+ echo(' Alerts ('.$interface_alerts.') ');
}
- $sql = "SELECT * FROM `ports` AS P, `devices` as D WHERE P.`deleted` = '1' AND D.device_id = P.device_id";
- $query = mysql_query($sql);
- $deleted_ports = 0;
- while($interface = mysql_fetch_assoc($query)) {
- if(port_permitted($interface['interface_id'], $interface['device_id'])){
- $deleted_ports++;
- }
+$sql = "SELECT * FROM `ports` AS P, `devices` as D WHERE P.`deleted` = '1' AND D.device_id = P.device_id";
+$query = mysql_query($sql);
+$deleted_ports = 0;
+while($interface = mysql_fetch_assoc($query))
+{
+ if(port_permitted($interface['interface_id'], $interface['device_id']))
+ {
+ $deleted_ports++;
}
-
+}
?>
Down
Disabled
Deleted ('.$deleted_ports.')'); }
+if($deleted_ports) { echo(' Deleted ('.$deleted_ports.') '); }
?>
|
@@ -238,7 +243,7 @@ echo('
if ($bgp_alerts) { echo('
Alerted (' . $bgp_alerts . ')
-'); }
+'); }
echo('
@@ -251,7 +256,6 @@ echo('
?>
-
System
@@ -268,7 +272,7 @@ echo('
= '10') {
echo('
');
-
+
if (auth_usermanagement())
{
echo('
@@ -280,10 +284,9 @@ echo('
echo('
Authlog');
} ?>
-
- |
+
+
-
-
-
+
+
diff --git a/includes/discovery/ipv4-addresses.inc.php b/includes/discovery/ipv4-addresses.inc.php
index c8112fd40..6ccf7feaa 100755
--- a/includes/discovery/ipv4-addresses.inc.php
+++ b/includes/discovery/ipv4-addresses.inc.php
@@ -1,56 +1,64 @@
diff --git a/includes/discovery/temperatures/dell.inc.php b/includes/discovery/temperatures/dell.inc.php
index 62e8999a8..7d16b6134 100644
--- a/includes/discovery/temperatures/dell.inc.php
+++ b/includes/discovery/temperatures/dell.inc.php
@@ -4,7 +4,7 @@ global $valid_sensor;
if (strstr($device['hardware'], "dell"))
{
- $oids = snmp_walk($device, ".1.3.6.1.4.1.674.10892.1.700.20.1.8", "-Osqn", "MIB-Dell-10892");
+ $oids = snmp_walk($device, "coolingDeviceDiscreteReading", "-Osqn", "MIB-Dell-10892");
$oids = trim($oids);
if ($oids) echo("Dell OMSA ");
foreach(explode("\n",$oids) as $oid)
@@ -16,8 +16,8 @@ if (strstr($device['hardware'], "dell"))
$descr_query = snmp_get($device, ".1.3.6.1.4.1.674.10892.1.700.20.1.8.$oid", "-Onvq", "MIB-Dell-10892");
$descr = trim(str_replace("\"", "", shell_exec($descr_query)));
$fulloid = ".1.3.6.1.4.1.674.10892.1.700.20.1.6.$oid";
- ### FIXME CURRENT
- discover_sensor($valid_sensor, 'temperature', $device, $fulloid, $oid, 'dell', $descr, '10', '1', NULL, NULL, NULL, NULL, NULL);
+ $temp = snmp_get($device, $fulloid, "-Oqv");
+ discover_sensor($valid_sensor, 'temperature', $device, $fulloid, $oid, 'dell', $descr, '10', '1', NULL, NULL, NULL, NULL, $temp);
}
}
}