Not sure if this is the right repo for the issue, but I assume the SNMP connection and session from check_nwc_health are created in the GLPlugin.
Right now the check_nwc_health plugin (and therefore other plugins which rely on GLPlugin for SNMP connections) does not work with newer SNMP authentication protocols used in SNMPv3. Here's an example with SHA-256:
It works however when using the net-snmp cli commands, here snmpwalk:
$ snmpwalk -v 3 -l authNoPriv -u nagios -a SHA-256 -A secret 194.40.231.5 1.3.6 |more
iso.3.6.1.2.1.1.1.0 = STRING: "Linux u020sys0 3.10.0-957.21.3cpx86_64 #1 SMP Tue Dec 7 16:34:42 IST 2021 x86_64"
I tried to find the dependency module in the code, I suspected Net::SNMP, but was unable to find it. Net::SNMP would make sense that SHA-256 doesn't work: The current version on CPAN (https://metacpan.org/pod/Net::SNMP) 6.0.1 is from 2010 (!!) and only supports SHA (SHA1) and MD5 as authentication protocols. Maybe you implemented your own SNMP client into GLPlugin, but in the (short) research time I could not find it.
Hi Gerhard
Not sure if this is the right repo for the issue, but I assume the SNMP connection and session from check_nwc_health are created in the GLPlugin.
Right now the check_nwc_health plugin (and therefore other plugins which rely on GLPlugin for SNMP connections) does not work with newer SNMP authentication protocols used in SNMPv3. Here's an example with SHA-256:
It works however when using the net-snmp cli commands, here snmpwalk:
I tried to find the dependency module in the code, I suspected
Net::SNMP
, but was unable to find it. Net::SNMP would make sense that SHA-256 doesn't work: The current version on CPAN (https://metacpan.org/pod/Net::SNMP) 6.0.1 is from 2010 (!!) and only supports SHA (SHA1) and MD5 as authentication protocols. Maybe you implemented your own SNMP client into GLPlugin, but in the (short) research time I could not find it.Hence the feature request: Would it be possible to add the newer SHA-256 and SHA-512 (and maybe all the auth protocols listed on http://www.net-snmp.org/wiki/index.php/Strong_Authentication_or_Encryption)?
Thank you in advance.