I have a master item to monitor a log file for all logs containing a keyword. This works fine.
I have dependent items setup, that do preprocessing, to use regex. If no regex match, it drops the result:

I then create triggers on these dependent items:

This appears to work, with a small (and important) exception: the detailed data reported in the problem alert is one alert behind! Let's say an alert fires at 1pm, and the data is "server A". Then another alert fires at 2pm, and the data is "server B". And a third alert at 3pm with data "Server C".
The problems page shows "ServerA" as the detail for the second alert, and "ServerB" as the detail for the 3rd alert.
It's as if the alert is pulling old values for {ITEM.LASTDATA}.
Is this not the correct approach for monitoring a log? I assume using dependent items is better than having 4-5 triggers on the master log item? (or not?)
I have been searching the forums for some examples, but have come up empty. any ideas?
Thanks,
-Tom​
I have dependent items setup, that do preprocessing, to use regex. If no regex match, it drops the result:
I then create triggers on these dependent items:
This appears to work, with a small (and important) exception: the detailed data reported in the problem alert is one alert behind! Let's say an alert fires at 1pm, and the data is "server A". Then another alert fires at 2pm, and the data is "server B". And a third alert at 3pm with data "Server C".
The problems page shows "ServerA" as the detail for the second alert, and "ServerB" as the detail for the 3rd alert.
It's as if the alert is pulling old values for {ITEM.LASTDATA}.
Is this not the correct approach for monitoring a log? I assume using dependent items is better than having 4-5 triggers on the master log item? (or not?)
I have been searching the forums for some examples, but have come up empty. any ideas?
Thanks,
-Tom​
There is a case described in docs, where you can get a latest value instead of second to last, but not vice versa.
Comment