Ad Widget

Collapse

Network Discovery for Cisco switches doesn't add hosts to Zabbix

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scrabbi
    Junior Member
    • Jan 2025
    • 3

    #1

    Network Discovery for Cisco switches doesn't add hosts to Zabbix

    Hi,
    I'm quite new to Zabbix so I may not understand everything.
    I'm currently working on replacing our old solution with Zabbix and decided to try network discovery.
    Before going too far, I wanted to try with only a few hosts to better understand how to setup network discovery.

    I have 3 Cisco switches on the same network, all configured with the same SNMP community.
    My current Discovery Check is set to verify this OID : 1.3.6.1.2.1.1.1

    The Discovery Action linked to the rule has 2 conditions ; that the check with the OID works, and that the response gives back "Cisco".
    If it checks out, it creates the host, links it to the Cisco IOS SNMP, and adds it to a Host Group.

    It does not work and I don't know why.
    snmpwalk does work with the OID on all three hosts.
    I found this tutorial and I still can't get it to work : https://bestmonitoringtools.com/how-...r-with-zabbix/


    Am I missing something ?
  • Answer selected by Scrabbi at 28-01-2025, 11:56.
    Scrabbi
    Junior Member
    • Jan 2025
    • 3

    Did some tests with Wireshark and found the problem.


    With "snmpwalk -v2c -c mycommunity @IP-host 1.3.6.1.2.1.1.1", the OID in the response is 1.3.6.1.2.1.1.1.0, which is not the case in my discovery rule. Added .0 in the discovery rule, and now it works !

    Thanks for your help kyus !

    Comment

    • kyus
      Senior Member
      • Feb 2024
      • 172

      #2
      Hey!

      You can go to "Monitoring -> Discovery" to see if your switches have been "discovered".

      If you can see your switches there, it means that your discovery action isn't working as you expect.
      This could be due to the conditions set... You can try to remove all conditions and see if it works.

      I think you used the condition "Received value"... Be aware of the different validations...
      Code:
      equals, does not equals, contains, does not contain, is greater than or equals, is less than or equals

      Comment

      • Scrabbi
        Junior Member
        • Jan 2025
        • 3

        #3
        Hi !
        Thank you for your reply.

        I noticed my condition with the "received value" had indeed the wrong validation. I changed that, but still nothing pops up in "Monitoring -> Discovery".
        I then removed all of the conditions, and again nothing. I tried with only one IP address instead of a range in my Discovery Rule, same result.

        Are there any logs for Discoveries ? I can't find anything in zabbix_server.log, and "Reports -> Action log" is something different (right ?)

        Comment

        • Scrabbi
          Junior Member
          • Jan 2025
          • 3

          #4
          Did some tests with Wireshark and found the problem.


          With "snmpwalk -v2c -c mycommunity @IP-host 1.3.6.1.2.1.1.1", the OID in the response is 1.3.6.1.2.1.1.1.0, which is not the case in my discovery rule. Added .0 in the discovery rule, and now it works !

          Thanks for your help kyus !

          Comment

          Working...