Changes between Version 1 and Version 2 of ErrorCodeCheck
- Timestamp:
- 07/10/13 10:02:37 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ErrorCodeCheck
v1 v2 1 1 = Webserver log file error code checking = 2 2 3 Following is a script which is installed on wiki:PuffinServer as {{{/usr/local/bin/weblog-erors}}} and whichis run via {{{/etc/logrotate.d/nginx}}} and it sends a email with the results just before the log is rotated each day:3 Following is a script which is installed on wiki:PuffinServer as {{{/usr/local/bin/weblog-erors}}}, this script was written in response to ticket:563 and this script is run via {{{/etc/logrotate.d/nginx}}} and it sends a email with the results just before the log is rotated each day: 4 4 5 5 {{{ … … 48 48 LOGFILE="/var/log/nginx/access.log" 49 49 50 # Optional email address to send the re ults to50 # Optional email address to send the results to 51 51 EMAIL=$1 52 52