domain-traf.log and domain-traf.log.prev differ - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: domain-traf.log and domain-traf.log.prev differ (/thread-4891.html) |
domain-traf.log and domain-traf.log.prev differ - antencek - 11-10-2008 06:14 PM 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 RE: domain-traf.log and domain-traf.log.prev differ - antencek - 11-13-2008 06:39 PM 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 RE: domain-traf.log and domain-traf.log.prev differ - sci2tech - 11-14-2008 01:39 AM 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 |