From: Richard C. <rch...@aa...> - 2008-06-16 01:41:46
|
Hi Jamie Yes. It suddenly was created - but I am not sure what triggered it. After a while the cron error emails stopped - and webalizer seemed to be working. Maybe I re-scheduled it - but I'm really not sure. Regards Richard. Jamie Cameron wrote: > On 11/Jun/2008 20:38 Richard Chapman wrote .. > >> Hi Jamie >> >> I'm trying to get webalizer 2.01-10 working on Centos 5.1 Sqid 2.6 log >> files for the first time. >> >> When set Webmin to schedule Webalizer squid log file analysis "hourly" I >> get the following error email from cron: >> >> /bin/sh: /etc/webmin/webalizer/webalizer.pl: No such file or directory >> >> I searched for webalizer.pl and found it only at: >> >> >> /usr/libexec/webmin/webalizer >> >> But it is not entirely clear to me how I can change the webmin webalizer >> module config to cater for this different location. Can I just change >> the "Path to Webalizer Command" parameter? >> >> Alternatively - should I try copying the webalizer.pl to the expected >> directory. Is that likely to solve the problem? >> > > No - actually, that missing webalizer.pl command is supposed to be automatically > generated by Webmin when you setup a webalizer schedule. You could try turning > off scheduled reporting for that log file, then turning it back on again to > see if the file is created. > > If not, create it manually with the contents : > > #!/usr/bin/perl > open(CONF, "/etc/webmin/miniserv.conf"); > while(<CONF>) { > $root = $1 if (/^root=(.*)/); > } > close(CONF); > $ENV{'WEBMIN_CONFIG'} = "/etc/webmin"; > $ENV{'WEBMIN_VAR'} = "/var/webmin"; > chdir("$root/webalizer"); > exec("$root/webalizer/webalizer.pl", @ARGV) || die "Failed to run $root/webalizer/webalizer.pl : $!"; > > - Jamie > > > |