diff --git a/addhost.php b/addhost.php index a54cf9ceb1..a9b47990e7 100755 --- a/addhost.php +++ b/addhost.php @@ -15,7 +15,7 @@ if($argv[1]) { $port = 161; if (!$snmpver) $snmpver = "v2c"; - if (!$community) $community = $config['community']; + if (!$community) $community = $config['snmp']['community'][0]; list($hostshort) = explode(".", $host); if ( mysql_result(mysql_query("SELECT COUNT(*) FROM `devices` WHERE `hostname` = '".mres($host)."'"), 0) == '0' ) { diff --git a/includes/static-config.php b/includes/static-config.php index 79b302d77a..96c9e866c1 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -95,6 +95,9 @@ $config['os']['screenos']['type'] = "firewall"; $config['os']['routeros']['text'] = "Mikrotik RouterOS"; $config['os']['routeros']['type'] = "network"; $config['os']['routeros']['nobulk'] = 1; +$config['os']['routeros']['overgraph'][] = "device_bits"; +$config['os']['routeros']['overtext'] = "Traffic"; + $config['os']['junose']['text'] = "Juniper JunOSe"; $config['os']['junose']['type'] = "network";