From a00e9764487bc895d7d4658641959f92e3d50c5b Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 27 May 2016 20:40:37 +0200 Subject: Support at least one MAC-address logging thing Might have to re-think how we do this in the long run, possibly providing some richer config to avoid hard-coding it in the collector. But for now: Fixes #28 --- include/config.pm | 1 + include/nms.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/config.pm b/include/config.pm index 9987d05..c8664cb 100755 --- a/include/config.pm +++ b/include/config.pm @@ -25,6 +25,7 @@ our @snmp_objects = [ ['ifOperStatus'], ['ifAdminStatus'], ['ifLastChange'], + ['ifPhysAddress'], ['ifHCInOctets'], ['ifHCOutOctets'], ['ifInDiscards'], diff --git a/include/nms.pm b/include/nms.pm index df4cc3a..eff61c3 100755 --- a/include/nms.pm +++ b/include/nms.pm @@ -8,7 +8,7 @@ use JSON; package nms; use base 'Exporter'; -our @EXPORT = qw(db_connect); +our @EXPORT = qw(db_connect convert_mac); BEGIN { require "config.pm"; -- cgit v1.2.3