Ad Widget

Collapse

Best Method for modifying Host Discovery Rules

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sai-mike
    Junior Member
    • Jan 2021
    • 1

    #1

    Best Method for modifying Host Discovery Rules

    I am evaluating my first Zabbix install at a customer site and I have run into an issue with discovery rules. I have v5.0.5 installed.

    This customer has two HP ProCurve switches installed. I created two Hosts and linked the Template Net HP Enterprise Switch SNMP to each. When the discovery rules ran, the HP 1700 Switch was properly queried and all items, triggers and graphs were created. When the rules ran for the HP 1810, the following error was generated multiple times for Template Module Interfaces SNMP: Network interfaces discovery:

    Cannot accurately apply filter: no value received for macro "{#IFALIAS}".

    I did a SNMP Walk on both switches for OID 1.3.6.1.2.1.31.1.1.1.18 and the HP 1810 returns nothing while the HP 1700 returns aliases for all 24 ports. Since the {#IFALIAS} is used in several prototypes, I assume this is what is generating the error?

    I tried to clone the discovery rule so I could edit the SNMP OID string, but it has two parent discovery rules and it looks like the prototypes are defined at the highest level and inherited by the HP 1810 host. (The HP 1810 returns a single number for IFNAME so my original quick fix was going to be to change the OID for IFALIAS to match the OID for IFNAME and only do that in the discovery rule for the HP 1810 host so it did not alter the data for the HP 1700 as well.)

    I am not sure of the best method to properly fix this problem. I suppose my options would be to:
    1, Clone Template Module Interfaces SNMP, edit it, and use that for the HP 1810 Host
    2. Edit the Filters for Template Module Interfaces SNMP: Network interfaces discovery and remove the Macros for {#IFALIAS}

  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    IMHO - first. Clone template.

    Comment

    Working...