Hello everybody,
I want to monitor a logfile. It should search after the word "ERROR" in the very last row. Also it should ONLY monitor new entries all old entries should be ignored. I set up an item with Zabbix Agent (Active) with this exact key: log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip]. Type of information is of course "log".
In the Trigger section i tried a few things like:
change(/xxx/log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip])<>0
also
last(/xxx/log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip])<>0
also
find(/xxx/log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip],,"like","ERROR")=1
it works almost...everytime when he printed the very last value of the last row with the word ERROR in it he goes into a loop and starts all over again with the very first founded line with the word ERROR in it. As if the skip mode is in ignored state. What am i doing wrong ?
I want to monitor a logfile. It should search after the word "ERROR" in the very last row. Also it should ONLY monitor new entries all old entries should be ignored. I set up an item with Zabbix Agent (Active) with this exact key: log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip]. Type of information is of course "log".
In the Trigger section i tried a few things like:
change(/xxx/log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip])<>0
also
last(/xxx/log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip])<>0
also
find(/xxx/log[C:\xxx\wildfly\standalone\log\server.log,ERROR,,,s kip],,"like","ERROR")=1
it works almost...everytime when he printed the very last value of the last row with the word ERROR in it he goes into a loop and starts all over again with the very first founded line with the word ERROR in it. As if the skip mode is in ignored state. What am i doing wrong ?
Comment