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
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