Ad Widget

Collapse

Averaging items created by a discovery rule?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adam.dorsey
    Junior Member
    • Mar 2015
    • 3

    #1

    Averaging items created by a discovery rule?

    I have Zabbix 2.2.1 installed from EPEL on a RHEL 6.6 server.

    I'm working on creating a template for monitoring a Hitachi HNAS network attached storage system. I've set up this template very similar to the "Template SNMP Interfaces" template that comes with Zabbix; the key for the discovery rule is the name of the FPGA, and it uses #SNMPINDEX to get the load values from the appropriate OID.

    I have a discovery rule that gets me items, graphs, triggers etc. for the load values for the various FPGAs in this system (28 overall). The item for the FPGA load is
    Code:
    fpgaUtilization[{#SNMPVALUE}]
    where #SNMPVALUE is the name of the FPGA.

    I'd like a way to provide a graph of the average FPGA load across all FPGAs in the system, since the Hitachi MIB doesn't have this value. To do this, I tried creating a new item called "Average FPGA Load", of type "Calculated", and setting its formula to
    Code:
    avg(fpgaUtilization[*])
    However this didn't work. I suspect I can't use wildcards in formulas in this manner.

    Is there a method to average values from items that are created from a discovery rule?
    Last edited by adam.dorsey; 27-03-2015, 20:12.
  • adam.dorsey
    Junior Member
    • Mar 2015
    • 3

    #2
    I've been digging through the documentation for some way to do what I want to do with no luck.

    Is there any way to use a calculated type to average discovered types?

    Comment

    • JambaFun
      Junior Member
      • Sep 2014
      • 2

      #3
      There does not seem to be a way using standard Zabbix configuration.

      I would use an item of type External check that calculates the average value using some SQL into Zabbix DB. Not too hard and you could have some parameters to the script making it very reusable.

      Comment

      • adam.dorsey
        Junior Member
        • Mar 2015
        • 3

        #4
        Thanks, I was afraid of that. I'll look into the external check types and see if I can figure something out there.

        Comment

        Working...