Ad Widget

Collapse

Template discovery rule (pfsense) is not populating any items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kofe
    Junior Member
    • Dec 2022
    • 2

    #1

    Template discovery rule (pfsense) is not populating any items

    Hello,
    I'm pretty new to zabbix so forgive me if I'm missing something obvious​.

    Zabbix version is: 6.26
    I'm trying to use the snmp template for pfsense firewalls from here: https://git.zabbix.com/projects/ZBX/...at=release/6.2
    SNMP connection is working and "Execute now" for the discovery rule gives: "Request sent successfully​"
    Get value and test for the Discovery rule and Items also works and gives the expected Results (see screenshot).

    However no discovered Items are populated. There is just nothing aside form the 18 "hard" Items the template defines. Other pretty similar similar Discovery rules for e.g. switches do work.
    There are also no Items in the "not supported" category.

    So I have two questions.

    The first is obviously what am I doing wrong?
    And the second is there a way to debug this? I cant find anything in the server log.

    Click image for larger version

Name:	2022-12-09_15-02.png
Views:	323
Size:	40.6 KB
ID:	455827
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1784

    #2
    Can you show the full Value data of the discovery rule (in your screenshot)?

    Markku

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1784

      #3
      Also note that the template defines a bunch of user macros, as documented in the link you provided. You can override those macro values in your host, see the Inherited and host macros button in the Macros tab in your host. Those macro values are used for filtering the interfaces that are found in the discovery.

      For example, as per the link, in will only find interfaces that match this regular expression (defined by macro {$NET.IF.IFNAME.MATCHES}): ^em[0-9]+$​

      (It means: match interface names that start with "em" and have one or more numbers after that, end then end of the name)

      is there a way to debug this?
      In this case when you are using an existing and official template, we can assume that the discovery is technically correctly configured, so we can concentrate on these:
      1. Is the discovery run at all? There is the interval, or you can try executing it now
      2. Does the discovery return the data? Use the Test button as you did.
      3. How are the Filters (and possibly Overrides) configured in the template? Usually the user macros (as described above) are used in the filtering rules. Compare the Filters with your discovery data and determine if the matching should happen or not.

      Markku
      Last edited by Markku; 10-12-2022, 16:41.

      Comment

      Working...