Hello! I'm very noob at Zabbix and still learning some key points.
I want to split a log file entry separated by semicolon ";" and compare two of the values.
The log entries I have are like these:
2015-01-05-16.06.59;LOGSIZ;D:\ERP\LOG\S000017639.LOG;65536;65 536;
2015-01-05-16.29.02;LOGSIZ;D:\ERP\LOG\S000017640.LOG;65536;65 536;
2015-01-05-17.16.15;LOGSIZ;D:\ERP\LOG\S000011447.LOG;262144;2 62144;
2015-01-05-19.54.17;LOGSIZ;D:\ERP\LOG\S000011448.LOG;262141;2 62144;
In the post preview there is a space in "2 62144" but this is a post error. Please ignore.
Basically, the values are:
- Timestamp;
- LOGSIZ identifier;
- The path and filename where the log for each database are in;
- The file size;
- The expected file size;
I want to raise an alert everytime these two last "fields" of the line are different (like in the last line).
Can anyone help me, or at least, point me to some docs that helps me?
P.S: I already have a item to monitor when the line have the word LOGSIZ, just need to make a warning when values aren't the same.
I want to split a log file entry separated by semicolon ";" and compare two of the values.
The log entries I have are like these:
2015-01-05-16.06.59;LOGSIZ;D:\ERP\LOG\S000017639.LOG;65536;65 536;
2015-01-05-16.29.02;LOGSIZ;D:\ERP\LOG\S000017640.LOG;65536;65 536;
2015-01-05-17.16.15;LOGSIZ;D:\ERP\LOG\S000011447.LOG;262144;2 62144;
2015-01-05-19.54.17;LOGSIZ;D:\ERP\LOG\S000011448.LOG;262141;2 62144;
In the post preview there is a space in "2 62144" but this is a post error. Please ignore.
Basically, the values are:
- Timestamp;
- LOGSIZ identifier;
- The path and filename where the log for each database are in;
- The file size;
- The expected file size;
I want to raise an alert everytime these two last "fields" of the line are different (like in the last line).
Can anyone help me, or at least, point me to some docs that helps me?
P.S: I already have a item to monitor when the line have the word LOGSIZ, just need to make a warning when values aren't the same.

)
Comment