Page 1 of 1

NET::SNMP supports SHA256 authentication ?

Posted: Thu Feb 27, 2025 6:44 am
by op-team
Hi,

I'm running NagiosXI 2024R1.3.4 on redhat 9.5

Which module NET::SNMP supports SHA256 authentication ?
I'm Trying to set up SNMP v3 checks with SHA256 authentication, but seems like net-snmp 5.9.1 don't supported.

currently installed:
[root@nvs-nagios-01: ~]# rpm -q net-snmp-perl
net-snmp-perl-5.9.1-17.el9.x86_64

any idea? Thanks

Re: NET::SNMP supports SHA256 authentication ?

Posted: Thu Feb 27, 2025 5:17 pm
by jmichaelson
I came across this post

Code: Select all

https://www.claudiokuenzler.com/blog/1205/how-to-perl-net-snmp-v3-authentication-protocol-support-newer-sha-sha256-sha512
. Let us know if that helps you.

Re: NET::SNMP supports SHA256 authentication ?

Posted: Fri Dec 19, 2025 3:06 pm
by marchiom
Patching USM.pl works to enable SHA256. Info here: https://www.claudiokuenzler.com/blog/12 ... 256-sha512

I did this for NagiosXI MRTG graphs. My NagiosXI is running on Oracle Linux 9.

Just remember, after you replace the USM.pl file, you have to update the mrtg config files to use sha256, but you also have to update any mrtg files to sha1 for your older devices still using SHA1. The default "sha" does not work anymore, it needs to be "sha1" or "sha256" or "sha512".