Ad Widget

Collapse

Trigger syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huntp
    Junior Member
    • Mar 2010
    • 4

    #1

    Trigger syntax

    Hi, I'm trying to write a Trigger which tells me if my JVM PermGen memory has reached 70% of total available.

    I've created a trigger with the following syntax, but it doesnt seem to fire ... am I missing some parenthesis or something?

    {Template_JVM_Memusage:jvm.permgen.used.last(0)}/{Template_JVM_Memusage:jvm.permgen.commit.last(0)} >10
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    Though I lack the knowledge of the usual values for permgen.used and permgen.commit,
    how come a relationship between them being confronted with a 10 ratio threshold expresses the 70% rule you described?

    Shouldn't it be,
    Code:
    {Template_JVM_Memusage:jvm.permgen.used.last(0)}/{Template_JVM_Memusage:jvm.permgen.commit.last(0)}>0.7

    Comment

    • MrKen
      Senior Member
      • Oct 2008
      • 652

      #3
      Apart from the 10% vs. 70% bit, I think you need brackets around the first part of the trigger, like this:

      ({Template_JVM_Memusage:jvm.permgen.used.last(0)})/{Template_JVM_Memusage:jvm.permgen.commit.last(0)} >10

      Basic maths, Brackets get done before the division!
      Disclaimer: All of the above is pure speculation.

      Comment

      Working...