Hi,

On 05/10/2016 11:58 AM, Matthew Duncan wrote:
If I run the same command without the type specified, I receive the usage syntax help message
Ok, so `sudo -u intelmq /usr/bin/intelmqctl list queues -t json` works too? This is what's executed on the monitor page. You can also try `status -t json`

I found an additional bug in the ctl tool with outputs (for `list bots`), expect a fix in upstream master soon.

·       I also has to ensure the $CONTROLLER variable as defined in the config.php matched the correct location (/usr/bin/intelmqctl instead of in local)

Mh, ok. Centos puts binaries from from non-packaged installations there too? But I think we do not need the absolute path anyway, because /usr/local/bin is in $PATH if it exists on this OS.

Sebastian

 

From: Sebastian Wagner
Sent: Tuesday, 10 May 2016 7:49 PM
To: Matthew Duncan; intelmq-dev@lists.cert.at
Subject: Re: [Intelmq-dev] Getting up and running CentOS

 

Hi Matt,

On 05/10/2016 11:43 AM, Matthew Duncan wrote:
I can successfully load the main page and “Configuration” page, however if I click on either the “Management” or “Monitor” tabs, this is what I get

 

 

Error loading botnet status: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

 

 

Has anyone see this before or can provide some pointers where I have gone wrong.

I assume you are running on current git master?

The manager most probably can't access the cli-program. Possible reasons are insufficient permissions or misconfiguration or missing docs...
To debug it, you can try to access the cli as user www-data (or whatever user your webserver is using):
% sudo -u intelmq /usr/local/bin/intelmqctl
Append `-t json` to see what the manager would see.

Hope this helps,
Sebastian

-- 
// Sebastian Wagner <wagner@cert.at> - T: +43 1 50564167201 
// CERT Austria - http://www.cert.at/
// Eine Initiative der nic.at GmbH - http://www.nic.at/
// Firmenbuchnummer 172568b, LG Salzburg


_______________________________________________
Intelmq-dev mailing list
Intelmq-dev@lists.cert.at
http://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev

-- 
// Sebastian Wagner <wagner@cert.at> - T: +43 1 50564167201 
// CERT Austria - http://www.cert.at/
// Eine Initiative der nic.at GmbH - http://www.nic.at/
// Firmenbuchnummer 172568b, LG Salzburg