diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 5e05167b9..a887d6456 100644 --- a/html/pages/bill.inc.php +++ b/html/pages/bill.inc.php @@ -75,8 +75,6 @@ if (bill_permitted($bill_id)) if (!$vars['view']) { $vars['view'] = "quick"; } - if ($_GET['opta'] == "admin_history") { $vars['view'] = $_GET['opta']; } - if ($vars['view'] == "quick") { echo(""); } echo('Quick Graphs'); diff --git a/includes/discovery/discovery-protocols.inc.php b/includes/discovery/discovery-protocols.inc.php index 739e68657..870e98c09 100755 --- a/includes/discovery/discovery-protocols.inc.php +++ b/includes/discovery/discovery-protocols.inc.php @@ -117,7 +117,7 @@ if ($lldp_array) $lldp = $lldp_instance[$entry_instance]; $remote_device_id = @mysql_result(mysql_query("SELECT `device_id` FROM `devices` WHERE `sysName` = '".$lldp['lldpRemSysName']."' OR `hostname`='".$lldp['lldpRemSysName']."'"), 0); - if (!$remote_device_id) + if (!$remote_device_id && is_valid_hostname($lldp['lldpRemSysName'])) { $remote_device_id = discover_new_device($lldp['lldpRemSysName']); if ($remote_device_id) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 3c88b12f4..a78f6d6af 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -1,10 +1,5 @@ 100) { $tonerperc = 100; } + # FIXME also repoll capacity, or tonerperc can be incorrect; then line below can go too + if ($tonerperc > 100) { $tonerperc = 100; } # ^ $old_tonerrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("toner-" . $toner['toner_descr'] . ".rrd"); $tonerrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("toner-" . $toner['toner_index'] . ".rrd"); diff --git a/includes/static-config.php b/includes/static-config.php index d5f1feb14..99a8a54bc 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -412,7 +412,7 @@ $config['os'][$os]['over'][2]['text'] = "Memory Usage"; $os = "netscaler"; $config['os'][$os]['text'] = "Citrix Netscaler"; -$config['os'][$os]['type'] = "network"; +$config['os'][$os]['type'] = "loadbalancer"; $config['os'][$os]['icon'] = "citrix"; $config['os'][$os]['over'][0]['graph'] = "device_bits"; $config['os'][$os]['over'][0]['text'] = "Device Traffic"; @@ -1016,6 +1016,11 @@ $config['device_types'][$i]['text'] = 'Environment'; $config['device_types'][$i]['type'] = 'environment'; $config['device_types'][$i]['icon'] = 'environment.png'; +$i++; +$config['device_types'][$i]['text'] = 'Load Balancers'; +$config['device_types'][$i]['type'] = 'loadbalancer'; +$config['device_types'][$i]['icon'] = 'loadbalancer.png'; + if (isset($config['enable_printers']) && $config['enable_printers']) { $i++;