Current time: 04-19-2024, 08:29 AM Hello There, Guest! (LoginRegister)


Post Reply 
[solved]Problem with ispcp-vrl-traff
Author Message
deptrai Offline
Newbie
*

Posts: 9
Joined: Jun 2007
Reputation: 0
Post: #1
[solved]Problem with ispcp-vrl-traff
Recently, My Mysql server has died very often.
I checked processes and see that ispcp-vrl-traff was used 30-->55% of my 1Gb memory.

I tried killing that process Big Grin and my memory rate returned as normal.

Please help me to fix that problem.
(This post was last modified: 10-06-2007 10:26 PM by deptrai.)
10-06-2007 02:41 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Problem with ispcp-vrl-traff
This script counts the Traffic for your Domains.
You can find/edit it in the Cron and set it to a better time for you.
-> /etc/cron.d/ispcp
Code:
# Traffic
0,30    *       *       *       *  root /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log
0,30    *       *       *       *  root /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log
15,45   *       *       *       *  root /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log
30         23   *       *       *  root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log

Greez BeNe
10-06-2007 05:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
deptrai Offline
Newbie
*

Posts: 9
Joined: Jun 2007
Reputation: 0
Post: #3
RE: Problem with ispcp-vrl-traff
I installed ispcp-omega-1.0.0-rc2c
And in /ect/cron.d directory, there isn't a ispcp file. This directory contains 3 files:

awstats, ispcp.phpemp, php5

Content of ispcp.phpemp:

09,39 * * * * root /var/www/ispcp/engine/tools/ispcpphptemp.sh >/dev/null 2>&1
10-06-2007 06:50 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Problem with ispcp-vrl-traff
Ok - this was changed in the new Version.
Try
Code:
# crontab -e

Greez BeNe
10-06-2007 07:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
deptrai Offline
Newbie
*

Posts: 9
Joined: Jun 2007
Reputation: 0
Post: #5
RE: Problem with ispcp-vrl-traff
I found in /etc/ispcp/crontab and /etc/ispcp/crontab/working the file crontab.conf.
But the syntax of this file:
Code:
# delayed tasks START.

# Quota
0               23              * * *  {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-qsk-quota.log

# Traffic
0,30    *               * * *  {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log
0,30    *               * * *  {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log
15,45   *               * * *  {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log
30              23              * * *  {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log

# Backup
0               1               * * *  {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log

# AWStats
30      */2     * * *   /usr/share/awstats/tools/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats/awstats.pl

# Rootkit Hunter
0               0,12    * * *   rkhunter --createlogfile --cronjob

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

# delayed tasks END.

That abnormal command syntax causes crontab not execute the ispcp-vrl-traff..

Or, may be i'm wrong Sad
10-06-2007 07:29 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Problem with ispcp-vrl-traff
This is the wrong file. You found the template.
What about this:
Code:
# crontab -e

Greez BeNe
10-06-2007 07:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
deptrai Offline
Newbie
*

Posts: 9
Joined: Jun 2007
Reputation: 0
Post: #7
RE: Problem with ispcp-vrl-traff
Oh yeah, i found this.
I forgot sudo in the beginning of the command:

Code:
# delayed tasks START.

# Quota
0               23              * * *  /var/www/ispcp/engine/quota/ispcp-dsk-qu$

# Traffic
0,30    *               * * *  /var/www/ispcp/engine/traffic/ispcp-srv-traff &>$
0,30    *               * * *  /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>$
15,45   *               * * *  /var/www/ispcp/engine/traffic/ispcp-vrl-traff-co$
30              23              * * *  /var/www/ispcp/engine/tools/ispcp-httpd-$
...... continued..

I'm trying to edit it... Sad
10-06-2007 07:52 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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