ispCP - Board - Support
[CLOSED] awstats static-->> dynamic - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+---- Forum: Archiv (/forum-54.html)
+---- Thread: [CLOSED] awstats static-->> dynamic (/thread-2773.html)

Pages: 1 2 3 4


[CLOSED] awstats static-->> dynamic - elitepilot - 03-18-2008 07:38 PM

Hi,
wie kann ich awstats so einrichten das es statt derzeit static dynamic ist?

Thx


RE: awstats static-->> dynamic - Cube - 03-18-2008 07:51 PM

Folgende Punkte müssten ausreichen:
- in der ispcp.conf umstellen
- Cronjob aktivieren
- 01_awstats.conf für den Apache aktivieren
- notwendige Apache-Module laden (rewrite, proxy)
- Configs regenrieren (steht in der Docu)

Wenn alles funktioniert:
- Alte statistics-Ordner löschen
- Alte Cronjobs löschen


RE: awstats static-->> dynamic - elitepilot - 03-18-2008 08:17 PM

Folgende Punkte müssten ausreichen:
- in der ispcp.conf umstellen (np)
- Cronjob aktivieren (wo finde ich die cronjobs für awstats dynamic? Bei mir sind nur welche für static vorhanden in der cron.d/ispcp/ und bei cron.d/awstats ist auch ein Cronjob welcher aktiviert ist)
- 01_awstats.conf für den Apache aktivieren (wie aktiviere ich die Konfig für den Apache?)
- notwendige Apache-Module laden (rewrite, proxy) (Noobfrage: wie lade ich die Module rein? müssen sie in der Konfig stehen oder reicht es wenn die im entsprechenden Ornder sind?)
- Configs regenrieren (steht in der Docu) (np)

Wenn alles funktioniert:
- Alte statistics-Ordner löschen (np)
- Alte Cronjobs löschen (Also die static cronjobs ind cron.d? oder nochmehr?)

Danke für deine Hilfe


RE: awstats static-->> dynamic - Cube - 03-18-2008 08:30 PM

Quote:- Cronjob aktivieren (wo finde ich die cronjobs für awstats dynamic? Bei mir sind nur welche für static vorhanden in der cron.d/ispcp/ und bei cron.d/awstats ist auch ein Cronjob welcher aktiviert ist)
Der Cronjob ist in /etc/cron.d/ispcp und schaut so aus:
Code:
# AWStats
#15    */6    *    *    *    root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1
Also einfach die Raute entfernen. Wenn es einen Cronjob in /etc/cron.d/awstats gibt, ist dieser unnötig.

Quote:- 01_awstats.conf für den Apache aktivieren (wie aktiviere ich die Konfig für den Apache?)
- notwendige Apache-Module laden (rewrite, proxy) (Noobfrage: wie lade ich die Module rein? müssen sie in der Konfig stehen oder reicht es wenn die im entsprechenden Ornder sind?)
a2ensite und a2enmod

Quote: Alte Cronjobs löschen (Also die static cronjobs ind cron.d? oder nochmehr?)
Ja, die "AWStats static tasks".
Die Änderungen übrigens auch in der Working Copy in /etc/ispcp/cron.d/working/ispcp durchführen.


RE: awstats static-->> dynamic - elitepilot - 03-18-2008 08:34 PM

# AWStats
{AW-ENABLED}15 */6 * * * root {AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog={AWSTATS_ENGINE_DIR}/awstats.pl >/dev/null 2>&1

steht bei mir in der cron.d/ispcp

ist das ein bug?


RE: awstats static-->> dynamic - Cube - 03-18-2008 08:47 PM

Das steht aber in /etc/cron.d/ispcp, nicht in /etc/ispcp/cron.d/ispcp?
Dann wäre das nicht in Ordnung. Du kannst deinen Cronjob mit meinem ersetzen. Wenn die anderen Cronjobs auch solche {...}-Variablen enthalten, dann such mal im Forum - das Problem gab es schon ein paar mal.


RE: awstats static-->> dynamic - gOOvER - 03-18-2008 09:30 PM

Ich glaube, irgendwo hatte ich das heute schon mal gelesen mit den nicht ersetzten Variablen nach Update. Scheint mir ein Bug zu sein. Elitepilot, kannst Du das bestätigen? Welche cron.d hast Du bearbeitet?


RE: awstats static-->> dynamic - elitepilot - 03-18-2008 09:38 PM

Habe noch nix bearbeitet daran. Ich poste mal beide:

/etc/cron.d/ispcp
# delayed tasks START.

# Quota
@daily root {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-dsk-quota.log

# Traffic
0,30 * * * * root {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log
0,30 * * * * root {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log
15,45 * * * * root {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log

# customer logs
@daily root {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log

# Backup
@daily root {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log
@daily root {BACKUP_ROOT_DIR}/ispcp-backup-ispcp noreport &>{LOG_DIR}/ispcp-backup-ispcp-mngr.log

# Remove config backups older than seven days
@daily root find {CONF_DIR}/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm

# Remove Daemon Logs older than 14 days (except .gz files)
@daily root find {LOG_DIR}/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm

# AWStats
{AW-ENABLED}15 */6 * * * root {AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog={AWSTATS_ENGINE_DIR}/awstats.pl >/dev/null 2>&1

# Rootkit Hunter
{RK-ENABLED}0 */12 * * * root {RKHUNTER} --scan-knownbad-files --check-deleted --createlogfile --cronjob --createlogfile {RKHUNTER_LOG} >/dev/null 2>&1

# Chkrootkit
{CR-ENABLED}0 */12 * * * root {CHKROOTKIT} &> {CHKROOTKIT_LOG}

# Look for and purge old sessions every 30 minutes
0,30 * * * * root {TOOLS_ROOT_DIR}/ispcpphptemp.sh >/dev/null 2>&1

# [{DMN_NAME}] backup task START.
# [{DMN_NAME}] backup task END.

# [{DMN_NAME}]:{CRONJOB_ID} custom task START.
# [{DMN_NAME}]:{CRONJOB_ID} custom task END.

# [haicon.eu] AWStats static tasks START.
1 3 * * * root perl /var/www/ispcp/engine/awstats/awstats_buildstaticpages.pl -config=haicon.eu -update -lang=en -awstatsprog=/usr/lib/cgi-bin/awstats.pl -dir=/var/www/virtual/haicon.eu/statistics/ >/dev/null 2>&1
# [haicon.eu] AWStats static tasks END.
# [dex-gaming.de] AWStats static tasks START.
2 3 * * * root perl /var/www/ispcp/engine/awstats/awstats_buildstaticpages.pl -config=dex-gaming.de -update -lang=en -awstatsprog=/usr/lib/cgi-bin/awstats.pl -dir=/var/www/virtual/dex-gaming.de/statistics/ >/dev/null 2>&1
# [dex-gaming.de] AWStats static tasks END.
# [mysql.haicon.eu] AWStats static tasks START.
3 3 * * * root perl /var/www/ispcp/engine/awstats/awstats_buildstaticpages.pl -config=mysql.haicon.eu -update -lang=en -awstatsprog=/usr/lib/cgi-bin/awstats.pl -dir=/var/www/virtual/mysql.haicon.eu/statistics/ >/dev/null 2>&1
# [mysql.haicon.eu] AWStats static tasks END.
# [hlstatsx1.haicon.eu] AWStats static tasks START.
5 3 * * * root perl /var/www/ispcp/engine/awstats/awstats_buildstaticpages.pl -config=hlstatsx1.haicon.eu -update -lang=en -awstatsprog=/usr/lib/cgi-bin/awstats.pl -dir=/var/www/virtual/hlstatsx1.haicon.eu/statistics/ >/dev/null 2>&1
# [hlstatsx1.haicon.eu] AWStats static tasks END.
# [ggwin1.haicon.eu] AWStats static tasks START.
6 3 * * * root perl /var/www/ispcp/engine/awstats/awstats_buildstaticpages.pl -config=ggwin1.haicon.eu -update -lang=en -awstatsprog=/usr/lib/cgi-bin/awstats.pl -dir=/var/www/virtual/ggwin1.haicon.eu/statistics/ >/dev/null 2>&1
# [ggwin1.haicon.eu] AWStats static tasks END.
# [{DMN_NAME}] AWStats static tasks START.
# [{DMN_NAME}] AWStats static tasks END.

# delayed tasks END.

/etc/ispcp/cron.d/ispcp

# delayed tasks START.

# Quota
@daily root {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-dsk-quota.log

# Traffic
0,30 * * * * root {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log
0,30 * * * * root {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log
15,45 * * * * root {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log

# customer logs
@daily root {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log

# Backup
@daily root {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log
@daily root {BACKUP_ROOT_DIR}/ispcp-backup-ispcp noreport &>{LOG_DIR}/ispcp-backup-ispcp-mngr.log

# Remove config backups older than seven days
@daily root find {CONF_DIR}/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm

# Remove Daemon Logs older than 14 days (except .gz files)
@daily root find {LOG_DIR}/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm

# AWStats
{AW-ENABLED}15 */6 * * * root {AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog={AWSTATS_ENGINE_DIR}/awstats.pl >/dev/null 2>&1

# Rootkit Hunter
{RK-ENABLED}0 */12 * * * root {RKHUNTER} --scan-knownbad-files --check-deleted --createlogfile --cronjob --createlogfile {RKHUNTER_LOG} >/dev/null 2>&1

# Chkrootkit
{CR-ENABLED}0 */12 * * * root {CHKROOTKIT} &> {CHKROOTKIT_LOG}

# Look for and purge old sessions every 30 minutes
0,30 * * * * root {TOOLS_ROOT_DIR}/ispcpphptemp.sh >/dev/null 2>&1

# [{DMN_NAME}] backup task START.
# [{DMN_NAME}] backup task END.

# [{DMN_NAME}]:{CRONJOB_ID} custom task START.
# [{DMN_NAME}]:{CRONJOB_ID} custom task END.

# [{DMN_NAME}] AWStats static tasks START.
# [{DMN_NAME}] AWStats static tasks END.

# delayed tasks END.


RE: awstats static-->> dynamic - Rene - 03-18-2008 09:42 PM

gab es das nicht auch schon von rc2 auf rc3? ich hab da sowas in erinnerung...


RE: awstats static-->> dynamic - Cube - 03-18-2008 09:50 PM

/etc/ispcp/cron.d/ispcp ist in Ordnung, /etc/cron.d/ispcp ist falsch. Du findest den oberen Teil (also ohne die static-Cronjobs) in anderen Threads, ersetze ihn in /etc/cron.d/ispcp und der Working Copy (nicht in der /etc/ispcp/cron.d/ispcp).

Das löst jetzt aber nur das Problem bei elitepilot und nicht die Ursache.