Zabbix, like many other modern monitoring applications allows its users to implement custom plugins. In your case, to monitor log files as painlessly as possible, you will need a plugin that was built specifically for that; one that allows you to easily specify the log patterns to look for and the thresholds to assign to those patterns when they're found in the log.
An example of such a tool is autoresolve.kl.sh
The installation process for this tool is simple:
1. Log into the host on which you have log files to monitor
2. wget (the-url-link-of-zip-file-of-autoresolve.kl.sh)
3. cd /tmp ; unzip (the-downloaded-zip-file)
4. ./install.sh /var/tmp/KINGLAZY/SHIELDX-autoresolve.kl.sh /home/jserver -force
Replace '/home/jserver' with your zabbix plugins directory. Also, make sure to run the preceding installation commands as an ordinary user - not root, unless you're testing.
After installation, you can begin monitoring logs with a simple command such as this:
./autoresolve.kl.sh localhost /var/tmp/logXray,fixer,0n-1y-2y,0-uname,1-who,2-uptime autonda /var/log/rsmonit_errors.log 60m 'error' '.' 1 2 error_watch -ndshow
The most important parameters you'll need to change are:
/var/log/rsmonit_errors.log - This is the log file you're monitoring
error - This is the string you're looking for in the log file. To monitor multiple patterns inside a log, just specify them this way: "error_P_fail_P_segfault_P_crash_P_panic". The underscore P underscore means "|". It's a safer way to specify the pipe symbol when using the tool with external applications...such as Zabbix.
error_watch - This is the name/tag that you're assigning to this particular log check. Later, if you wish, this tag can be used to help you generate graphs on the monitored log.
For a detailed explanation on what each parameter means, you can visit the help page directly.
On the same help page, you'll also find step by step instructions on how to get this tool to work with Zabbix...i.e. what zabbix configuration file you need to update...and what settings you need to have on the zabbix web interface.