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
375 stars 160 forks source link

Missing documentation on running sFlow Perl scripts against Docker setup #837

Closed jbemmel closed 1 year ago

jbemmel commented 1 year ago

I am evaluating options to improve the Perl scripts that process sFlow records. I managed to get the Docker setup up and running, but it is unclear to me how one could integrate the sFlow features with that

Here is what I tried so far:

cat db.env 

export DB_HOST="localhost"
export DB_USERNAME="docker"
export DB_PASSWORD="docker"
export DB_DATABASE="ixpmanager"

export DBI_DRIVER="mysql"

jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ ./sflow-detect-ixp-bgp-sessions 

Can't connect to data source 'DBI::database=' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /home/jeroen/srlinux/IXP-Manager/tools/runtime/sflow/../../perl-lib/IXPManager/lib/IXPManager/Config.pm line 105.

jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ cat /etc/ixpmanager.conf 
jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ source db.env 
jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ ./sflow-detect-ixp-bgp-sessions 

DBI connect('database=','',...) failed: Access denied for user 'jeroen'@'localhost' (using password: NO) at /home/jeroen/srlinux/IXP-Manager/tools/runtime/sflow/../../perl-lib/IXPManager/lib/IXPManager/Config.pm line 105.

Would appreciate some pointers, and can contribute documentation when I get it working

nickhilliard commented 1 year ago

not a bug => please use IXP Manager mailing list

https://www.ixpmanager.org/support

nickhilliard commented 1 year ago

@jbemmel the mailing subscription URL is here: https://www.inex.ie/mailman/listinfo/ixpmanager. we don't accept non-subscriber posts due to spam problems.