Ad Widget

Collapse

Creating Triggers (for an external script)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hawky
    Junior Member
    • Apr 2009
    • 15

    #1

    Creating Triggers (for an external script)

    Hi,

    I'm playing around with external scripts to monitor my HP-Hardware, i'm using
    check_ilo2_health and check_hpasm to get the integrated "hpasm" output.

    Everything is working fine, but i get always an email if the value of th item change, this is a litte disturbing so I thought, I only want to get an alert if the value wrong for the second or third time.
    This is my trigger:

    {SRV:chhpasm[{HOST.CONN}].str(OK - System)}

    I tried something like this:

    {SRV:chhpasm[{HOST.CONN}].str(OK - System).num(#3)}
    {SRV:chhpasm[{HOST.CONN}].str(OK - System,#3)}
    {SRV:chhpasm[{HOST.CONN}].str(OK - System).max(#3)}

    but nothing changed...(zabbix doesn't accept triggers like that .. syntax error)

    whats the best way to modify the trigger that it only becomes true when the value is wrong for the third time?

    thx,
    Hawky
    Last edited by Hawky; 01-09-2010, 21:38. Reason: update
  • ruswold
    Senior Member
    • Mar 2010
    • 210

    #2
    Use regexp
    http://www.zabbix.com/documentation/...onfig/triggers

    Comment

    Working...