When I attempt to 'Generate Report Now' using 'Squid Report Generator' on the Webmin module I get the following error message:
sarg -l /var/log/squid3/access.log mail: cannot send message: Process exited with a non-zero status
SARG: command return status 36SARG: command: sudo mail -s "SARG report, Wed May 8 12:40:11 2013" "email@example.com" <"/tmp/sarg/2013May08-2013May08/report"
Sending mail via the 'Mail' command works fine. I was also getting error messages via email:
Failed to generate Sarg report:sarg -l /var/log/squid3/access.log
SARG: getword backtrace:
SARG: 1:sarg() [0x4091c7]
SARG: 2:sarg() [0x4096c1]
SARG: 3:sarg() [0x405caa]
SARG: 4:/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7ff08ed3e76d]
SARG: 5:sarg() [0x408981]
SARG: Maybe you have a broken time in your access.log file
SARG: getword loop detected after 255 bytes.
SARG: searching for 'x20'
I've tried various Source and Destination variations as well as changing the permissions on the log files themselves. This used to work when I had Sendmail installed but I recently switched to Postfix due to how complex Sendmail was and various other issues I was having (look at my other threads).
Please can someone tell me what's going on?