[ZBX-5738] Trigger with count function on the log item is not resetting Created: 2012 Oct 25 Updated: 2017 May 30 Resolved: 2012 Oct 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.0.3 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Major |
Reporter: | Arli | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | logmonitoring, triggerfunctions, triggers | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix Server 2.0.3 (revision 30485) |
Description |
I have an active agent item with type Log and update interval 60 seconds. I tried to create trigger using count function to notify me if there are any new records on that logfile, so I used following trigger expression: {LINUX:log[/var/log/zabbix/syslog/alert.log].count(60)}>0 >0 For a workaround I tried to create a calculated item that would count log entries by minute and that worked as expected So it seems to me that the count function just doesn't work with the log item in the trigger expression. |
Comments |
Comment by richlv [ 2012 Oct 25 ] |
non-time based trigger functions make trigger recalculate only when it receives data. if you want to check for value existence, use nodata() |
Comment by Arli [ 2012 Oct 25 ] |
Ok, maybe it was a bad example. My idea in longer term was to create triggers like "more than 10 errors per minute". But I guess that can be also done by combining count with nodata. |
Comment by richlv [ 2012 Oct 25 ] |
that's already mentioned... both of contain : respectively |