Ad Widget

Collapse

Have several items extracted from one bitfield

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

    #1

    Have several items extracted from one bitfield

    Is there a convenient way to extract several flag values as items out of a bitfield? I've got a byte value retrieved over Modbus that contains status flags that I'd like to have as individual items with their own value mappings. I guess I can do masking of the value using preprocessing across several items (I'm actually not sure if this is possible, looking at the list of preprocessing operations, but I expect it probably is somehow) but due to the way the Modbus support in Zabbix works this will trigger 8 separate network retrievals of the same base value. Is there a better way to do this, e.g. some way to have the "base" item retrieved once, temporarily, and then several real item values derived from various fields of this base item?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    its called dependent items. You pull data once and then "attach" several dependent items to it and parse out needed value with preprocessing in dependent item.

    Comment

    • ssl
      Junior Member
      • Dec 2022
      • 2

      #3
      Aha that sounds perfect - thanks a lot, I'll look at the docs for that!

      Comment

      Working...