Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
Checks apache logs using logrep (http://code.google.com/p/wtop/) and returns basic visitor stats
Current Version
1
Last Release Date
2011-10-27
Owner
Andrey Padiy
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2011/11/check_logrep.sh
Compatible With
check_logrep
Analyses apache logs using logrep (http://code.google.com/p/wtop/).
Requires : wtop/logrep (http://code.google.com/p/wtop/) installed and configured.
Returns :
* Percentage of >399 responses in the last X minutes * Percentage of slow (>1000msec) responses in the last X minutes * Number of bots for the last X minutes. * Average response time for the last X minutes.
Will go CRITICAL / WARNING only for the first 2
Returns perfdata for all.
Usage: check_logrep -w -c -W -C -G -R -M -L
OPTIONS: -w Percentage of >399 responces WARNING threashold (%) -c Percentage of >399 responces CRITICAL threashold (%) -W Percentage of slow (>1000msec) responces WARNING threashold (%) -C Percentage of slow (>1000mses) responces CRITICAL threashold (%) -G Average responce time WARNING threashold (msec) -R Average responce time CRITICAL threashold (msec) -M Number of -M last minutes to report on -L Number of lines to parse (starting from the end) This setting overrides -M. So if -L lines covers 1 minute and -M is 5, only 1 min will be reported -h Usage, prints this message EXAMPLE : check_logrep -w 15 -c 20 -W 15 -C 20 -G 300 -R 500 -M 5 -L 35000
Note : You will need to do some tuning to find a suitable time (M)/no of lines(L) balance. If your -L and -M values are large and the log file is "busy" logrep will take a long time to run.
You must be logged in to submit a review.
To:
From: