• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Awstats and Plesk again

Heyyas, I want AWSTATS to update every night so i stuck this line in my crontab... is this correct?

08 3 * * * root /usr/local/awstats/tools/awstats_updateall.pl now -configdir=/etc/awstats/

Thanks...
 
Originally posted by mian
i patched my awstats maillogconvert.pl so it will only get the relevant entries for the users domain, you will have todo the same if you wish todo mail stats.
I noticed that you added an extra parameter with the domain name)

Would you be so kind to post your patched version?

Thanks!
 
I was trying to find a way for maillogconvert.pl to only grab relevant entries, any help on this would be appreciated!
 
re: vhost_ssl.conf creation and mailconvert.pl

Thanks to those that posted the script, someone should make into a sticky HowTo post...

So, I got everything installed and knowing nothing about scripting don't have a solution for the if statements not creating the vhost_ssl.conf file on domain creation. My question is, is this file EVER created by Plesk when installing a domain? I ask because I cp'd the script to a separate file specifically for new domain creation and removed the if statement so that it will just create the vhost_ssl.conf by default (I will include SSL in all new domains). Any downside to this?

Next question is about the mail log bit. When I run the update pl, everything processes correctly except the maillog and I get the following error for each domain configured:

Code:
With data in log file "/usr/local/awstats/tools/maillogconvert.pl vadmin mydomain.com < /usr/local/psa/var/log/maillog.processed |"...
Can't open mydomain.com: No such file or directory at /usr/local/awstats/tools/maillogconvert.pl line 222.

Ok, the maillog.processed does exist and has root:root rw-r----- permissions which shouldn't be a problem since the script is run as root. So, here's line 222 of the maillogconvert.pl

Code:
while (<>) {

Hmmm.. is this supposed to contain a variable of some sort? I checked the mail conf. files in /etc/awstats and they look to be correct. Any ideas?

Oh yeah, and that doesn't even get to my "so now how do I edit mallogconvert.pl to show entries for the users domain only?" question...

Seriously, any ideas on this are appreciated even if it is just a link to the proper documentation, I am trying to learn and appreciate any help! IOW, don't bash/ignore the n00b, please?!
 
Back
Top