![renan rosolem chinelatto renan rosolem chinelatto](//static.vivaolinux.com.br/imagens/fotos/1233596716.macaco.jpg)
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.