Nagios bash check_log
Its often needed to check log files for a keyword.
So I wrote a simple bash script to do that plus integrate with nagios and perfdata so it also generate
The script is based on tail -f and grep on the logfile with nohup command, like:
nohup tail -f $LOG_FILE |grep –line-buffered “$VAR” > “$TMP” &
I recommend calling the check each 5 minutes.
Categories: BashScripts, HowTo, Linux, Nagios, plugins bash, centreon, check, check_log, e-mail, grep, log, Nagios, script, tail
So How can we know the FTP server is saving all files as it should.
Well I found a way to go directly in the IIS-ftp log files and get the results from there.
They key tool here was logparser, Its very usefull to monitor, if the server is getting error responses or is being attacked by hackers the thresholds should go off.
Log Parser sample queries to check the health of your IIS,FTP.
Description: Get Top SPammers/Emailers and Send Output Report Via Email , Highly Customized. Can also automaticly Act upon these possibly Spammers by 3 levels of DisableAct, level 0 nothing, 1 REDUCE MAX RECIPIENT, 2 Disable from AD /add to Exchange Blacklist.
Version 8.0 automate all required files.
Categories: Exchange, Nagios, VbScripts email, exchange, log, logparser, message, Nagios, report, scripts, senders, Top, tracking, vbs, wsf