<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:2105615210;
mso-list-type:hybrid;
mso-list-template-ids:-1793812368 -1 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style>
</head>
<body lang="EN-AU" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks Sebastian,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Running from master, I had to make a few modifications as CentOS is using different locations and usernames, but If I run the following:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> sudo -u intelmq /usr/bin/intelmqctl -t json</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I receive the following response</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> null</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I run the same command without the type specified, I receive the usage syntax help message</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">usage:</p>
<p class="MsoNormal" style="margin-left:36.0pt"> intelmqctl --bot [start|stop|restart|status] --id=cymru-expert</p>
<p class="MsoNormal" style="margin-left:36.0pt"> intelmqctl --botnet [start|stop|restart|status]</p>
<p class="MsoNormal" style="margin-left:36.0pt"> intelmqctl --list [bots|queues]</p>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">.....</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Other Notes:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]>CentOS uses “apache” in-place of www-data so I made the relevant modifications based on the install instructions.</p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]>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)</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From: </b><a href="mailto:wagner@cert.at">Sebastian Wagner</a><br>
<b>Sent: </b>Tuesday, 10 May 2016 7:49 PM<br>
<b>To: </b><a href="mailto:matthew.duncan@mahdtech.com">Matthew Duncan</a>; <a href="mailto:intelmq-dev@lists.cert.at">
intelmq-dev@lists.cert.at</a><br>
<b>Subject: </b>Re: [Intelmq-dev] Getting up and running CentOS</p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
</div>
<div style="background-color:#FFFFFF">Hi Matt,<br>
<br>
<div class="x_moz-cite-prefix">On 05/10/2016 11:43 AM, Matthew Duncan wrote:<br>
</div>
<blockquote type="cite"><style>
<!--
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
.x_MsoChpDefault
{}
div.x_WordSection1
{}
-->
</style>
<div class="x_WordSection1">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
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><i> </i></p>
<p class="x_MsoNormal"><i>Error loading botnet status: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data</i></p>
<p class="x_MsoNormal"><i> </i></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Has anyone see this before or can provide some pointers where I have gone wrong.</p>
</div>
</blockquote>
I assume you are running on current git master?<br>
<br>
The manager most probably can't access the cli-program. Possible reasons are insufficient permissions or misconfiguration or missing docs...<br>
To debug it, you can try to access the cli as user www-data (or whatever user your webserver is using):<br>
% sudo -u intelmq /usr/local/bin/intelmqctl<br>
Append `-t json` to see what the manager would see.<br>
<br>
Hope this helps,<br>
Sebastian<br>
<br>
<pre class="x_moz-signature" cols="72">--
// Sebastian Wagner <a class="x_moz-txt-link-rfc2396E" href="mailto:wagner@cert.at"><wagner@cert.at></a> - T: +43 1 50564167201
// CERT Austria - <a class="x_moz-txt-link-freetext" href="http://www.cert.at/">http://www.cert.at/</a>
// Eine Initiative der nic.at GmbH - <a class="x_moz-txt-link-freetext" href="http://www.nic.at/">http://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
</div>
</body>
</html>