Hi all!
I´m facing a little problem with logfiles.
I create some logfiles from batchjobs which I want to monitor with a Zabbix Active Agent (log[/bla/log.txt,ERROR]).
Now zabbix gives a format with Timestamp, Local Time, Source, Severity, Value.
My question is
1. how to build the logfile to match this format?
(f.e. 2009.05.04, 17.40h#8050#ERROR#Something goes wrong) where # are the delimiter for zabbix
2. do I have to pass this delimiter to zabbix-item and if yes, how? :-)
At the moment Timestamp is filled with zabbix-internal time, when the log-entry arrives (ok), Local Time and Source are empty, Severity is always Not classified (could change that with ,ERROR in item-expression; I know,...) and value gives me the hole string from 1. (2009.05.04, 17.40h#8050#ERROR#Something goes wrong) which is not the goal.
To complete that, there is a thread discussing this problem, but without a result:
Thanks for your help,
kind regards,
Markus.
I´m facing a little problem with logfiles.
I create some logfiles from batchjobs which I want to monitor with a Zabbix Active Agent (log[/bla/log.txt,ERROR]).
Now zabbix gives a format with Timestamp, Local Time, Source, Severity, Value.
My question is
1. how to build the logfile to match this format?
(f.e. 2009.05.04, 17.40h#8050#ERROR#Something goes wrong) where # are the delimiter for zabbix
2. do I have to pass this delimiter to zabbix-item and if yes, how? :-)
At the moment Timestamp is filled with zabbix-internal time, when the log-entry arrives (ok), Local Time and Source are empty, Severity is always Not classified (could change that with ,ERROR in item-expression; I know,...) and value gives me the hole string from 1. (2009.05.04, 17.40h#8050#ERROR#Something goes wrong) which is not the goal.
To complete that, there is a thread discussing this problem, but without a result:
Thanks for your help,
kind regards,
Markus.