Piped logs problem

Hello dearest community of Piwik,

This week i began with a project for my company to renew our stats. Therefore we want to migrate to Piwik. Now I have one (shared hosting) server, installed with the following software:
Debian 6
Apache 2.2
PHP 5.3 (with SuPHP, but as far as I know, this shouldn’t be a problem)
Latest build of Piwik (1.9.2)

Now, I’ve been able to create a macro (via mod_macro). The macro works and here comes the weird part:

Whenever I try to load import_logs.py, my output log files are generated, but without any data, except for debugging data, which just says:

2013-01-11 00:01:14,355: [DEBUG] Launched recorder
2013-01-11 00:01:14,355: [DEBUG] Launched recorder
2013-01-11 00:01:14,361: [DEBUG] Launched recorder
2013-01-11 00:01:14,363: [DEBUG] Launched recorder

For testing purposes I’ve added 5 websites to piwik and I put the macro in the vhost httpd config. It works for two sites, wel actually, it WORKED for two out of five sites. Now only one site is being tracked instead of all five. Here’s the output of a random (not working) log:

2013-01-11 00:01:11,070: [DEBUG] Accepted hostnames: all
2013-01-11 00:01:11,075: [DEBUG] Piwik URL is: Hosting en Domeinregistratie | 100% VIP service | VIP Internet
2013-01-11 00:01:11,075: [DEBUG] No token-auth specified
2013-01-11 00:01:11,076: [DEBUG] No credentials specified, reading them from "/home/domain/piwik.domain.nl/piwik/config/config.ini.php"
2013-01-11 00:01:11,077: [DEBUG] Using credentials: (login = , password = )
2013-01-11 00:01:14,346: [DEBUG] Authentication token token_auth is:
2013-01-11 00:01:14,347: [DEBUG] Resolver: dynamic
2013-01-11 00:01:14,347: [DEBUG] Launched recorder
2013-01-11 00:01:14,348: [DEBUG] Launched recorder
2013-01-11 00:01:14,348: [DEBUG] Launched recorder
2013-01-11 00:01:14,349: [DEBUG] Launched recorder

BTW, the sites that worked don’t know which IDsite they should be, but at a certain point it figures that out on it’s own. Output then is:

2013-01-11 00:01:14,355: [DEBUG] Launched recorder
2013-01-11 00:01:14,355: [DEBUG] Launched recorder
2013-01-11 00:01:14,361: [DEBUG] Launched recorder
2013-01-11 00:01:14,363: [DEBUG] Launched recorder
2013-01-11 00:30:10,356: [DEBUG] Site ID for hostname www.domain.nl not in cache
2013-01-11 00:30:10,528: [DEBUG] Site ID for hostname www.domain.nl: 2

My macro (apache2.conf):

<Macro piwiklog $vhost $logname $output $env>
LogFormat “$vhost %h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” $logname
CustomLog “|/home/domain/piwik.domain.nl/piwik/misc/log-analytics/import_logs.py -d
–add-sites-new-hosts
–config=/home/domain/piwik.domain.nl/piwik/config/config.ini.php
–url=‘Hosting en Domeinregistratie | 100% VIP service | VIP Internet
–recorders=4
–log-format-regex=’(?P[\\w\\-\\.\\/])(?::\\d+)? (?P\\S+) \\S+ \\S+ \\[(?P.?) (?P.?)\\] \"\\S+ (?P.?) \\S+\” (?P\\S+) (?P\\S+) \"(?P.?)\" \"(?P<user_agent>.?)\"’
–output=/var/log/piwik/$output.log
-"
$logname
$env

Followed by:

Use piwiklog %v vhost_common main " "

vhost config:

Use piwiklog www.domain.nl vhost_common www.domain.nl " "

The apache2 config first loads the macro, then the main rule and after that it loads the vhost configs. What I don’t get, is that I’ve added all sites the same way, but still piwik only tracks one of them (and there are multiple python processes running, all with their own vhost, and stracing a process gives me output)

Is there anyone here who might have a clue on what’s going on here?