Powerful, Robust, Versatile, Multi-Featured Log Monitoring tool for Zabbix
Using LoGrobot with Zabbix
If using the custom agent included with the LoGrobot package you purchased: Follow these steps - First install the agent on the remote box: a). su - nagios (or whatever your monitoring user name is) b). cd ~ c). wget http://www.LoGrobot.com/klazy ; ls -ld klazy ; chmod 755 klazy ; ls -ld klazy d). ./klazy logXray /var/tmp/logXray 1040 <ip(s)-of-your-master-server(s)> .i.e. ./klazy logXray /var/tmp/logXray 1040 10.20.30.40 (OR) ./klazy logXray /var/tmp/logXray 1040 10.20.30.40,184.108.40.206 e). ./klazy logXray status - Verify the logXray remote agent is up and running. Then intall the logrobot tool on the remote box: a). cd ~ b). ./klazy http://www.LoGrobot.com/the-logrobot.zip /var/tmp/logXray/plugins i.e. ./klazy http://www.LoGrobot.com/logrobot.verify_your@email.....zip /var/tmp/logXray/plugins - Note, on the REMOTE NODES, you MUST specify the directory [ /var/tmp/logXray/plugins ] as the location for the log monitoring plugin. - When the above completes successfully, the logrobot tool is now installed on the remote node. Finally, test remote log monitoring and confirm all is well: a). ssh to the master server b). run the following command ./logrobot <node-fqdn> /var/tmp/logXray autonda /tmp/err.log 60m '.*fatal.*' '.' 1 2 TagErr -ndshow
1. On the same remote host that you performed the above steps on, do this: vi /etc/zabbix/zabbix_agentd.conf - EnableRemoteCommands=1 (uncomment this line and make sure it is set equal to 1) 2. Search for UserParameter= Add lines similar to the following: - UserParameter=logXray[*],/var/tmp/logXray/plugins/logrobot $1 $2 $3 $4 $5 "$6" "$7" $8 $9 $10 $11 $12 $13
1. From the home page, click "Configuration" at the very top of the screen on the left hand side. 2. In the next page that comes up, click on the desired host name in the list of hosts provided. 3. In the next page that comes up, near the top of the screen at the center, click on "Items". - It should say something similar to - "Items (some number)" 4. In the next screen that comes up, look on the far right hand corner of the top of your screen. Click on "Create Item". 5. Mimic the example shown here, then click "Update" at the bottom of the page.
Log File Content
Scan content of log files for new occurrences (or lack thereof) of specific keywords, strings or patterns.
Log File Size
Monitor the sizes of single or multiple log files - alert if log size breaches predefined thresholds.
Log File Growth
Monitor the growth of single or multiple log files - alert when the monitored logs stop receiving new data.
Log File Timestamp
Monitor the timestamp of single or multiple logs. Alert, if logs are older than X amount of minutes or hours.