If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
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?
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.
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.
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
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.
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 defaultvalues 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.
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 defaultvalues 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
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.
Comment