Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th January 2006, 12:07
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2006, 12:17
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
The Following User Says Thank You to Zoon For This Useful Post:
maximusswift302 (28th August 2013)
  #3  
Old 6th January 2006, 13:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 6th January 2006, 15:03
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #5  
Old 6th January 2006, 15:54
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #6  
Old 6th January 2006, 16:09
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

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");
}

}
Reply With Quote
  #7  
Old 6th January 2006, 16:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 22nd March 2006, 09:14
Kamran Shah Kamran Shah is offline
Junior Member
 
Join Date: Oct 2005
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default 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?
Reply With Quote
  #9  
Old 22nd March 2006, 09:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,194
Thanks: 829
Thanked 5,419 Times in 4,261 Posts
Default

I guess the problem is not directly related to ISPConfig as ISPConfig does not use logwatch at all.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 22nd March 2006, 20:29
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

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!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer doesn't work :( DarkBen Installation/Configuration 22 13th January 2008 14:04
Zone files are not updated after deletion from web JAYDEE.U Installation/Configuration 1 1st January 2007 10:09
Webalizer tab files matheron Server Operation 4 11th December 2005 13:26
webalizer and logrotate damaskinos Server Operation 4 24th November 2005 23:16
web.log and webalizer Lobanak Installation/Configuration 4 11th September 2005 19:24


All times are GMT +2. The time now is 18:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.