<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I'm back with some results (had to change IP and *.rrd files dir location):</div><div><br></div><div>latest log: <a href="http://p.ip.fi/FlLd">http://p.ip.fi/FlLd</a></div><div>visual prnt-src:of vlan graph: <a href="https://prnt.sc/n0im4x">https://prnt.sc/n0im4x</a></div><div> <br></div><div>----------------------------------------------------------------------------<br></div><div> /srv/ixpmanager/config/grapher.php <br></div><div><div>-----------------------------------------------------------------------------</div><div><br></div><div> 'sflow' => [</div><div> // show sflow / p2p links on the frontend</div><div> 'enabled' => env( 'GRAPHER_BACKEND_SFLOW_ENABLED', false ),</div><div><br></div><div> // for larger IXPs, it's quite intensive to display all the graphs</div><div> 'show_graphs_on_index_page' => env( 'GRAPHER_BACKEND_SFLOW_SHOW_ON_INDEX', false ),</div><div><br></div><div> // where to find the MRTG rrd files</div><div> 'root' => env( 'GRAPHER_BACKEND_SFLOW_ROOT', '<a href="http://10.81.7.10/grapher-sflow/">http://10.81.7.10/grapher-sflow/</a>' ),</div><div> ],</div><div><br></div><div><br></div><div>------------------------------------------------------------------------</div><div>/srv/ixpmanager/.env </div><div>------------------------------------------------------------------------</div><div>GRAPHER_BACKENDS="mrtg|sflow"</div><div>GRAPHER_BACKEND_SFLOW_ENABLED=true</div><div>GRAPHER_BACKEND_SFLOW_ROOT="<a href="http://10.81.7.10/grapher-sflow">http://10.81.7.10/grapher-sflow</a>"</div><div><div>GRAPHER_ACCESS_CUSTOMER=0</div><div>GRAPHER_ACCESS_P2P=1</div></div><div><br></div><div>----------------------------------------------------------------</div><div>Files have been gathered as it should be;</div><div>#/var/www/ixp_p2p/ipv4/bytes/p2p/src-00001$ ls</div><div>p2p.ipv4.bytes.src-00001.dst-00003.rrd</div><div><br></div><div>I have got 2 peering ports UP and till now 2 rrd files accordingly;</div><div>will leave "./sflow-to-rrd-handler --macdbtype=configured" for sometime</div><div>to gather more of them;</div><div><br></div><div>------------------------------------------------------------------</div><div>local install of apache: added lines (used apache the same which was installed with IXP manager)</div><div><div>------------------------------------------------------------------</div><div>/etc/apache2/apache2.conf</div><div><br></div><div>Alias /grapher-sflow /var/www/ixp_p2p</div><div><Directory "/data/ixpmatrix"></div><div> Options None</div><div> AllowOverride None</div><div></Directory></div></div><div>----------------------------------------------------------------</div><div>shows the content of /var/www/ixp_p2p with all of its subdirs</div><div><a href="http://10.81.7.10/grapher-sflow/">http://10.81.7.10/grapher-sflow/</a></div><div>visual prtn-src:of apache <a href="https://prnt.sc/n0ijkk">https://prnt.sc/n0ijkk</a></div><div> <br></div><div>-------------------------------------------------------------</div><div>/usr/local/etc/ixpmanager.conf </div><div>-------------------------------------------------------------</div><div><br></div><div><sql></div><div> dbase_type = mysql</div><div> dbase_database = ixpmanager</div><div> dbase_username = ixpmanager</div><div> dbase_password = *</div><div> dbase_hostname = 127.0.0.1</div><div> #dbase_portname = /tmp/mysql.sock</div><div></sql></div><div><br></div><div><ixp></div><div> sflow_rrdcached = 0</div><div> sflowtool = /usr/local/bin/sflowtool</div><div> sflowtool_opts = -4 -p 6343 -l</div><div> sflow_rrddir = /var/www/ixp_p2p</div><div># debug = 1</div><div> apikey = *</div><div> apibaseurl = <a href="http://10.81.7.10/api/v4">http://10.81.7.10/api/v4</a></div><div> macdbtype = configured</div><div></ixp></div></div><div><br></div><div>Do I understand wright:</div><div><br></div><div>1. If I see some page NOT with "dummy" and NOT with "no image found" it means it's normally tries to interpreter sflow</div><div>converted *.rrd's? -> visual prtn-src:of vlan graph: <a href="https://prnt.sc/n0im4x">https://prnt.sc/n0im4x</a> </div><div>2. As far as there will be enough *.rrd files the graph</div><div>visual prtn-src:of vlan graph: <a href="https://prnt.sc/n0im4x">https://prnt.sc/n0im4x</a> <br></div><div>will be shown with in/out statistics at the bottom as it should be?</div><div>3. GRAPHER_BACKENDS="mrtg|sflow" - tries to use mrtg -> failed -> then sflow? <br></div><div>4. from log means: <span style="background-color:rgb(0,43,54);color:rgb(42,161,152);font-family:monospace;font-size:16px;white-space:pre">production.ERROR: No backend available to process this graph</span></div><div>It's because of mrtg is not installed?</div><div>5. Do I understand documentation in a wright way: Overall peering graph is available only by mrtg? I need to implement it too them?<br></div><div><br></div><div>Thank you.</div><div><br></div><div>Vladislav.</div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 20 мар. 2019 г. в 11:00, Nick Hilliard <<a href="mailto:nick@foobar.org">nick@foobar.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Vladislav Leontjev wrote on 20/03/2019 06:42:<br>
> ./sflow-to-rrd-handler --macdbtype=configured<br>
> <br>
> runs whitout any error output; In my understanding I should then get<br>
> rrd files into my mentioned dir in cfg?<br>
> <br>
<br>
Yes, if there are MAC addresses defined in the database, you should see <br>
.rrd files in a bunch of subdirectories in /var/www.<br>
<br>
If you're not seeing any files in there, then you need to use "--debug" <br>
to see what's happening.<br>
<br>
> I'm using V4.9.2; In my situation (till next bug-fix) the way to get<br>
> *.rrd is ./sflow-to-rrd-handler --macdbtype=configured ? or did I<br>
> mess up something?<br>
Just stick with v4.9.2 for the moment.<br>
<br>
Nick<br>
</blockquote></div></div>