Ad Widget

Collapse

Dynamic enabled items ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Orwel
    Junior Member
    • Nov 2022
    • 2

    #1

    Dynamic enabled items ?

    I want to collect some hardware items (power consumption, fan status, ...) but only at bare metal hosts. Therefore i created an item "isvirtual" which checks if this system is running in a vm or bare metal, however i dont find a way to dynamicaly enable/disable items based on the value of anaother item. I tried something with discovery rules but found no way to create discoevery rules from item prototypes.
    Is there a way to configure this use case in zabbix?​
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2

    Comment

    • Orwel
      Junior Member
      • Nov 2022
      • 2

      #3
      I dont think singleton discovery solves my usecase so i try to clarify.
      My optimal solution would be:

      if baremetal(discovery) => get bmc-data(as item prototype)
      --> from bmc data discover powersupplies (dependent discovery from bmc-data as mater item)
      ----> get power consumption
      ----> ...
      --> from bmc data discover fans
      ----> get rpm
      ----> ...

      In this scenario i need to create discovery rules (for fan, powersupplies,...) from an item prototype as master item, but i dont see how singleton discovery can help me here.
      If i create bmc-data as a normal(non discovered) item all works as exspected but on non bare metal hosts i get lots of errors (in log) and invalid items so i need a way to disable the bmd-data masteritem on non bare metal hosts.​

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Sounds like "overrides" ... if "{#ISVIRTUAL}" exists, then stop processing or do not discover...

        Comment

        Working...