Ad Widget

Collapse

Advanced TRIGGER Setup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duckdiver
    Junior Member
    • Aug 2010
    • 7

    #1

    Advanced TRIGGER Setup

    hi all,

    i am trying to create a trigger where i like to check if the current Used Storagememory is > than 90% of the Total Storage memory...

    i did it like this...but it seems there are no calculations allowed in Trigger Expressions??
    Code:
    {swi19zps1cs001:omOverallStorageUsed_CS001.last(0)}>{swi19zps1cs001:omOverallStorageTotal_CS001.last(0)*0,9}
    is their a possibility or do i first have to create an calculated item where is calculate 0,9*total storagemem and then setup the trigger??
    actually i don“t want to create an extra item for each calculated value?

    has someone a solution??

    THX
    Last edited by duckdiver; 10-12-2010, 12:37.
  • duckdiver
    Junior Member
    • Aug 2010
    • 7

    #2
    solved!!

    it works ... i had to put 0.9 out of the brackets and use a "." instead a ","
    Code:
    {swi19zps1cs001:omOverallStorageUsed_CS001.last(0)}>{swi19zps1cs001:omOverallStorageTotal_CS001.last(0)}*0.9

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      That works. However, making your item store a percentage in the first place is perhaps more elegant. That makes the Zabbix Agent do the calculation rather than the Zabbix Server, reducing load and the number of queries necessary.

      For example, the memory and disk items built-in have pfree as one of the keys. It sends a floating point number representing the percentage free. Then your trigger would only have a single item in it, looking to see if the number was bigger than (in your example) 90%.

      This may not be feasible in your case, but I thought I'd throw it out there as an optimization hint. Zabbix does great with a few hosts even when you have highly complex triggers. Multiply that by a few hundred and every little optimization can improve your performance and reliability.

      Comment

      Working...