*partly SOLVED* CRS317-1G-16S: problem with SNMPv3 and libnet-snmp-perl

Hello,

we use the check plugin https://github.com/lausser/check_nwc_health/ for all our network devices and SNMPv3. I can use snmpwalk with -v3, but not the plugin, it complains:

check_nwc_health --protocol 3 --username monitoring --authpassword 'foo' --privpass 'bar' --privprotocol des --authprotocol sha -H 192.168.1.8 --mode uptime
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Net/SNMP.pm line 2620.
CRITICAL - cannot create session object: Time synchronization failed during discovery

One reason could be (tcpdump):

snmpUsmMIB.usmMIBObjects.usmStats.usmStatsUnknownEngineIDs.0=464

It seems like, that the SNMP(v3) is not correct implemented in the latest RouterOS. How can I help, to fix this issue ?

cu denny

hi,

I tried also a different plugin, which is also based on libnet-snmp-perl and no luck :frowning::

check_snmp_int.pl -H 192.168.1.8  -l monitoring -x 'foo' -X 'bar' -L sha,des -w 1500,295 -c 2500,400  -k -B --label -k -B --label -n "sfp-sfpplus.*"
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Net/SNMP.pm line 2620.
ERROR opening session: Time synchronization failed during discovery.

same error.

cu denny

hi,

I’ve found a patch … https://manuel.mausz.at/coding/patches/net-snmp-synchronize.patch?text=1 to make it possible to use that plugins … I do not understand (https://rt.cpan.org/Public/Bug/Display.html?id=75191), why I have to do it only for the RouterOS … but it works.