<div dir="ltr"><div>Hi all,<br></div><div><br></div><div>just working on the IXP Manager sflow integration.</div><div><br></div><div>Recently, I added a couple (not all) peering ports on some switches to send sflow data</div>
<div>to the collector (which is currently on the same box as the IXP Manager </div><div>installation to see how it all work together). </div><div>Mac-Adresses are in the Database via the <a href="http://update-l2database.pl">update-l2database.pl</a> script.</div>
<div>For port-channels I inserted the Mac-Adresses via sql. More config details see below</div><div><br></div><div>Then I started   $app/tools/runtime/sflow/sflow-to-rrd-handler </div><div>which is running for a couples of days, now.</div>
<div>I see new files to be generated in /var/www/ixpmatrix directories.</div><div><br></div><div>e.g. </div><div><br></div><div>/var/www/ixpmatrix/ipv4/bytes/p2p/src-00001/</div><div><br></div><div>..</div><div>-rw-r--r--  1 root root 185312 Sep 29 11:20 p2p.ipv4.bytes.src-00001.dst-00002.rrd</div>
<div>-rw-r--r--  1 root root 185312 Sep 29 11:20 p2p.ipv4.bytes.src-00001.dst-00003.rrd</div><div>-rw-r--r--  1 root root 185312 Sep 29 11:20 p2p.ipv4.bytes.src-00001.dst-00008.rrd</div><div>-rw-r--r--  1 root root 185312 Sep 29 11:20 p2p.ipv4.bytes.src-00001.dst-00013.rrd</div>
<div>..</div><div><br></div><div><br></div><div>Questions:</div><div><br></div><div><br></div><div> a. P2P Graphs (currently my main issue):</div><div><br></div><div>When I look on the  IXP Manager Web Frontend now, I still see</div>
<div>_no_ graphs in the p2p section of each peer. Just looking on these,</div><div>which I switched sflow to "on" on the regarding switch ports.</div><div><br></div><div><br></div><div>Anything I forgot to install or configure for that ?</div>
<div><br></div><div><br></div><div><br></div><div> b. PeeringMatrix</div><div><br></div><div>There might be a missing sflow BGP listener for that, can I have bit more</div><div>information on that?</div><div><br></div><div>
Currently, when clicking on PeeringMatrix, I receive the following mail:</div><div><br></div><div><br></div><div>Message: Invalid VLAN</div><div>Line: 67</div><div>File: /var/www/ixp/application/Repositories/BGPSessionData.php</div>
<div><br></div><div>Trace:</div><div><br></div><div>#0 /var/www/ixp/application/controllers/PeeringMatrixController.php(66): Repositories\BGPSessionData->getPeers('100', 4)</div><div>#1 /var/www/ixp/library/Zend/Controller/Action.php(516): PeeringMatrixController->indexAction()</div>
<div>#2 /var/www/ixp/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')</div><div>#3 /var/www/ixp/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))</div>
<div>#4 /var/www/ixp/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()</div><div>#5 /var/www/ixp/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()</div>
<div>#6 /var/www/ixp/public/index.php(67): Zend_Application->run()</div><div>#7 {main}</div><div><br></div><div>Array</div><div>(</div><div>    [0] => Array</div><div>        (</div><div>            [file] => /var/www/ixp/library/OSS-Framework.git/OSS/Controller/Trait/Error.php</div>
<div>            [line] => 78</div><div>            [function] => compact_debug_backtrace</div><div>            [class] => OSS_Debug</div><div>        )</div><div><br></div><div>    [1] => Array</div><div>        (</div>
<div>            [file] => /var/www/ixp/library/Zend/Controller/Action.php</div><div>            [line] => 516</div><div>            [function] => errorAction</div><div>            [class] => ErrorController</div>
<div>        )</div><div><br></div><div>    [2] => Array</div><div>        (</div><div>            [file] => /var/www/ixp/library/Zend/Controller/Dispatcher/Standard.php</div><div>            [line] => 308</div><div>
            [function] => dispatch</div><div>            [class] => Zend_Controller_Action</div><div>        )</div><div><br></div><div>    [3] => Array</div><div>        (</div><div>            [file] => /var/www/ixp/library/Zend/Controller/Front.php</div>
<div>            [line] => 954</div><div>            [function] => dispatch</div><div>            [class] => Zend_Controller_Dispatcher_Standard</div><div>        )</div><div><br></div><div>    [4] => Array</div>
<div>        (</div><div>            [file] => /var/www/ixp/library/Zend/Application/Bootstrap/Bootstrap.php</div><div>            [line] => 97</div><div>            [function] => dispatch</div><div>            [class] => Zend_Controller_Front</div>
<div>        )</div><div><br></div><div>    [5] => Array</div><div>        (</div><div>            [file] => /var/www/ixp/library/Zend/Application.php</div><div>            [line] => 366</div><div>            [function] => run</div>
<div>            [class] => Zend_Application_Bootstrap_Bootstrap</div><div>        )</div><div><br></div><div>    [6] => Array</div><div>        (</div><div>            [file] => /var/www/ixp/public/index.php</div>
<div>            [line] => 67</div><div>            [function] => run</div><div>            [class] => Zend_Application</div><div>        )</div><div><br></div><div>)</div><div><br></div><div>#####################################################</div>
<div>My /usr/local/etc/ixpmanager.conf looks like this</div><div><br></div><div><sql></div><div><span class="" style="white-space:pre"> </span>dbase_type<span class="" style="white-space:pre">        </span>= mysql</div><div>
<span class="" style="white-space:pre">       </span>dbase_host<span class="" style="white-space:pre">        </span>= localhost</div><div><span class="" style="white-space:pre">        </span>dbase_database<span class="" style="white-space:pre">    </span>= ixp</div>
<div><span class="" style="white-space:pre">    </span>dbase_username<span class="" style="white-space:pre">    </span>= secret</div><div><span class="" style="white-space:pre">   </span>dbase_password<span class="" style="white-space:pre">    </span>= evenmoresecret</div>
<div><span class="" style="white-space:pre">    </span>dbase_hostname<span class="" style="white-space:pre">    </span>= localhost</div><div><span class="" style="white-space:pre">        </span>#dbase_portname = /tmp/mysql.sock</div>
<div></sql></div><div><ixp></div><div><span class="" style="white-space:pre">       </span>rs_asn = 16374</div><div><span class="" style="white-space:pre">     </span>rs_peval_bird = /var/www/ixp/tools/runtime/peval-output-to-csv.sh</div>
<div><span class="" style="white-space:pre">    </span>rs_identity = 1</div><div><span class="" style="white-space:pre">    </span>sflow_rrdcached = 0</div><div><span class="" style="white-space:pre">        </span>sflowtool = /usr/local/bin/sflowtool</div>
<div><span class="" style="white-space:pre">    </span>sflowtool_opts = -4 -p 6343 -l</div><div><span class="" style="white-space:pre">     </span>sflow_rrddir = /var/www/ixpmatrix</div><div>#<span class="" style="white-space:pre"> </span>debug = 1</div>
<div></ixp></div><div><br></div><div>The sflow part of the application.ini like tis:</div><div><br></div><div>; sflow parameters (peer to peer graphs)</div><div>sflow.enabled = true</div><div>sflow.rootdir = /var/www/ixpmatrix</div>
<div>sflow.rrd.rrdtool = /usr/bin/rrdtool</div><div>sflow.rrd.rrdcached.sock = unix:/var/run/rrdcached.sock</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks, Thorleif</div><div><br></div>-- <br>
Thorleif Wiik, Vorstand Technik<br><a href="mailto:thorleif.wiik@bcix.de" target="_blank">thorleif.wiik@bcix.de</a><br><br> Tel: +49 160 90378641<br><br>BCIX Management GmbH / BCIX e.V.<br>Stromstrasse 5<br>10555 Berlin - Germany<br>
<br><a href="http://www.bcix.de/" target="_blank">http://www.bcix.de/</a><br><a href="http://twitter.com/bcix" target="_blank">http://twitter.com/bcix</a><div><a href="https://www.facebook.com/BCIX.Internet.Exchange" target="_blank">https://www.facebook.com/BCIX.Internet.Exchange</a></div>

</div>