Sarg Squid3-Dev pfsense 2.1.3
-
Boa tarde.
Galera talvez alguém que utilize o Sarg esteja passando por algo assim:
Fiz o agendamento de hora em hora.
Pois bem, a primeira vez que o agendamento e executado ele não gera o relatório vejo esta mensagem abaixo.
Em seguida eu executo novamente ai aparece o relatorio normalmente.
Reparei que a sempre no primeiro agendamento ele não consegue gerar, mas na segunda vez ele consegue.Error: Could not find report index file.
Check and save sarg settings and try to force sarg schedule. -
vc marcou a opcao "Generate the main index.html" ?
-
Sim esta marcado.
Em anexo o print da conf do sarg.![Captura de tela de 2014-05-06 17:07:18.png](/public/imported_attachments/1/Captura de tela de 2014-05-06 17:07:18.png)
![Captura de tela de 2014-05-06 17:07:18.png_thumb](/public/imported_attachments/1/Captura de tela de 2014-05-06 17:07:18.png_thumb) -
Olha no system logs se o sarg está reportando algum erro.
-
Notei este mensagem de erro.
php: /pkg_edit.php: The command 'export LC_ALL=C && /usr/pbi/sarg-amd64/bin/sarg -d
date +%d/%m/%Y
' returned exit code '1', the output was 'SARG: Records in file: 47365, reading: 0.00%^MSARG: Records in file: 5000, reading: 10.56%^MSARG: Records in file: 10000, reading: 21.11%^MSARG: Records in file: 15000, reading: 31.67%^MSARG: Records in file: 20000, reading: 42.23%^MSARG: Records in file: 25000, reading: 52.78%^MSARG: Records in file: 30000, reading: 63.34%^MSARG: Records in file: 35000, reading: 73.89%^MSARG: Records in file: 40000, reading: 84.45%^MSARG: Records in file: 45000, reading: 95.01%^MSARG: Period covered by log files: 06/05/2014-06/05/2014 SARG: cannot open /usr/local/sarg-reports/2014/05/06/sarg-date for writing SARG:: No such file or directory SARG: Records in file: 47365, reading: 100.00%' -
tente marcar alem das opções já marcadas, os items overwrite report e generate the index tree by file
-
Isso mesmo Marcello.
Obrigado funcionou perfeitamente desta forma.