Ad Widget

Collapse

SNMP Network Discovery optimization

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jangi
    Junior Member
    • May 2016
    • 16

    #1

    SNMP Network Discovery optimization

    We have a customer with three different brands of networking devices spread across ten subnets. Each brand has it's own template. Devices are added/replaced often enough that it makes sense to automate discovery. Since each brand of device has it's own template and the devices are spread across subnets here is what I've done. It is working but I'm hoping there is a better way.

    Separated each subnet into it's own Discovery rule (10 rules). This is so they can run in parallel.
    Each rule has four SNMP checks; one for the sysName which is used as the Host Name, the other three allow me to tell what kind of device it is.
    Created three Discovery Actions; one for each brand device. Each action has ten conditions; one for each of the discovery rule (subnet) checks that corresponds to its device type.

    This is not very scalable. If I add another subnet I need another Discovery rule and then have to edit all three actions and add yet another OR condition to match it. It would make more sense to have the ability to do filtering/checks on the action but that doesn't seem possible. It would also be nice to ping devices first and then do SNMP checks if there is a response; zabbix seems to waste a lot of time waiting on SNMP timeouts.

    Any recommendations?
  • tikkami
    Member
    • May 2018
    • 71

    #2
    This is interesting topic. I was struggling with same problem few years ago. Finally I gave up and wrote a scriot script to add multiple hosts from csv-file via api.

    But now I got some new idea...
    Bash or python script could be used to ping network ranges, identify host name and type by snmp and then use api to add hosts with correct template based on collected information. And of course api could be used to get existing hosts, so they can be ignored by script.

    ​​​​​​


    ​​
    Last edited by tikkami; 06-02-2022, 08:46.

    Comment

    • jangi
      Junior Member
      • May 2016
      • 16

      #3
      Yea, I had a feeling writing my own "discovery engine" using the API may be the answer.. I was just hoping someone had figured something else out.

      Comment

      • tikkami
        Member
        • May 2018
        • 71

        #4
        I was hoping that too.

        I'll probably start to work with my own "engine" in the coming weeks.

        Comment

        Working...