Current time: 11-17-2024, 11:29 PM Hello There, Guest! (LoginRegister)


Post Reply 
domain-traf.log and domain-traf.log.prev differ
Author Message
antencek Offline
Junior Member
*

Posts: 14
Joined: May 2008
Reputation: 0
Post: #1
domain-traf.log and domain-traf.log.prev differ
Hello!


I am happily using ispCP RC6 on Ubuntu 8.10 i386.

Things run quite OK, but I am getting these emails from Cron Daemon about /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log:

Files /var/log/ispcp/domain-traf.log and /var/log/ispcp/domain-traf.log.prev differ


Does anybody know where should I be looking for an error in my installation/configuration to get rid of the problem?


Thank you.

A
11-10-2008 06:14 PM
Find all posts by this user Quote this message in a reply
antencek Offline
Junior Member
*

Posts: 14
Joined: May 2008
Reputation: 0
Post: #2
RE: domain-traf.log and domain-traf.log.prev differ
I know, I know... :-)

I just did this:

In /var/www/ispcp/engine/traffic/ispcp-vrl-traff find routine: sub gen_log_file

In line where: if (diff_command("$main::cfg{'CMD_DIFF'} -a -q $dest_file $dest_file_prev") == 0) {

Replace (or add) with: if (diff_command("$main::cfg{'CMD_DIFF'} -a -q $dest_file $dest_file_prev >/dev/null") == 0) {


The mails were sent by cron because the diff command made text output.
With /dev/null there is no output but the diff_command still receives last executed command status and thus works flawlessly.

Thanks for listening...

Regards,
A
11-13-2008 06:39 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #3
RE: domain-traf.log and domain-traf.log.prev differ
In current trunk this was solved by replacing diff with cmp. If you update to trunk please take care, configure files are not updated by any method, you must compare with your current one and merge differences manually
11-14-2008 01:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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