Ad Widget

Collapse

Incorrect Trigger Expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spencer
    Junior Member
    • Nov 2014
    • 1

    #1

    Incorrect Trigger Expression

    Hello,

    I'm new to Zabbix and although I've been picking it up well (and the forums have helped a lot), I'm having a problem with something that I'm not sure is a syntax problem...but I need to ask.

    I'm creating a trigger for an item that monitors the Windows Event Log for an Application Error. Here is my trigger that works:

    Code:
    {testhost:eventlog[Application,,Error,,1000].logseverity(0)}=4

    My problem is, as many have discussed before, that the trigger for the occurrence of an event doesn't clear from the dashboard, so I found advice that suggests something like this:

    Code:
    {testhost:eventlog[Application,,Error,,1000].logseverity(0)}=4 & 
    {testhost:eventlog[Application,,Error,,1000].nodata(1800)}#1

    That does work. When I press Update, I get the following error:

    Code:
    Incorrect trigger expression. Check expression part starting from " & {testhost:eventlog[Application,,Error,,1000].nodata(1800)}#1".

    For fun, I changed the & to the word "and" like this:

    Code:
    {testhost:eventlog[Application,,Error,,1000].logseverity(0)}=4 and {testhost:eventlog[Application,,Error,,1000].nodata(1800)}#1
    ...and got this error:

    Code:
    Incorrect trigger expression. Check expression part starting from "}#1".

    This almost makes me think that my Zabbix installation is not liking the trigger operators (the & or the #), but I'm a rookie. I could be WAY off on my trigger expression.

    Thanks in advance!
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2
    Hi,


    5.5 Support of new trigger operators

    {testhost:eventlog[Application,,Error,,1000].logseverity(0)}=4 and
    {testhost:eventlog[Application,,Error,,1000].nodata(1800)}<>1
    Last edited by harmonica; 23-11-2014, 11:44.

    Comment

    Working...