Ad Widget

Collapse

Graphing Hysteresis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rbegling
    Junior Member
    • Dec 2014
    • 3

    #1

    Graphing Hysteresis

    In Zabbix 2.2 is there a way to create a graph that shows current data with data from the same time X days ago?

    I have a trigger expression that compares system cpu load to the load average from 7 days prior :

    {Template OS Linux:system.cpu.load[percpu,avg1].avg(1h)}/{Template OS Linux:system.cpu.load[percpu,avg1].avg(1h,7d)}>2&{Template OS Linux:system.cpu.load[percpu,avg1].avg(1h)}>1

    I would like to create a graph that has both the current CPU and 7d prior CPU overlaid for a easy visual representation. Is this possible?
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Tricky way is to create one more Calculated item with expression like
    Code:
    system.cpu.load[percpu,avg1].avg(1h,7d)
    and then use Item for Graph.
    Sincerely yours,
    Aleksey

    Comment

    • rbegling
      Junior Member
      • Dec 2014
      • 3

      #3
      When I try that I get:

      ##Invalid key "system.cpu.load[percpu,avg1].avg(1h,7d)" for item "Processor load (1 min average per core) 7 days ago" on "Template OS Linux": incorrect syntax near ".avg(1h,7d)".

      Comment

      • rbegling
        Junior Member
        • Dec 2014
        • 3

        #4
        Any other suggestions?

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          You're right
          The construction "system.cpu.load[percpu,avg1].avg(1h,7d)" doesn't work
          Only avg("system.cpu.load[percpu,avg1]",1h,7d) works

          Sorry
          Last edited by aib; 30-12-2014, 22:10.
          Sincerely yours,
          Aleksey

          Comment

          Working...