inex / IXP-Manager

Full stack web application powering peering at over 200 Internet Exchange Points (IXPs) globally.
https://www.ixpmanager.org/
GNU General Public License v2.0
379 stars 164 forks source link

sflow-to-rrd-handler not starting #442

Closed digitalandrei closed 6 years ago

digitalandrei commented 6 years ago
ISSUE TYPE

Bug Report

OS

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"

VERSION
define( 'APPLICATION_VERSION', '4.8.999' );
define( 'APPLICATION_VERDATE', '201807060000' );
ENVIRONMENT
PHP 7.0.25-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.25-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
(with 60 registered patches, see perl -V for more detail)
CONFIGURATION
APP_DEBUG=false
APP_URL="https://.."
APP_TIMEZONE="Europe/Bucharest"
APP_LOG="single"
IXP_API_JSONEXPORTSCHEMA_PUBLIC=true
IXP_MULTIIXP_ENABLED=false
IXP_RESELLER_ENABLED=true
IXP_AS112_UI_ACTIVE=true
GRAPHER_BACKENDS="mrtg|smokeping|sflow"
GRAPHER_CACHE_ENABLED=true
GRAPHER_BACKEND_MRTG_DBTYPE="rrd"
GRAPHER_BACKEND_MRTG_WORKDIR="/srv/mrtg"
GRAPHER_BACKEND_MRTG_LOGDIR="/srv/mrtg"
GRAPHER_BACKEND_SMOKEPING_ENABLED=true
GRAPHER_BACKEND_SMOKEPING_URL=".."
VIEW_SKIN=".."
VIEW_SMARTY_SKIN=".."
CACHE_DRIVER=memcached
SESSION_DRIVER=file
DOCTRINE_PROXY_AUTOGENERATE=true
DOCTRINE_CACHE=memcached
DOCTRINE_CACHE_NAMESPACE=IXPMANAGERNAMESPACE
IXP_FE_FRONTEND_DISABLED_LOOKING_GLASS=false
GRAPHER_SMOKEPING_URL=".."
GRAPHER_ACCESS_IXP=0
GRAPHER_ACCESS_INFRASTRUCTURE=1
GRAPHER_ACCESS_SWITCH=1
GRAPHER_ACCESS_TRUNK=1
GRAPHER_ACCESS_VLAN=1
GRAPHER_ACCESS_CUSTOMER="own_graphs_only"
GRAPHER_ACCESS_P2P="own_graphs_only"
GRAPHER_ACCESS_LATENCY="own_graphs_only"
SUMMARY

The sflow-to-rrd-handler returns an error when running it.

STEPS TO REPRODUCE
  1. Configure Sflow according to: https://docs.ixpmanager.org/features/sflow-p2p/
  2. Set variables in ./tools/perl-lib/IXPManager/ixpmanager.conf
  3. Try to run sflow-to-rrd-handler
EXPECTED RESULTS

Process started.

ACTUAL RESULTS
Missing command in piped open at ./tools/runtime/sflow/sflow-to-rrd-handler line 131.
readline() on closed filehandle SFLOWTOOL at ./tools/runtime/sflow/sflow-to-rrd-handler line 134.
Can't kill a non-numeric process ID at ./tools/runtime/sflow/sflow-to-rrd-handler line 230.
IMPORTANCE

Medium

nickhilliard commented 6 years ago

this is a config error, not a bug. can you take it to the ixpmanager@ mailing list and we can work through it there?

digitalandrei commented 6 years ago

All fine Nick, thank you. I forgot I had an older ixpmanager.conf deployed in /usr/local/etc.

Thanks