Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.91 KB | None | 0 0
  1. [mrk@host5 ~/wa-admin]$ bash -x wa-admin run-cron
  2. + BASENAME=/bin/basename
  3. + BC=/usr/bin/bc
  4. + CAT=/bin/cat
  5. + CUT=/bin/cut
  6. + CP=/bin/cp
  7. + DATE=/bin/date
  8. + GNUPLOT=/usr/bin/gnuplot
  9. + GREP=/bin/grep
  10. + JOT=/usr/bin/seq
  11. + MKDIR=/bin/mkdir
  12. + PRINTF=/usr/bin/printf
  13. + RM=/bin/rm
  14. + SED=/bin/sed
  15. + SORT=/bin/sort
  16. + wa_admin_prefix=/usr/local
  17. + wa_admin_etc=/usr/local/etc/wa-admin
  18. + wa_admin_vhosts=/usr/local/etc/wa-admin/wa-admin.vhosts
  19. + wa_admin_version=0.1
  20. ++ /bin/basename wa-admin
  21. + wa_admin=wa-admin
  22. + '[' -f /usr/local/etc/wa-admin/wa-admin.conf ']'
  23. + : /usr/local/www/wa-admin
  24. + : /usr/local/etc/wa-admin/webalizer.conf.tpl
  25. + : /usr/local/etc/wa-admin/header.html
  26. + : /usr/local/etc/wa-admin/footer.html
  27. + : /usr/local/www/wa-admin/wa-admin.hist
  28. + : /usr/share/X11/fonts/Type1/arialbd.ttf
  29. + : 10
  30. + : 800,600
  31. + : /usr/bin/webalizer
  32. + : webalizer.hist
  33. + : dnscache.db
  34. + wa_admin_usage_top='==>> wa-admin -- version 0.1'
  35. + 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].'
  36. + wa_admin_usage_list='==>> wa-admin -- version 0.1\n==>> Usage: wa-admin list\n==>> Lists the currently added to wa-admin log files.'
  37. + 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).'
  38. + 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.'
  39. + 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.'
  40. + 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.'
  41. + '[' 1 -eq 0 ']'
  42. + sanity_check
  43. + '[' '!' -d /usr/local/etc/wa-admin ']'
  44. + '[' '!' -d /usr/local/www/wa-admin ']'
  45. + '[' '!' -f /usr/local/etc/wa-admin/wa-admin.vhosts ']'
  46. + '[' '!' -f /usr/local/etc/wa-admin/webalizer.conf.tpl ']'
  47. + '[' '!' -f /usr/local/etc/wa-admin/header.html ']'
  48. + '[' '!' -f /usr/local/etc/wa-admin/footer.html ']'
  49. + '[' '!' -f /usr/bin/webalizer ']'
  50. + '[' '!' -f /usr/bin/gnuplot ']'
  51. + case "$1" in
  52. + '[' 1 -eq 1 ']'
  53. + wa_admin_run_cron
  54. + echo '==>> Running wa-admin for all vhosts.'
  55. ==>> Running wa-admin for all vhosts.
  56. + read vhost_entry
  57. + vhost=(${vhost_entry})
  58. ++ /bin/basename /www/logs/ivsil_access_log
  59. + /usr/bin/webalizer -c /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.conf
  60. Warning: Truncating oversized request field
  61. + read vhost_entry
  62. + vhost=(${vhost_entry})
  63. ++ /bin/basename /www/logs/bild_access_log
  64. + /usr/bin/webalizer -c /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.conf
  65. Warning: Truncating oversized referrer field
  66. Warning: Truncating oversized referrer field
  67. + read vhost_entry
  68. + wa_admin_create_index
  69. + update_rank_stats
  70. + read vhost_entry
  71. + vhost=($(echo ${vhost_entry}))
  72. ++ echo ivsil.ru /www/logs/ivsil_access_log 0
  73. ++ /bin/basename /www/logs/ivsil_access_log
  74. + logfile=ivsil_access_log
  75. + vhost_conf_dir=/usr/local/www/wa-admin/ivsil.ru/ivsil_access_log
  76. +++ /bin/date '+%m %Y'
  77. ++ /usr/bin/printf '%d %d' 02 2011
  78. + month_year='2 2011'
  79. + monthly_hits=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} | ${CUT} -d ' ' -f 3 ))
  80. ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist
  81. ++ /bin/cut -d ' ' -f 3
  82. grep: /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist: No such file or directory
  83. + '[' -z '' ']'
  84. + monthly_hits=0
  85. + /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
  86. + read vhost_entry
  87. + vhost=($(echo ${vhost_entry}))
  88. ++ echo bild.ru /www/logs/bild_access_log 0
  89. ++ /bin/basename /www/logs/bild_access_log
  90. + logfile=bild_access_log
  91. + vhost_conf_dir=/usr/local/www/wa-admin/bild.ru/bild_access_log
  92. +++ /bin/date '+%m %Y'
  93. ++ /usr/bin/printf '%d %d' 02 2011
  94. + month_year='2 2011'
  95. + monthly_hits=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} | ${CUT} -d ' ' -f 3 ))
  96. ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist
  97. ++ /bin/cut -d ' ' -f 3
  98. grep: /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist: No such file or directory
  99. + '[' -z '' ']'
  100. + monthly_hits=0
  101. + /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
  102. + read vhost_entry
  103. + /bin/sort -nrk 3 -o /usr/local/etc/wa-admin/wa-admin.vhosts /usr/local/etc/wa-admin/wa-admin.vhosts
  104. + update_overview_graphs
  105. + echo '# Yearly stats file generated by wa-admin -- version 0.1'
  106. + /usr/bin/printf %s Hostname
  107. + count=0
  108. + read vhost_entry
  109. ++ echo ivsil.ru /www/logs/ivsil_access_log 0
  110. ++ /bin/cut -d ' ' -f 1
  111. + vhost_name[${count}]=ivsil.ru
  112. ++ echo ivsil.ru /www/logs/ivsil_access_log 0
  113. ++ /bin/cut -d ' ' -f 2
  114. + vhost_log[${count}]=/www/logs/ivsil_access_log
  115. ++ echo ivsil.ru /www/logs/ivsil_access_log 0
  116. ++ /bin/cut -d ' ' -f 3
  117. + monthly_hits=0
  118. ++ /bin/basename /www/logs/ivsil_access_log
  119. + vhost_conf_dir=/usr/local/www/wa-admin/ivsil.ru/ivsil_access_log
  120. + /usr/bin/printf ' %s' ivsil.ru
  121. + let count++
  122. + read vhost_entry
  123. ++ echo bild.ru /www/logs/bild_access_log 0
  124. ++ /bin/cut -d ' ' -f 1
  125. + vhost_name[${count}]=bild.ru
  126. ++ echo bild.ru /www/logs/bild_access_log 0
  127. ++ /bin/cut -d ' ' -f 2
  128. + vhost_log[${count}]=/www/logs/bild_access_log
  129. ++ echo bild.ru /www/logs/bild_access_log 0
  130. ++ /bin/cut -d ' ' -f 3
  131. + monthly_hits=0
  132. ++ /bin/basename /www/logs/bild_access_log
  133. + vhost_conf_dir=/usr/local/www/wa-admin/bild.ru/bild_access_log
  134. + /usr/bin/printf ' %s' bild.ru
  135. + let count++
  136. + read vhost_entry
  137. ++ /bin/date +%Y
  138. + year=2011
  139. ++ /usr/bin/seq - 1 12
  140. /usr/bin/seq: invalid floating point argument: -
  141. Try `/usr/bin/seq --help' for more information.
  142. ++ /bin/date +%Y/%m/%d
  143. ++ /bin/date +%H:%M:%S
  144. + echo -e '\n# Yearly stats file generated on 2011/02/15 at 17:46:12'
  145. + max_totals_month=
  146. ++ /usr/bin/seq - 1 10
  147. /usr/bin/seq: invalid floating point argument: -
  148. Try `/usr/bin/seq --help' for more information.
  149. ++ echo 'scale=2; ( + ( * 0.15 ) )'
  150. ++ /usr/bin/bc -l
  151. (standard_in) 1: parse error
  152. + max_totals_month=
  153. + /usr/bin/gnuplot
  154. ++ /bin/date +%Y
  155. ++ /bin/date +%Y
  156. Could not find/open font when opening font /usr/share/X11/fonts/Type1/arialbd.ttf, 10, using default
  157.  
  158. gnuplot> set style data histogram
  159. ^
  160. line 0: expecting 'lines', 'points', 'linespoints', 'dots', 'impulses',
  161. 'yerrorbars', 'xerrorbars', 'xyerrorbars', 'steps', 'fsteps',
  162. 'histeps', 'filledcurves', 'boxes', 'boxerrorbars', 'boxxyerrorbars',
  163. 'vectors', 'financebars', 'candlesticks', 'errorlines', 'xerrorlines',
  164. 'yerrorlines', 'xyerrorlines', 'pm3d'
  165.  
  166.  
  167. gnuplot> set style histogram cluster gap 1
  168. ^
  169. line 0: expecting 'data', 'function', 'line', 'fill' or 'arrow'
  170.  
  171. line 0: undefined variable: nomirror
  172.  
  173.  
  174. gnuplot> plot '/usr/local/www/wa-admin/wa-admin.hist' using 2 title columnheader(2), for [i=3:3] '' using i title columnheader(i)
  175. ^
  176. line 0: expecting "title" for plot
  177.  
  178.  
  179. gnuplot> set style histogram rows
  180. ^
  181. line 0: expecting 'data', 'function', 'line', 'fill' or 'arrow'
  182.  
  183.  
  184. gnuplot> plot '/usr/local/www/wa-admin/wa-admin.hist' using 2 title columnheader(2), for [i=3:3] '' using i title columnheader(i)
  185. ^
  186. line 0: expecting "title" for plot
  187.  
  188. + /bin/cat /usr/local/etc/wa-admin/header.html
  189. + /bin/cat
  190. ++ /bin/date '+%a %Y-%m-%d %H:%M %Z'
  191. ++ /bin/date '+%B %Y'
  192. ++ /usr/bin/seq - 1 10
  193. /usr/bin/seq: invalid floating point argument: -
  194. Try `/usr/bin/seq --help' for more information.
  195. + rank=0
  196. + read vhost_entry
  197. + let rank++
  198. + vhost=($(echo ${vhost_entry}))
  199. ++ echo ivsil.ru /www/logs/ivsil_access_log 0
  200. ++ /bin/basename /www/logs/ivsil_access_log
  201. + logfile=ivsil_access_log
  202. + /bin/cat
  203. + vhost_conf_dir=/usr/local/www/wa-admin/ivsil.ru/ivsil_access_log
  204. +++ /bin/date '+%m %Y'
  205. ++ /usr/bin/printf '%d %d' 02 2011
  206. + month_year='2 2011'
  207. + monthly_stats=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} ))
  208. ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist
  209. grep: /usr/local/www/wa-admin/ivsil.ru/ivsil_access_log/webalizer.hist: No such file or directory
  210. + '[' 0 -eq 0 ']'
  211. + monthly_stats=(0 0 0 0 0 0 0 0 0 0)
  212. ++ /usr/bin/seq - 0 9
  213. /usr/bin/seq: invalid floating point argument: -
  214. Try `/usr/bin/seq --help' for more information.
  215. + '[' 0 -eq 0 ']'
  216. + monthly_stats_link='href='\'''\'''
  217. + /bin/cat
  218. + read vhost_entry
  219. + let rank++
  220. + vhost=($(echo ${vhost_entry}))
  221. ++ echo bild.ru /www/logs/bild_access_log 0
  222. ++ /bin/basename /www/logs/bild_access_log
  223. + logfile=bild_access_log
  224. + /bin/cat
  225. + vhost_conf_dir=/usr/local/www/wa-admin/bild.ru/bild_access_log
  226. +++ /bin/date '+%m %Y'
  227. ++ /usr/bin/printf '%d %d' 02 2011
  228. + month_year='2 2011'
  229. + monthly_stats=($( ${GREP} -m 1 -E "^${month_year}" ${vhost_conf_dir}/${webalizer_hist} ))
  230. ++ /bin/grep -m 1 -E '^2 2011' /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist
  231. grep: /usr/local/www/wa-admin/bild.ru/bild_access_log/webalizer.hist: No such file or directory
  232. + '[' 0 -eq 0 ']'
  233. + monthly_stats=(0 0 0 0 0 0 0 0 0 0)
  234. ++ /usr/bin/seq - 0 9
  235. /usr/bin/seq: invalid floating point argument: -
  236. Try `/usr/bin/seq --help' for more information.
  237. + '[' 0 -eq 0 ']'
  238. + monthly_stats_link='href='\'''\'''
  239. + /bin/cat
  240. + read vhost_entry
  241. + /bin/cat
  242. ++ /bin/date +%Y
  243. + /bin/cat /usr/local/etc/wa-admin/footer.html
  244. + echo '==>> Index file was created in /usr/local/www/wa-admin/index.html'
  245. ==>> Index file was created in /usr/local/www/wa-admin/index.html
  246. + exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement