Posts Tagged ‘log’

check log script

June 20th, 2011 4 comments

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.

Read more…

Monitor FTP erros with nagios

June 25th, 2010 No comments

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.

Read more…

Categories: Nagios, plugins Tags: , , , , , , , ,

LogParser Examples

May 27th, 2010 2 comments

Log Parser sample queries to check the health of your IIS,FTP.

Read more…

Categories: HowTo, Windows Tags: , , , , , , , ,

Exchange Top Email senders (from SMTP out)

June 5th, 2008 No comments

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.

Read more…