Thanks Sebastian,
Running from master, I had to make a few modifications as CentOS is using different locations and usernames, but If I run the following:
sudo -u intelmq /usr/bin/intelmqctl -t json
I receive the following response
null
If I run the same command without the type specified, I receive the usage syntax help message
usage: intelmqctl --bot [start|stop|restart|status] --id=cymru-expert intelmqctl --botnet [start|stop|restart|status] intelmqctl --list [bots|queues]
.....
Other Notes:
· CentOS uses “apache” in-place of www-data so I made the relevant modifications based on the install instructions.
· 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)
From: Sebastian Wagnermailto:wagner@cert.at Sent: Tuesday, 10 May 2016 7:49 PM To: Matthew Duncanmailto:matthew.duncan@mahdtech.com; intelmq-dev@lists.cert.atmailto: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
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 mailto:wagner@cert.at *Sent: *Tuesday, 10 May 2016 7:49 PM *To: *Matthew Duncan mailto:matthew.duncan@mahdtech.com; intelmq-dev@lists.cert.at mailto: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 mailto: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