Ad Widget

Collapse

Zabbix agent2: Empty array in Docker Plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nexus-256
    Junior Member
    • Jan 2023
    • 3

    #1

    Zabbix agent2: Empty array in Docker Plugin

    Good afternoon!
    I am using a docker plugin for zabbix agent2.
    Some dependent elements in the template are displayed as "unsupported" and show the error "cannot apply aggregation function to empty array" because the necessary data is missing.
    For example, the "Docker: Volume size" element, which depends on the "Docker: Get data_usage" element.
    Please tell me, is it possible to convert an empty value to "0" when an element receives an empty value?​
  • nexus-256
    Junior Member
    • Jan 2023
    • 3

    #2
    I found how to do it, it turned out to be very simple.
    In the "preprocessing" of the element, you need to select the value "0" in case of an error.
    I hope this post will help someone.​

    Comment

    Working...