Monitor the number of files in a specific directory
Directory file count monitoring
[root@monitor jbowman]#
[root@monitor jbowman]#
[root@monitor jbowman]# ./logrobot localhost /var/tmp/logXray autodoc /var/log 10 20 filecount
CRITICAL: Monitored Directory = [ /var/log ]. File Count = [ 753 ]. Directory Size Now = [ 8.236GB (Sat Feb 14 15:03:14 2015) ]. Directory Size Before = [ 8.236GB (Sat Feb 14 15:03:04 2015) ].
[root@monitor jbowman]#
[root@monitor jbowman]#
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.