Ad Widget

Collapse

SNMPv3 settings on Zabbix 6.4.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vitalev
    Junior Member
    • Mar 2013
    • 9

    #1

    SNMPv3 settings on Zabbix 6.4.6

    Hello everybody,
    i have zabbix 6.4.6 installed via apt packets on Ubuntu 22.04.3 LTS, i have a problem with SNMP V3 discovery roules for servers Lenovo with Xclarity Controllers.
    I have configured on servers a user with snmp v3 parameter :

    ​​

    After I have run the commands below on zabbix server shell sucessfully:

    vito@zabbix:~$ snmpwalk -v 3 -u snmpuser -l authPriv -A xxxxxxxx -a SHA -x AES -X xxxxxxx 172.21.204.18 IF-MIB::ifDescr
    IF-MIB::ifDescr.1 = STRING: lo
    IF-MIB::ifDescr.2 = STRING: eth1
    IF-MIB::ifDescr.3 = STRING: eth0
    IF-MIB::ifDescr.4 = STRING: sit0
    IF-MIB::ifDescr.5 = STRING: usb0

    vito@zabbix:~$ snmpwalk -v 3 -u snmpuser -l authPriv -A xxxxxxxxx -a SHA -x AES -X xxxxxxxx 172.21.204.19 IF-MIB::ifDescr
    IF-MIB::ifDescr.1 = STRING: lo
    IF-MIB::ifDescr.2 = STRING: eth0
    IF-MIB::ifDescr.3 = STRING: eth1
    IF-MIB::ifDescr.4 = STRING: sit0
    IF-MIB::ifDescr.5 = STRING: usb0


    i have setup the host snmp filds in zabbix as folow:


    Click image for larger version

Name:	image.png
Views:	5040
Size:	37.4 KB
ID:	469747​​​


    and hosts macros

    ​​

    But i receive this errors from zabbix:

    Cannot connect to "172.21.204.19:161": Authentication failure (incorrect password, community or key).

    or

    Timeout while connecting to "172.21.204.18:161"

    I have tryed to chenge authentication and pryvacy protocol but the problem persist

    Any idea?

    V.


  • vijayk
    Senior Member
    • May 2023
    • 305

    #2
    Originally posted by vitalev
    Hello everybody,
    i have zabbix 6.4.6 installed via apt packets on Ubuntu 22.04.3 LTS, i have a problem with SNMP V3 discovery roules for servers Lenovo with Xclarity Controllers.
    I have configured on servers a user with snmp v3 parameter :

    ​​

    After I have run the commands below on zabbix server shell sucessfully:

    vito@zabbix:~$ snmpwalk -v 3 -u snmpuser -l authPriv -A xxxxxxxx -a SHA -x AES -X xxxxxxx 172.21.204.18 IF-MIB::ifDescr
    IF-MIB::ifDescr.1 = STRING: lo
    IF-MIB::ifDescr.2 = STRING: eth1
    IF-MIB::ifDescr.3 = STRING: eth0
    IF-MIB::ifDescr.4 = STRING: sit0
    IF-MIB::ifDescr.5 = STRING: usb0

    vito@zabbix:~$ snmpwalk -v 3 -u snmpuser -l authPriv -A xxxxxxxxx -a SHA -x AES -X xxxxxxxx 172.21.204.19 IF-MIB::ifDescr
    IF-MIB::ifDescr.1 = STRING: lo
    IF-MIB::ifDescr.2 = STRING: eth0
    IF-MIB::ifDescr.3 = STRING: eth1
    IF-MIB::ifDescr.4 = STRING: sit0
    IF-MIB::ifDescr.5 = STRING: usb0


    i have setup the host snmp filds in zabbix as folow:


    Click image for larger version

Name:	image.png
Views:	5040
Size:	37.4 KB
ID:	469747​​​


    and hosts macros

    ​​

    But i receive this errors from zabbix:

    Cannot connect to "172.21.204.19:161": Authentication failure (incorrect password, community or key).

    or

    Timeout while connecting to "172.21.204.18:161"

    I have tryed to chenge authentication and pryvacy protocol but the problem persist

    Any idea?

    V.


    Did you check the SNMP port in XCC Server? by default Lenovo use port 162 instead of port 161.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Check your auth and privacy protocols, are they matching ... SHA1 vs SHA256 etc...

      Originally posted by vijayk

      Did you check the SNMP port in XCC Server? by default Lenovo use port 162 instead of port 161.
      ​This is just plain bad... 161 is agent port. 162 is trap port...
      Last edited by cyber; 04-09-2023, 11:38.

      Comment

      • juanunion
        Junior Member
        • Dec 2023
        • 1

        #4
        Hi! where you able to make this work?

        Comment

        • ISiroshtan
          Senior Member
          • Nov 2019
          • 324

          #5
          Originally posted by juanunion
          Hi! where you able to make this work?
          I would suggest you to create a dedicated thread explaining your setup, tests you've done and errors you see.

          In original question in this thread the likely reason is wrong Privacy protocol. If I remember correctly the net-snmp package (which includes the snmpwalk command) AES option invokes AES128 under the hood, while on screenshot of topic caster he set it to AES256 in Zabbix UI. But that not necessary mean you hit exactly same issue in your setup

          Comment

          Working...