Ad Widget

Collapse

Log Trigger doesn´t clear with no new data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hupp
    Junior Member
    • Feb 2008
    • 23

    #1

    Log Trigger doesn´t clear with no new data

    Hi,

    I have a log item which collects the hole logfile (Zabbix agent active).

    log[/var/log/test.log,,,100,skip]

    My Trigger expression is: {zbxsrv01:log[/var/log/test.log,,,100,skip].iregexp("error",30)}=1

    This works as long as new data in the logfile is collected. But if no new data is collected, the trigger stays on problem and doesn´t clear.

    My idea was to work with the nodata function, so my trigger looks like this now:
    {zbxsrv01:log[/var/log/test.log,,,100,skip].iregexp("error",30)}=1&{zbxsrv01:log[/var/log/test.log,,,100,skip].nodata(30)}=0

    But after the specified 30 seconds I get following error on the dashboard at this trigger in the Info field:
    Evaluation failed for function: {zbxsrv01:log[/var/log/test.log,,,100,skip].str(Error,30)}

    The timeperiod on the item above is my test, the production item has a higher value.

    Can someone help me please?

    My zabbix version is 2.0.6
Working...