Current time: 05-06-2024, 01:03 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[CLOSED] awstats static-->> dynamic
Author Message
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #1
[CLOSED] awstats static-->> dynamic
Hi,
wie kann ich awstats so einrichten das es statt derzeit static dynamic ist?

Thx
(This post was last modified: 03-25-2008 04:54 PM by BeNe.)
03-18-2008 07:38 PM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #2
RE: awstats static-->> dynamic
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
03-18-2008 07:51 PM
Find all posts by this user
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #3
RE: awstats static-->> dynamic
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
03-18-2008 08:17 PM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #4
RE: awstats static-->> dynamic
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.
03-18-2008 08:30 PM
Find all posts by this user
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #5
RE: awstats static-->> dynamic
# 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?
(This post was last modified: 03-18-2008 08:38 PM by elitepilot.)
03-18-2008 08:34 PM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #6
RE: awstats static-->> dynamic
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.
03-18-2008 08:47 PM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #7
RE: awstats static-->> dynamic
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?
03-18-2008 09:30 PM
Visit this user's website Find all posts by this user
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #8
RE: awstats static-->> dynamic
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.
03-18-2008 09:38 PM
Find all posts by this user
Rene Offline
Member
*
Beta Team

Posts: 342
Joined: Sep 2007
Reputation: 4
Post: #9
RE: awstats static-->> dynamic
gab es das nicht auch schon von rc2 auf rc3? ich hab da sowas in erinnerung...
03-18-2008 09:42 PM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #10
RE: awstats static-->> dynamic
/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.
03-18-2008 09:50 PM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)