<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    <div class="moz-cite-prefix">On 05/10/2016 11:58 AM, Matthew Duncan
      wrote:<br>
    </div>
    <blockquote
      cite="mid:BAY403-EAS1033685DE29E26015F14651E4710@phx.gbl"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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>
      <div class="WordSection1">If I run the same command without the
        type specified, I receive the usage syntax help message</div>
    </blockquote>
    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`<br>
    <br>
    I found an additional bug in the ctl tool with outputs (for `list
    bots`), expect a fix in upstream master soon.<br>
    <blockquote
      cite="mid:BAY403-EAS1033685DE29E26015F14651E4710@phx.gbl"
      type="cite">
      <div class="WordSection1">
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><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>
      </div>
    </blockquote>
    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.<br>
    <br>
    Sebastian<br>
    <br>
    <blockquote
      cite="mid:BAY403-EAS1033685DE29E26015F14651E4710@phx.gbl"
      type="cite">
      <div class="WordSection1">
        <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 moz-do-not-send="true" href="mailto:wagner@cert.at">Sebastian
              Wagner</a><br>
            <b>Sent: </b>Tuesday, 10 May 2016 7:49 PM<br>
            <b>To: </b><a moz-do-not-send="true"
              href="mailto:matthew.duncan@mahdtech.com">Matthew Duncan</a>;
            <a moz-do-not-send="true"
              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 moz-do-not-send="true" class="x_moz-txt-link-rfc2396E" href="mailto:wagner@cert.at"><wagner@cert.at></a> - T: +43 1 50564167201 
// CERT Austria - <a moz-do-not-send="true" class="x_moz-txt-link-freetext" href="http://www.cert.at/">http://www.cert.at/</a>
// Eine Initiative der nic.at GmbH - <a moz-do-not-send="true" class="x_moz-txt-link-freetext" href="http://www.nic.at/">http://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Intelmq-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Intelmq-dev@lists.cert.at">Intelmq-dev@lists.cert.at</a>
<a class="moz-txt-link-freetext" href="http://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev">http://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
// Sebastian Wagner <a class="moz-txt-link-rfc2396E" href="mailto:wagner@cert.at"><wagner@cert.at></a> - T: +43 1 50564167201 
// CERT Austria - <a class="moz-txt-link-freetext" href="http://www.cert.at/">http://www.cert.at/</a>
// Eine Initiative der nic.at GmbH - <a class="moz-txt-link-freetext" href="http://www.nic.at/">http://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
  </body>
</html>