NET::SNMP supports SHA256 authentication ?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
op-team
Posts: 49
Joined: Fri Jun 02, 2017 6:19 am

NET::SNMP supports SHA256 authentication ?

Post 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
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: NET::SNMP supports SHA256 authentication ?

Post 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.
Please let us know if you have any other questions or concerns.

-Jason
marchiom
Posts: 5
Joined: Mon Jul 12, 2021 2:38 pm

Re: NET::SNMP supports SHA256 authentication ?

Post 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".
Post Reply