Ad Widget

Collapse

Trigger expressions: comparison values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mojah
    Member
    • Apr 2010
    • 60

    #1

    Trigger expressions: comparison values

    Hi,

    We're trying to do the following as a trigger expression:
    {Agent_Linux_General:system.cpu.load[,avg1].avg(60)} > ({Agent_Linux_General:system.cpu.num.last(0)} * 2)

    We're trying to create a very flexible Template, we can use over multiple servers (ranging from 1 cpu to dual quad cores showing 8 cpu's). We thought about comparing the load to the amount of active CPU's * 2, but that doesn't seem to trigger anything.

    We simplified it to: {Agent_Linux_General:system.cpu.load[,avg1].avg(60)} > {Agent_Linux_General:system.cpu.num.last(0)}
    But that as well doesn't work. Is it possible to use comparisons to other values retrieved by a Zabbix Agent?

    If it's not, we can still get this to work using Trigger Dependencies (create a trigger which evaluates to true if cpu.num = 1, another for cpu.num = 2, cpu.num = 3, ... and create a new Load-trigger dependant on each of those values).

    We're running Zabbix 1.8.1 now, and are (of course) still planning to upgrade to 1.8.2. Is this perhaps a limitation to expressions?
    Last edited by Mojah; 22-04-2010, 15:32.
Working...