diff --git a/config.php.default b/config.php.default index abec652e96..e882d82939 100755 --- a/config.php.default +++ b/config.php.default @@ -80,7 +80,6 @@ $config['int_l2tp'] = 0; # Enable L2TP Port Types $config['show_locations'] = 1; # Enable Locations on menu $config['show_services'] = 1; # Enable Services on menu -$config['show_printers'] = 0; # Enable Printers Device Type on menu $config['ports_page_default'] = "details/"; # Default devices ports page display type. "details/", "graphs/bits/", etc @@ -95,6 +94,7 @@ $config['enable_etherlike'] = 1; # Enable Etherlike $config['enable_pseudowires'] = 1; # Enable Pseudowires $config['enable_ports_junoseatmvp'] = 0; # Enable JunOSe ATM VC Discovery/Poller $config['enable_ports_etherlike'] = 0; # Enable Polling EtherLike-MIB (doubles interface processing time) +$config['enable_printers'] = 0; # Enable Printer support #$config['rancid_configs'] = '/var/lib/rancid/network/configs/'; $config['rancid_ignorecomments'] = 0; # Ignore lines starting with # diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index f8356238f7..fb3e3f380c 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -51,7 +51,7 @@
  • Network
  • Firewalls
  • Printers
  • diff --git a/html/pages/device.php b/html/pages/device.php index a162ec2e35..7a2007bd05 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -157,6 +157,15 @@ if(mysql_result(mysql_query("select count(service_id) from services WHERE device '); } +if(@mysql_result(mysql_query("select count(toner_id) from toner WHERE device_id = '" . $device['device_id'] . "'"), 0) > '0') { + echo('
  • + + Toner + +
  • '); +} + + echo('
  • Events diff --git a/includes/discovery/toner.inc.php b/includes/discovery/toner.inc.php index 65ab4805a3..4f499389e7 100644 --- a/includes/discovery/toner.inc.php +++ b/includes/discovery/toner.inc.php @@ -1,6 +1,6 @@ diff --git a/poll-device.php b/poll-device.php index e9b479d8c9..163db9e5ad 100755 --- a/poll-device.php +++ b/poll-device.php @@ -164,7 +164,7 @@ while ($device = mysql_fetch_array($device_query)) { include("includes/polling/ports.inc.php"); include("includes/polling/cisco-mac-accounting.inc.php"); include("includes/polling/bgpPeer.inc.php"); - include("includes/polling/toner.inc.php") + include("includes/polling/toner.inc.php"); unset( $update ) ; unset( $seperator) ;