[ZBX-20358] Not able to monitor Devices with SNMPv3 AES 256 encryption Created: 2021 Dec 15 Updated: 2024 Oct 13 Resolved: 2024 Oct 13 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 5.4.8 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Sai Subramanian | Assignee: | Marina Generalova |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | 2.25h | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu 20.04 |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||
Issue Links: |
|
||||||||
Team: | |||||||||
Story Points: | 1 |
Description |
Steps to reproduce:
Result: |
Comments |
Comment by Sai Subramanian [ 2021 Dec 16 ] |
I am also facing the same with AES256C. For clarity, I am trying to add a fortigate device to Zabbix and trying to monitor it with AES 256C. But I am facing the issue mentioned above |
Comment by Vladislavs Sokurenko [ 2021 Dec 16 ] |
It means Zabbix server was compiled without AES256C support, this can be due to outdated snmp library used during compilation, where was this package downloaded from ? |
Comment by Sai Subramanian [ 2021 Dec 16 ] |
Hi Vladislavs, Thanks a lot for you swift response. Is it possible for you to guide me on update the SNMP library in order for it to Support AES 256, AES 256C and AES 192C? |
Comment by Vladislavs Sokurenko [ 2021 Dec 16 ] |
Please specify which one exactly and we will check if it is built with up to date snmp |
Comment by Vladislavs Sokurenko [ 2021 Dec 16 ] |
Can you comment on this yurii ?
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
],[
struct snmp_session session;
session.securityPrivProto = usmAES256PrivProtocol;
],[
AC_DEFINE(HAVE_NETSNMP_STRONG_PRIV, 1, [Define to 1 if strong AES priv protocols are supported.])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
])
meaning that package was compiled without latest NetSNMP |
Comment by Sai Subramanian [ 2021 Dec 16 ] |
I will give you details on what I did. Previously I was using 5.0.15 and I updated it to 5.4.8.
I used this script to Upgrade the server
|
Comment by Sai Subramanian [ 2021 Dec 19 ] |
I used this script because when I try to use the following commands I get this error
This is why I had to use the script
|
Comment by Victor Breda Credidio [ 2021 Dec 21 ] |
Hello, Sai. Could you please check the NET-SNMP library version you have installed? ldconfig | grep snmp Also check which Zabbix Packages were installed in your server. Regarding your script, it doesn't seem to do much different from what you were doing. lsb_release -a |
Comment by Sai Subramanian [ 2021 Dec 22 ] |
NET-SNMP version is : NET-SNMP version: 5.9.1
I am not getting any results for ldconfig | grep snmp
Output for lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal |
Comment by Victor Breda Credidio [ 2021 Dec 22 ] |
Sai, Could you please list the packages installed in your system too? About the ldconfig command, please use as follow: ldconfig -p |
Comment by Sai Subramanian [ 2021 Dec 22 ] |
Please find the text file attached to this comment to know the packages installed in the machine
|
Comment by Victor Breda Credidio [ 2021 Dec 22 ] |
Please, use the command below to list the installed Zabbix packages:
dpkg --list | grep zabbix |
Comment by Sai Subramanian [ 2021 Dec 22 ] |
This is the output for ii zabbix-agent 1:5.0.18-1+focal amd64 Zabbix network monitoring solution - agent ii zabbix-apache-conf 1:5.0.18-1+focal all Zabbix network monitoring solution - apache configuration for front-end ii zabbix-frontend-php 1:5.4.8-1+ubuntu20.04 all Zabbix network monitoring solution - PHP front-end ii zabbix-release 1:5.4-1+ubuntu20.04 all Zabbix official repository configuration ii zabbix-server-mysql 1:5.4.8-1+ubuntu20.04 amd64 Zabbix network monitoring solution - server (MySQL) |
Comment by Victor Breda Credidio [ 2021 Dec 28 ] |
Sai, What is the exact version of Zabbix that you are using in your environment? |
Comment by Sai Subramanian [ 2021 Dec 28 ] |
Zabbix 5.4.8 |
Comment by Sai Subramanian [ 2021 Dec 28 ] |
Is it possible for you to tell me in which environment you tested AES-256? If you can provide the exact environment details then I will test accordingly |
Comment by Victor Breda Credidio [ 2021 Dec 28 ] |
Are you running Zabbix on an all-in-one installation, or do you have a separated server for web? |
Comment by Sai Subramanian [ 2021 Dec 28 ] |
It is all in one installation |
Comment by Victor Breda Credidio [ 2021 Dec 28 ] |
Sai, According to the output of the command dpkg --list, it seems that the version of your zabbix-apache-conf package differs from the other components. Could you please perform an update for this package to the same version as the others, and check for the problem again? |
Comment by Sai Subramanian [ 2021 Dec 28 ] |
Is it possible for you to give me the command to update zabbix-apache-conf ? |
Comment by Victor Breda Credidio [ 2021 Dec 28 ] |
Sai, As described in our documentation, you can perform the update of zabbix-apache-conf using the following command: sudo apt install --only-upgrade zabbix-apache-conf |
Comment by Sai Subramanian [ 2021 Dec 29 ] |
I have updated the apache-conf. While using AES-256 I am getting the same error |
Comment by Victor Breda Credidio [ 2022 Jan 04 ] |
Hi Sai, Could you please perform a simple verification? cat /lib/x86_64-linux-gnu/libsnmp.so.35 | grep -ia sha-256 cat /lib/x86_64-linux-gnu/libsnmp.so.35 | grep -ia aes-256
|
Comment by Sai Subramanian [ 2022 Jan 04 ] |
cat /lib/x86_64-linux-gnu/libsnmp.so.35 | grep -ia sha-256
cat /lib/x86_64-linux-gnu/libsnmp.so.35 | grep -ia aes-256 No output |
Comment by Victor Breda Credidio [ 2022 Jan 05 ] |
Hi Sai. cat /lib/x86_64-linux-gnu/libsnmp.so.35 | grep -ia aes-256 No output Based on this information, it seems that your Ubuntu operation system does not have compiled aes-256, making it impossible to work out. Concerning Zabbix Server side, it cannot be treated as a bug or issue related to the Software, but to the Operating System.
Best regards, |
Comment by Sai Subramanian [ 2022 Jan 05 ] |
Since Zabbix is depended on NETSNMP, |
Comment by Victor Breda Credidio [ 2022 Jan 10 ] |
Hey Sai, Sorry, I don't have a step by step guide on that.
Best regards, |
Comment by Sai Subramanian [ 2022 Jan 10 ] |
Is it possible for you to guide me on how I can recompile net-snmp? |
Comment by Vladislavs Sokurenko [ 2022 Jan 13 ] |
It is supported on RHEL8/CentOS8/OL8 you can also try it in docker, for example with alpine: |
Comment by Sai Subramanian [ 2022 Jan 13 ] |
Okay thanks. Does this means that AES-256 and AES-256C doesn't work for Ubuntu 20.04? |
Comment by Sai Subramanian [ 2022 Jan 13 ] |
But if I install Zabbix on Centos8, do I have to install NETSNMP separately or it's libraries will installed when I install Zabbix 5.4? |
Comment by Vladislavs Sokurenko [ 2022 Jan 13 ] |
Yes, Ubuntu 20.04 uses older net-snmp, this will be added to documentation. |
Comment by Vladislavs Sokurenko [ 2022 Jan 13 ] |
It should be installed automatically as a dependency. |
Comment by Sai Subramanian [ 2022 Jan 13 ] |
Great then, will get back to you if I face any issues |
Comment by Ted Serreyn [ 2022 May 08 ] |
Just a chime in here, I was experiencing this on Debian 11, I installed testing version of snmp lib snmp-lib v3.9.1.
Snmpwalk now works locally on zabbix proxy and zabbix server (server is frontend, dB, and server).
however still see the problem if I do AES256 with SHA256.
I have multiple snmp V3 accounts on device I am using for testing (Checkpoint Firewall): sha256/AES128 works sha256/AES256 from zabbix fails with
however snmpwalk works just fine. snmpwalk -v3 -a SHA-256 -A abcd1234 -l authPriv -x AES-256 -X abcd1234 -u U256256 10.20.20.2 1.3.6.1.2.1.2.2.1.8.5
root@hostname:~# snmpwalk --version
root@hostname:~# zabbix_server --version Copyright (C) 2022 Zabbix SIA This product includes software developed by the OpenSSL Project Compiled with OpenSSL 1.1.1k 25 Mar 2021 |
Comment by Sai Subramanian [ 2022 May 08 ] |
Hi Ted, Thanks a lot for your honest remark and opinion. There are a lot of great features in Zabbix but, this could be a major drawback as this could compromise an organization's security. It would be great if you could fix this as soon as possible. |
Comment by Marina Generalova [ 2024 Oct 07 ] |
Added details about strong encryption support depending on the OS and net-snmp version to the documentation in 7.0, 7.2 |