diff options
-rwxr-xr-x | collectors/snmpfetchng.pl | 6 | ||||
-rwxr-xr-x | extras/tools/get_mibs.sh | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/collectors/snmpfetchng.pl b/collectors/snmpfetchng.pl index 2f5e785..a0f7608 100755 --- a/collectors/snmpfetchng.pl +++ b/collectors/snmpfetchng.pl @@ -10,9 +10,9 @@ use lib '../include'; use nms; SNMP::initMib(); -SNMP::addMibDirs("/srv/tgmanage/mibs/StandardMibs"); -SNMP::addMibDirs("/srv/tgmanage/mibs/JuniperMibs"); -SNMP::addMibDirs("/srv/tgmanage/mibs"); +SNMP::addMibDirs("/opt/nms/mibs/StandardMibs"); +SNMP::addMibDirs("/opt/nms/mibs/JuniperMibs"); +SNMP::addMibDirs("/opt/nms/mibs"); SNMP::loadModules('ALL'); our $dbh = nms::db_connect(); diff --git a/extras/tools/get_mibs.sh b/extras/tools/get_mibs.sh index 7c8cc52..0ae0ff8 100755 --- a/extras/tools/get_mibs.sh +++ b/extras/tools/get_mibs.sh @@ -6,10 +6,13 @@ set -x set -e cd $TMP wget ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz +wget https://www.juniper.net/techpubs/software/junos/junos151/juniper-mibs-15.1R3.6.tgz tar xvzf v2.tar.gz --strip-components=2 +tar xvzf juniper-mibs-15.1R3.6.tgz mkdir -p mibs -cp v2/* mibs/ +mv v2 mibs/CiscoMibs +mv StandardMibs JuniperMibs mibs/ mv mibs ${ORIGPWD}/ cd ${ORIGPWD} rm -rf ${TMP} |