carbolymer / mtr-monitor

Simple MTR runner with grafana and influxdb on board
65 stars 16 forks source link

multiple issues #8

Open Rico29 opened 2 years ago

Rico29 commented 2 years ago

Hello, trying to install on fresh debian 11, but i'm facing multiple issues.

first thing is that influxDB is not seen in python libs : # python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" | xargs ls | grep -i influx ->returns nothing, but influxdb python module in installed :

# python3 -m pip list | grep -i infl

influxdb         5.3.1

other problems (that may be linked) : graphana dashboard does not conain anything related to mtr, and I have no influxdb datasource.

can you help me please ? Regards

Rico29 commented 2 years ago

I tried to reinstall on debian 10 (was on debian 11), still have the python problem :

root@mtr-monitor:~# python -V
Python 3.7.3

root@mtr-monitor:~# python -m pip install --upgrade influxdb
Requirement already satisfied: influxdb in /usr/local/lib/python3.7/dist-packages (5.3.1)
Requirement already satisfied: requests>=2.17.0 in /usr/lib/python3/dist-packages (from influxdb) (2.21.0)
Requirement already satisfied: msgpack in /usr/local/lib/python3.7/dist-packages (from influxdb) (1.0.3)
Requirement already satisfied: pytz in /usr/local/lib/python3.7/dist-packages (from influxdb) (2021.3)
Requirement already satisfied: python-dateutil>=2.6.0 in /usr/local/lib/python3.7/dist-packages (from influxdb) (2.8.2)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from influxdb) (1.12.0)

root@mtr-monitor:~# python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" | xargs ls | grep influx
root@mtr-monitor:~#
rath17023 commented 2 years ago

Same issue here

rath17023 commented 2 years ago

apt-get install python-influxdb was part of the issue. Now getting "TypeError: object of type 'int' has no len()"