From 73f8e3c7a83cc996672e15f518930769bfb89ed6 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 20 Jul 2010 18:28:15 +0000 Subject: [PATCH] display total traffic for mikrotik until cpu/memory graphing git-svn-id: http://www.observium.org/svn/observer/trunk@1446 61d68cd4-352d-0410-923a-c4978735b2b8 --- addhost.php | 2 +- includes/static-config.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addhost.php b/addhost.php index a54cf9ceb..a9b47990e 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 79b302d77..96c9e866c 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";