From 4666a02a51fa313e34875c169502a0cecf834b1c Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 16 Mar 2016 18:15:52 +0000 Subject: NMS: Rewrite the SNMP fetcher and whatnot Again. It's using the prototype, and the objects are configurable. I assume this will need some work. Also: I touched ping up to make it work without linknets. --- include/config.pm.dist | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/config.pm.dist') diff --git a/include/config.pm.dist b/include/config.pm.dist index cce82df..382b4e2 100755 --- a/include/config.pm.dist +++ b/include/config.pm.dist @@ -10,8 +10,10 @@ our $db_host = "gerald.tg15.gathering.org"; our $db_username = "nms"; our $db_password = ""; -# NMS hash used for public NMS obfuscation of interface names -our $nms_hash = ""; +# NMS: What SNMP objects to fetch. +our @snmp_objects = [['ifTable'], ['ifXTable'], ['sysDescr'], ['sysName'],['ipForward']]; +# Max SNMP polls to fire off at the same time. +our $snmp_max = 20; # DHCP-servers our $dhcp_server1 = "185.12.59.66"; # primary -- cgit v1.2.3 From ae8d11f9e6383cfd0adfed47343f53f330883d7c Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 16 Mar 2016 22:09:57 +0000 Subject: NMS: Slightly better OID-list (not complete) --- include/config.pm.dist | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'include/config.pm.dist') diff --git a/include/config.pm.dist b/include/config.pm.dist index 382b4e2..492e02d 100755 --- a/include/config.pm.dist +++ b/include/config.pm.dist @@ -11,7 +11,28 @@ our $db_username = "nms"; our $db_password = ""; # NMS: What SNMP objects to fetch. -our @snmp_objects = [['ifTable'], ['ifXTable'], ['sysDescr'], ['sysName'],['ipForward']]; +# Some basics +our @snmp_objects = [ +['ifIndex'], +['sysNam'], +['sysDescr'], +['ifHighSpeed'], +['ifType'], +['ifName'], +['ifDescr'], +['ifAlias'], +['ifOperStatus'], +['ifAdminStatus'], +['ifLastChange'], +['ifHCInOctets'], +['ifHCOutOctets'], +['ifInDiscards'], +['ifOutDiscards'], +['ifInErrors'], +['ifOutErrors'], +['ifInUnknownProtos'], +['ifOutQLen'] +]; # Max SNMP polls to fire off at the same time. our $snmp_max = 20; -- cgit v1.2.3 From 23663628b2586c715b1241b7036fd681429bcaa4 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 16 Mar 2016 23:51:45 +0000 Subject: NMS: Fix intentional spelling error --- include/config.pm.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/config.pm.dist') diff --git a/include/config.pm.dist b/include/config.pm.dist index 492e02d..6d9ae94 100755 --- a/include/config.pm.dist +++ b/include/config.pm.dist @@ -14,7 +14,7 @@ our $db_password = ""; # Some basics our @snmp_objects = [ ['ifIndex'], -['sysNam'], +['sysName'], ['sysDescr'], ['ifHighSpeed'], ['ifType'], -- cgit v1.2.3 From ae4ad57d12cda350022aff26380d40f6d1779b87 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Thu, 17 Mar 2016 01:22:01 +0000 Subject: SNMPfetch: Try random things to nail down deadlock It's not a big deal, but it's ugly. :wq asf --- include/config.pm.dist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/config.pm.dist') diff --git a/include/config.pm.dist b/include/config.pm.dist index 6d9ae94..a1db01a 100755 --- a/include/config.pm.dist +++ b/include/config.pm.dist @@ -31,7 +31,8 @@ our @snmp_objects = [ ['ifInErrors'], ['ifOutErrors'], ['ifInUnknownProtos'], -['ifOutQLen'] +['ifOutQLen'], +['1.3.6.1.4.1.2636.3.1.13.1.7.7.1.0'] ]; # Max SNMP polls to fire off at the same time. our $snmp_max = 20; -- cgit v1.2.3