Ad Widget

Collapse

Multiple triggers on one item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Inglebard
    Junior Member
    • Sep 2014
    • 9

    #1

    Multiple triggers on one item

    Hi,

    I have 2 triggers on one item to get some data about rsync backup.

    Here is a little schema :

    Zabbix
    ---machine1
    |
    ---Item
    |
    ---rsync_data
    |
    ---Triggers
    |
    ---rsync_prob1
    ---rsync_prob2
    ---machine2
    |
    ---Item
    |
    ---rsync_data
    |
    ---Triggers
    |
    ---rsync_prob1
    ---rsync_prob2
    ...

    One the first backup I have got a string with "sav1" and in the second backup I have a string with "sav2", so I try to do that :

    rsync_prob1 =
    ((({mytemplate:rsync_data.regexp(error)})#0|({myte mplate:rsync_data.regexp(errors)})#0)|({mytemplate :rsync_data.regexp(bad)})#0)&({mytemplate:rsync_da ta.iregexp(sav1)}=1)

    rsync_prob2 =
    ((({mytemplate:rsync_data.regexp(error)})#0|({myte mplate:rsync_data.regexp(errors)})#0)|({mytemplate :rsync_data.regexp(bad)})#0)&({mytemplate:rsync_da ta.iregexp(sav2)}=1)


    But it's not working, when the latest rsync data is received by zabbix, the first trigger is automaticaly "OK". I think it's because of iregexp in the last line but I need it to know which backup is wrong.
    I could create another item but if it's possible to do otherwise, it will be great.

    Do you have an idea or more skill than me ?
  • Inglebard
    Junior Member
    • Sep 2014
    • 9

    #2
    Anyone have an idea or it's not clear ?

    Comment

    Working...