Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [mrk@host5 ~/wa-admin]$ bash -x wa-admin run-cron
- + BASENAME=/bin/basename
- + BC=/usr/bin/bc
- + CAT=/bin/cat
- + CUT=/bin/cut
- + CP=/bin/cp
- + DATE=/bin/date
- + GNUPLOT=/usr/bin/gnuplot
- + GREP=/bin/grep
- + JOT=/usr/bin/seq
- + MKDIR=/bin/mkdir
- + PRINTF=/usr/bin/printf
- + RM=/bin/rm
- + SED=/bin/sed
- + SORT=/bin/sort
- + wa_admin_prefix=/usr/local
- + wa_admin_etc=/usr/local/etc/wa-admin
- + wa_admin_vhosts=/usr/local/etc/wa-admin/wa-admin.vhosts
- + wa_admin_version=0.1
- ++ /bin/basename wa-admin
- + wa_admin=wa-admin
- + '[' -f /usr/local/etc/wa-admin/wa-admin.conf ']'
- + : /usr/local/www/wa-admin
- + : /usr/local/etc/wa-admin/webalizer.conf.tpl
- + : /usr/local/etc/wa-admin/header.html
- + : /usr/local/etc/wa-admin/footer.html
- + : /usr/local/www/wa-admin/wa-admin.hist
- + : /usr/share/X11/fonts/Type1/arialbd.ttf
- + : 10
- + : 800,600
- + : /usr/bin/webalizer
- + : webalizer.hist
- + : dnscache.db
- + wa_admin_usage_top='==>> wa-admin -- version 0.1'
- + wa_admin_usage='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin [list|add|delete|run-cron|create-index]\n==>> For more information of the commands run wa-admin help [command].'
- + wa_admin_usage_list='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin list\n==>> Lists the currently added to wa-admin log files.'
- + wa_admin_usage_run_cron='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin run|cron\n==>> Runs webalizer for all added to wa-admin log files. Suitable for running from cron(8).'
- + wa_admin_usage_create_index='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin create-index\n==>> Re-creates the index.html file for all added to wa-admin vhosts.'
- + wa_admin_usage_add='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin add <hostname> <log-file>\n==>> Adds new log file to wa-admin.'
- + wa_admin_usage_delete='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin delete <hostname> <log-file>\n==>> Deletes the log file for the specified host.'
- + '[' 1 -eq 0 ']'
- + sanity_check
- + '[' '!' -d /usr/local/etc/wa-admin ']'
- + '[' '!' -d /usr/local/www/wa-admin ']'
- + '[' '!' -f /usr/local/etc/wa-admin/wa-admin.vhosts ']'
- + '[' '!' -f /usr/local/etc/wa-admin/webalizer.conf.tpl ']'
- + '[' '!' -f /usr/local/etc/wa-admin/header.html ']'
- + '[' '!' -f /usr/local/etc/wa-admin/footer.html ']'
- + '[' '!' -f /usr/bin/webalizer ']'
- + '[' '!' -f /usr/bin/gnuplot ']'
- + case "$1" in
- + '[' 1 -eq 1 ']'
- + wa_admin_run_cron
- + echo '==>> Running wa-admin for all vhosts.'
- ==>> Running wa-admin for all vhosts.
- + read vhost_entry
- + vhost=(${vhost_entry})
- ++ /bin/basename /www/logs/ivsil_access_log
- + /usr/bin/webalizer -c /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.conf
- Warning: Truncating oversized request field
- + read vhost_entry
- + vhost=(${vhost_entry})
- ++ /bin/basename /www/logs/bild_access_log
- + /usr/bin/webalizer -c /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.conf
- Warning: Truncating oversized referrer field
- Warning: Truncating oversized referrer field
- + read vhost_entry
- + wa_admin_create_index
- + update_rank_stats
- + read vhost_entry
- + vhost=($(echo ${vhost_entry}))
- ++ echo ivsil.ru /www/logs/ivsil_access_log 0
- ++ /bin/basename /www/logs/ivsil_access_log
- + logfile=ivsil_access_log
- + vhost_conf_dir=/usr/local/www/wa-admin/ivsil.ru/ivsil_access_log
- +++ /bin/date '+%m %Y'
- ++ /usr/bin/printf '%d %d' 02 2011
- + month_year='2 2011'
- + monthly_hits=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} | ${CUT} -d ' ' -f 3 ))
- ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist
- ++ /bin/cut -d ' ' -f 3
- grep: /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist: No such file or directory
- + '[' -z '' ']'
- + monthly_hits=0
- + /bin/sed -i -e 's|^ivsil.ru /www/logs/ivsil_access_log 0|ivsil.ru /www/logs/ivsil_access_log 0|' /usr/local/etc/wa-admin/wa-admin.vhosts
- + read vhost_entry
- + vhost=($(echo ${vhost_entry}))
- ++ echo bild.ru /www/logs/bild_access_log 0
- ++ /bin/basename /www/logs/bild_access_log
- + logfile=bild_access_log
- + vhost_conf_dir=/usr/local/www/wa-admin/bild.ru/bild_access_log
- +++ /bin/date '+%m %Y'
- ++ /usr/bin/printf '%d %d' 02 2011
- + month_year='2 2011'
- + monthly_hits=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} | ${CUT} -d ' ' -f 3 ))
- ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist
- ++ /bin/cut -d ' ' -f 3
- grep: /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist: No such file or directory
- + '[' -z '' ']'
- + monthly_hits=0
- + /bin/sed -i -e 's|^bild.ru /www/logs/bild_access_log 0|bild.ru /www/logs/bild_access_log 0|' /usr/local/etc/wa-admin/wa-admin.vhosts
- + read vhost_entry
- + /bin/sort -nrk 3 -o /usr/local/etc/wa-admin/wa-admin.vhosts /usr/local/etc/wa-admin/wa-admin.vhosts
- + update_overview_graphs
- + echo '# Yearly stats file generated by wa-admin -- version 0.1'
- + /usr/bin/printf %s Hostname
- + count=0
- + read vhost_entry
- ++ echo ivsil.ru /www/logs/ivsil_access_log 0
- ++ /bin/cut -d ' ' -f 1
- + vhost_name[${count}]=ivsil.ru
- ++ echo ivsil.ru /www/logs/ivsil_access_log 0
- ++ /bin/cut -d ' ' -f 2
- + vhost_log[${count}]=/www/logs/ivsil_access_log
- ++ echo ivsil.ru /www/logs/ivsil_access_log 0
- ++ /bin/cut -d ' ' -f 3
- + monthly_hits=0
- ++ /bin/basename /www/logs/ivsil_access_log
- + vhost_conf_dir=/usr/local/www/wa-admin/ivsil.ru/ivsil_access_log
- + /usr/bin/printf ' %s' ivsil.ru
- + let count++
- + read vhost_entry
- ++ echo bild.ru /www/logs/bild_access_log 0
- ++ /bin/cut -d ' ' -f 1
- + vhost_name[${count}]=bild.ru
- ++ echo bild.ru /www/logs/bild_access_log 0
- ++ /bin/cut -d ' ' -f 2
- + vhost_log[${count}]=/www/logs/bild_access_log
- ++ echo bild.ru /www/logs/bild_access_log 0
- ++ /bin/cut -d ' ' -f 3
- + monthly_hits=0
- ++ /bin/basename /www/logs/bild_access_log
- + vhost_conf_dir=/usr/local/www/wa-admin/bild.ru/bild_access_log
- + /usr/bin/printf ' %s' bild.ru
- + let count++
- + read vhost_entry
- ++ /bin/date +%Y
- + year=2011
- ++ /usr/bin/seq - 1 12
- /usr/bin/seq: invalid floating point argument: -
- Try `/usr/bin/seq --help' for more information.
- ++ /bin/date +%Y/%m/%d
- ++ /bin/date +%H:%M:%S
- + echo -e '\n# Yearly stats file generated on 2011/02/15 at 17:46:12'
- + max_totals_month=
- ++ /usr/bin/seq - 1 10
- /usr/bin/seq: invalid floating point argument: -
- Try `/usr/bin/seq --help' for more information.
- ++ echo 'scale=2; ( + ( * 0.15 ) )'
- ++ /usr/bin/bc -l
- (standard_in) 1: parse error
- + max_totals_month=
- + /usr/bin/gnuplot
- ++ /bin/date +%Y
- ++ /bin/date +%Y
- Could not find/open font when opening font /usr/share/X11/fonts/Type1/arialbd.ttf, 10, using default
- gnuplot> set style data histogram
- ^
- line 0: expecting 'lines', 'points', 'linespoints', 'dots', 'impulses',
- 'yerrorbars', 'xerrorbars', 'xyerrorbars', 'steps', 'fsteps',
- 'histeps', 'filledcurves', 'boxes', 'boxerrorbars', 'boxxyerrorbars',
- 'vectors', 'financebars', 'candlesticks', 'errorlines', 'xerrorlines',
- 'yerrorlines', 'xyerrorlines', 'pm3d'
- gnuplot> set style histogram cluster gap 1
- ^
- line 0: expecting 'data', 'function', 'line', 'fill' or 'arrow'
- line 0: undefined variable: nomirror
- gnuplot> plot '/usr/local/www/wa-admin/wa-admin.hist' using 2 title columnheader(2), for [i=3:3] '' using i title columnheader(i)
- ^
- line 0: expecting "title" for plot
- gnuplot> set style histogram rows
- ^
- line 0: expecting 'data', 'function', 'line', 'fill' or 'arrow'
- gnuplot> plot '/usr/local/www/wa-admin/wa-admin.hist' using 2 title columnheader(2), for [i=3:3] '' using i title columnheader(i)
- ^
- line 0: expecting "title" for plot
- + /bin/cat /usr/local/etc/wa-admin/header.html
- + /bin/cat
- ++ /bin/date '+%a %Y-%m-%d %H:%M %Z'
- ++ /bin/date '+%B %Y'
- ++ /usr/bin/seq - 1 10
- /usr/bin/seq: invalid floating point argument: -
- Try `/usr/bin/seq --help' for more information.
- + rank=0
- + read vhost_entry
- + let rank++
- + vhost=($(echo ${vhost_entry}))
- ++ echo ivsil.ru /www/logs/ivsil_access_log 0
- ++ /bin/basename /www/logs/ivsil_access_log
- + logfile=ivsil_access_log
- + /bin/cat
- + vhost_conf_dir=/usr/local/www/wa-admin/ivsil.ru/ivsil_access_log
- +++ /bin/date '+%m %Y'
- ++ /usr/bin/printf '%d %d' 02 2011
- + month_year='2 2011'
- + monthly_stats=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} ))
- ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist
- grep: /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist: No such file or directory
- + '[' 0 -eq 0 ']'
- + monthly_stats=(0 0 0 0 0 0 0 0 0 0)
- ++ /usr/bin/seq - 0 9
- /usr/bin/seq: invalid floating point argument: -
- Try `/usr/bin/seq --help' for more information.
- + '[' 0 -eq 0 ']'
- + monthly_stats_link='href='\'''\'''
- + /bin/cat
- + read vhost_entry
- + let rank++
- + vhost=($(echo ${vhost_entry}))
- ++ echo bild.ru /www/logs/bild_access_log 0
- ++ /bin/basename /www/logs/bild_access_log
- + logfile=bild_access_log
- + /bin/cat
- + vhost_conf_dir=/usr/local/www/wa-admin/bild.ru/bild_access_log
- +++ /bin/date '+%m %Y'
- ++ /usr/bin/printf '%d %d' 02 2011
- + month_year='2 2011'
- + monthly_stats=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} ))
- ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist
- grep: /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist: No such file or directory
- + '[' 0 -eq 0 ']'
- + monthly_stats=(0 0 0 0 0 0 0 0 0 0)
- ++ /usr/bin/seq - 0 9
- /usr/bin/seq: invalid floating point argument: -
- Try `/usr/bin/seq --help' for more information.
- + '[' 0 -eq 0 ']'
- + monthly_stats_link='href='\'''\'''
- + /bin/cat
- + read vhost_entry
- + /bin/cat
- ++ /bin/date +%Y
- + /bin/cat /usr/local/etc/wa-admin/footer.html
- + echo '==>> Index file was created in /usr/local/www/wa-admin/index.html'
- ==>> Index file was created in /usr/local/www/wa-admin/index.html
- + exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement