January 2019
Intermediate to advanced
798 pages
20h 33m
English
Sending everything is acceptable with smaller files, but what if a file has lots of information and we're only interested in error messages? The Zabbix agent may also locally filter the lines and only send to the server the ones we instruct it to. For example, we could grab only lines that contain the error string in them. Modify the Second logfile item and change its key to the following:
log[/tmp/zabbix_logmon/logfile2,error,,,skip]
Add an error after the path to the log file. Note that now there are three commas between error and skip; we populated the second item key parameter. Click on Update. The same as before, it may take up to three minutes for this change to propagate to the Zabbix agent, so it's ...
Read now
Unlock full access