Ad Widget

Collapse

"contain" condition in triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dpsantos
    Member
    Zabbix Certified Specialist
    • Mar 2005
    • 60

    #1

    "contain" condition in triggers

    Hello

    Is there a way to do a trigger that is activated when a value in the log contains certain words or an expression?

    Duarte Santos
  • LEM
    Senior Member
    Zabbix Certified Specialist
    • Sep 2004
    • 112

    #2
    Yes, it's possible, even if you will have to potentially modify a regexp in php code (see this patch report ).

    Exemple:
    Code:
    {myhost:log[/path/to/my/file.log].str(Signature verification failed)}>0
    will trigger on if 'Signature verification failed' appear in the given logfile.

    Btw, the above patches have been applied to 1.1.1. Anyway, perhaps you will have to extend the regexp for you specific needs. No pb: just do it and report (if in cas this has to be re-integrated to 1.1.1++
    Last edited by LEM; 31-08-2006, 17:49.
    --
    LEM

    Comment

    Working...