Ad Widget

Collapse

Auto add SNMP interface IP to discovered hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • myRCzabbix
    Member
    • Jun 2018
    • 39

    #1

    Auto add SNMP interface IP to discovered hosts

    Hello all,

    I'm doing my first install of Zabbix and have defined a host group named "Printers". I've also defined a discovery rule for hosts in 1 subnet checked via ICMP. As for the action, I've defined conditions to be Discovery Status = UP and Host IP = range of IPs scanned. Now, I can get them all working and all hosts discovered but all the hosts will not have any value in the SNMP interface field. How do I auto-assign the IP address to the SNMP interface field without having to go into each host and editing it manually?

    Any pointers appreciated.
  • myRCzabbix
    Member
    • Jun 2018
    • 39

    #2
    So I was mucking around and I think I might have accidentally discovered the solution: in the discovery rule, you need to add a SNMP check. I added it last night and this morning, all of my discovered hosts seems to have had their SNMP interface filled in with the IP address.

    Comment

    • LenR
      Senior Member
      • Sep 2009
      • 1005

      #3
      I think if you discover using SNMPVx agent instead of icmp you would get a snmp interface, but I don't use this in our environment.

      It would probably be possible to write an API script to find these hosts and add an SNMP interface if it doesn't exist.

      Comment

      • kernbug
        Senior Member
        • Feb 2013
        • 330

        #4
        Originally posted by myRCzabbix
        Hello all,

        I'm doing my first install of Zabbix and have defined a host group named "Printers". I've also defined a discovery rule for hosts in 1 subnet checked via ICMP. As for the action, I've defined conditions to be Discovery Status = UP and Host IP = range of IPs scanned. Now, I can get them all working and all hosts discovered but all the hosts will not have any value in the SNMP interface field. How do I auto-assign the IP address to the SNMP interface field without having to go into each host and editing it manually?

        Any pointers appreciated.
        Hi,
        Add to discovery rule SNMP check and apply SNMP template to the host with LLD.



        • if a host responded to agent checks only, it will be created with an agent interface only. If it would start responding to SNMP later, additional SNMP interfaces would be added.

        Comment

        Working...