Sarg Mensal - Nao funciona

1. Sarg Mensal - Nao funciona

renan rosolem chinelatto
pok182

(usa Ubuntu)

Enviado em 26/10/2010 - 15:44h

Pessoal, ja procurei e ja fiz de tudo, porem nao consigo tirar meu relatorio mensal do sarg.

Meu crontab ta assim:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
59 23 * * * root /etc/squid/sargmensal
00 12 * * * root /usr/bin/sarg
00 00 * * * root /usr/bin/sarg
00 00 29 * * root /etc/squid/sarg.sh
__________

E sempre que eu acesso 192.168.0.1/sarg ele entra e mostra todos os relatorios diarios... nao mostra nenhum mensal... nao sei oque fazer... dentro de /etc/squid tem o sargmensal e dentro dele tem:
#!/bin/bash

ANTERIOR=$(date --date "1 month ago" +%d/%m/%Y)
ATUAL=$(date --date "0 day ago" +%d/%m/%Y)

sarg -d $ANTERIOR-$ATUAL
____

Porem nao funciona... alguem pode me ajudar a fazer isso funcionar?
Obrigado.


  


2. Re: Sarg Mensal - Nao funciona

renan rosolem chinelatto
pok182

(usa Ubuntu)

Enviado em 26/10/2010 - 15:48h

A acho que isso pode ajudar:

root@ubuntu2:/var/www/sarg# ls
2010Oct01-2010Oct01 2010Oct07-2010Oct07 2010Oct14-2010Oct15 2010Oct21-2010Oct21 2010Sep17-2010Sep17 2010Sep26-2010Sep26 images
2010Oct02-2010Oct02 2010Oct07-2010Oct08 2010Oct15-2010Oct15 2010Oct21-2010Oct22 2010Sep20-2010Sep20 2010Sep27-2010Sep27 index.html
2010Oct03-2010Oct03 2010Oct08-2010Oct08 2010Oct18-2010Oct18 2010Oct22-2010Oct22 2010Sep21-2010Sep21 2010Sep28-2010Sep28
2010Oct04-2010Oct04 2010Oct11-2010Oct11 2010Oct19-2010Oct19 2010Oct23-2010Oct23 2010Sep22-2010Sep22 2010Sep28-2010Sep29
2010Oct04-2010Oct05 2010Oct13-2010Oct13 2010Oct19-2010Oct20 2010Oct24-2010Oct24 2010Sep23-2010Sep23 2010Sep29-2010Sep29
2010Oct05-2010Oct05 2010Oct13-2010Oct14 2010Oct20-2010Oct20 2010Oct25-2010Oct25 2010Sep24-2010Sep24 2010Sep29-2010Sep30
2010Oct06-2010Oct06 2010Oct14-2010Oct14 2010Oct20-2010Oct21 2010Oct26-2010Oct26 2010Sep25-2010Sep25 2010Sep30-2010Sep30







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts