
6th January 2006, 12:07
|
|
Member
|
|
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Webalizer not updated since 01 Jan 06?
Hi,
Webalizer hasn't updated stats since 01 Jan 06, at around 04:00. Is my understanding of this incorrect or should daily stats be show in the interim until monthly summary is available or is it monthly only?
If daily stats should be available (or even can be available?) I would appreciate some help in getting this working. I don't understand how ISPConfig creates the error log and then sends it to Webalizer to parse and generate the stats so I'm really confused at this
|

6th January 2006, 12:17
|
|
Member
|
|
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Not sure if it has any bearing but I'm also getting this email from the nightly cron tasks.
Message 2:
From root@ Fri Jan 6 04:02:41 2006
X-Original-To: root@
Delivered-To: root@
Date: Fri, 6 Jan 2006 04:02:07 GMT
From: root@(Cron Daemon)
To: root@
Subject: Cron <root@emily> run-parts /etc/cron.daily
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
/etc/cron.daily/0logwatch:
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683.
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683.
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683.
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683.
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683.
/etc/cron.daily/makewhatis.cron:
zcat: stdout: Broken pipe
zcat: stdout: Broken pipe
|

6th January 2006, 13:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
|
Originally Posted by Zoon
Hi,
Webalizer hasn't updated stats since 01 Jan 06, at around 04:00. Is my understanding of this incorrect or should daily stats be show in the interim until monthly summary is available or is it monthly only?
If daily stats should be available (or even can be available?) I would appreciate some help in getting this working. I don't understand how ISPConfig creates the error log and then sends it to Webalizer to parse and generate the stats so I'm really confused at this 
|
Webalizer should build statistics every night at around 4:00 AM.
Please have a look at this thread: http://www.howtoforge.com/forums/showthread.php?t=562
I think the mail you get every night is not related to webalizer because webalizer isn't run from /etc/cron.daily.
|

6th January 2006, 15:03
|
|
Member
|
|
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Try to do a
/etc/init.d/cron stop
pkill cron (Make sure no cron processes are left.)
Edit your crontab (crontab -e) and save it again.
Then restart cron: /etc/init.d/cron start
|
I did a search on here yesterday and found the above advice. I ran the command yesterday but as of today the stats are still showing last updated 01 Jan 2006 04:00.
I've also tried to run the log.php myself with php -cli but I get the following message:
[root@emily ~]# /root/ispconfig/php/php -cli /root/ispconfig/scripts/shell/logs.php
Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
I haven't made any changes to ISPConfig in this time, and in fact I upgraded to the latest version last night in case that fixed it, but the logs still did not run.
Thanks
|

6th January 2006, 15:54
|
|
Member
|
|
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm using Fedora Core 4 if it makes any difference.
I checked that thread for further advice and I saw you request ouput from "grep -i cron /var/log/syslog" - I've tried this but that particular log doesn't exist.
Ta
|

6th January 2006, 16:09
|
|
Member
|
|
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Checking further, the usage stats in ISPConfig are also showing 0.00mb for this month. I think my problem could be to do with the error message coming from logs.php which I pasted earlier.
// Traffic auswerten und Symlinks für Webalizer aktualisieren
foreach($traffic as $virtual_host => $bytes) {
if(trim($virtual_host) != '') {
// Traffic in DB Schreiben
// Bestimme Web-ID
$link = readlink("$webroot/$virtual_host"); <-- This is line 125
$parts = split("/",$link);
$web_id = intval(substr($parts[count($parts) - 1],3));
if($web_id > 0) {
$verify = $mod->db->queryAllRecords("SELECT * FROM isp_traffic WHERE web_id = '$web_id' AND monat = '$monat_jahr'");
if(empty($verify)){
$mod->db->query("INSERT INTO isp_traffic (web_id, monat, jahr, bytes_web, datum) VALUES ('$web_id','$monat_jahr','$jahr','$bytes','$curren t_time')");
} else {
$mod->db->query("UPDATE isp_traffic SET bytes_web = bytes_web + $bytes WHERE web_id = '$web_id' AND monat = '$monat_jahr'");
}
}
// Symlinks für webalizer korrigieren, falls neuer Monat
if(@readlink("$webroot/$virtual_host/log/web.log") != get_filename($virtual_host)) {
if(is_link("$webroot/$virtual_host/log/web.log")) @unlink("$webroot/$virtual_host/log/web.log");
@symlink(get_filename($virtual_host),"$webroot/$virtual_host/log/web.log");
}
clearstatcache();
$web_owner = @fileowner($webroot."/".$virtual_host."/log");
exec("chown -R ".$web_owner.":web".$web_id." ".$webroot."/".$virtual_host."/log &> /dev/null");
}
}
|

6th January 2006, 16:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
You could put
PHP Code:
echo "$webroot/$virtual_host";
into the logs.php script (just before line 125) and then run that script again. Then check if the directories/files that are displayed do exist on your system.
|

22nd March 2006, 09:14
|
|
Junior Member
|
|
Join Date: Oct 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Erros in /etc/cron.daily/0logwatch line 683
Zoon, did you get your logwatch errors from cron.daily fixed at all? I have tried installing FC4 with ISPConfig few times in past 4 months and few days after installation I start getting following error and then ISPConfig gets messed up which Falko believes can be Segmentation fault but I couldn't fully diagnose or fix.
Since last couple of days I have started getting following error again. This time I have not enabled yum nightly updates so there shouldn't be anything changed on system.
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683
Any idea?
|

22nd March 2006, 09:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,189 Times in 3,206 Posts
|
|
I guess the problem is not directly related to ISPConfig as ISPConfig does not use logwatch at all.
|

22nd March 2006, 20:29
|
|
Member
|
|
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Nope I have no idea whats causing it, I just delete them  I can't even see where the task is being run, but then I didn't look into it much!
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:16.
|
|
Recent comments
4 hours 4 min ago
13 hours 32 min ago
14 hours 21 min ago
17 hours 55 min ago
22 hours 19 min ago
22 hours 41 min ago
1 day 50 min ago
1 day 10 hours ago
1 day 15 hours ago
1 day 17 hours ago