Ad Widget

Collapse

Problem with item discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #16
    It's not the template configuration, it's now about your host configuration. So, what "NET.IF.xxx" macros your router has configured, and with which values?

    Markku

    Comment

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

      #17
      Ok I got your point now that I checked your switch template: it has identical (as far as I could practically see) "Network interfaces" discovery rule, filters, item prototypes and defined macros, but you say that the switch template gives you the items discovered, but the router template does not.

      Well then, I don't know, there is something you are doing differently in those cases.

      The router template works here after setting the macros manually in my test device (even though there are some duplicate OIDs and incorrect LLD macro {#SNMPVALUE} in three item prototypes). It's Zabbix server 6.2.3 in this case.

      Markku

      Comment

      • JosefMaly
        Junior Member
        • Oct 2022
        • 14

        #18
        I dont know. I just know that if I will attach template for switches, where are exactly same macros specified, is it on this router working again

        Comment

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

          #19
          Actually your LLD filters are not identical in the switch and router templates, that's why one template works expectedly and the other doesn't. The "Type of calculation" field is set differently.

          Markku

          Comment

          • JosefMaly
            Junior Member
            • Oct 2022
            • 14

            #20
            Ohhh. I see now. I have And/Or in switches and AND only in routers. You think thats the problem?

            Comment

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

              #21
              Must be, but I cannot verify because I don't know how the macros have been set in your router.

              Markku

              Comment

              • JosefMaly
                Junior Member
                • Oct 2022
                • 14

                #22
                Yes! It was it. I changed it to And/Or and unlinked and linked template back to host, and now all interfaces are discovered again. Similar problem I have with Windows services discovery. So I will try same method and we will see. For now thank you so much for your help

                Comment

                • JosefMaly
                  Junior Member
                  • Oct 2022
                  • 14

                  #23
                  Update. When I changed in discovery of services filters from only And to And/Or, it started working too. So it was my bad configuration of things. Once more again thank you so much for your time and help.

                  Comment

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

                    #24
                    Originally posted by JosefMaly
                    Yes! It was it. I changed it to And/Or and unlinked and linked template back to host, and now all interfaces are discovered again.
                    Oh, that's not actually the correct solution.

                    If you are the only one ever administrating the installation (and don't get paid for doing it), you can leave it there, stop reading and be happy

                    Otherwise, "And" is the correct operator for those filter rules you have.

                    I really really recommend you to set the default values for the NET.IF.xxx macros in the template, just like in "Interfaces SNMP" template.

                    Then, if needed, you can customize the behaviour with your router by defining custom values for those macros in that specific router.

                    This process ensures that the macros affect the discovery properly, and it is easy to add more routers using the same template. With "And/Or" they don't work as expected.​

                    Markku

                    Comment

                    • JosefMaly
                      Junior Member
                      • Oct 2022
                      • 14

                      #25
                      Actually, this zabbix instance is for my homelab, but of course I want be better in configuring this system. "I really really recommend you to set the default values for the NET.IF.xxx macros in the template, just like in "Interfaces SNMP" template.​" I dont understand. When I´m looking into that Network interfaces discovery in template Interfaces simple SNMP everything is same as in my template. Only difference is for now that And/Or Calculation. But that filters are looking exactly the same. And LLD macros aren´t in both of them

                      Comment

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

                        #26
                        See the Macros tab in your own template, and in the "Interfaces SNMP" template. What do you see the difference? Your template does not define the macros at all.

                        Markku

                        Comment

                        • JosefMaly
                          Junior Member
                          • Oct 2022
                          • 14

                          #27
                          Oh. I see now. I will fix it. Thank you

                          Comment

                          Working...