Monitor Growth of Single Log Files
How to Monitor, Alert on & Graph the Growth of Single log files
[root@nagios-primary ~]# ./logrobot localhost /var/tmp/logXray autodoc /opt/apps/iptuibatch/logs/iptconflictCheck.log 1 5 filegrowth
CRITICAL: File [ /opt/apps/iptuibatch/logs/iptconflictCheck.log ]. Size Now = [ 744KB (Wed Dec 30 17:35:56 2015) ]. Size Before = [ 744KB (Wed Dec 30 17:35:55 2015) ].
[root@nagios-primary ~]# ./logrobot localhost /var/tmp/logXray autodoc /opt/apps/iptuibatch/logs/iptconflictCheck.log 1 5 filegrowth
OK: File [ /opt/apps/iptuibatch/logs/iptconflictCheck.log ]. Size Now = [ 752KB (752) (Wed Dec 30 17:37:55 2015) ]. Size Before = [ 744KB (Wed Dec 30 17:35:55 2015) ].
[root@nagios001 ~]# ./logrobot localhost /tmp/logXray,graphite,52.88.12.122:2003,typical autonda /var/log/messages 60m 'nothing-to-search-for' '.' 1 2 LogGrowthChk -ndfoundn
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.