Graph doesn't show, empty

[librenms@localhost ~]$ ./validate.php

Component Version
LibreNMS 1.58
DB Schema 2019_04_22_220000_update_route_table (147)
PHP 7.2.11
MySQL 10.3.11-MariaDB
RRDTool 1.7.0
SNMP NET-SNMP 5.8

====================================

[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Missing PHP extension: memcached
[FIX]:
Please install memcached
[FAIL] The poller has never run or you are not using poller-wrapper.py, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
213.122.190.122
51.52.10.146
81.137.227.208
192.168.40.1
81.137.245.41
81.137.241.13
185.183.100.27
62.69.33.4
185.183.100.26
88.98.11.209
93.152.103.198
95.177.103.79
81.143.212.72
192.168.57.11
192.168.40.13
and 15 more…
[FAIL] fping6 location is incorrect or bin not installed.
[FIX]:
Install fping6 or manually set the path to fping6 by placing the following in config.php: $config[‘fping6’] = ‘/path/to/fping6’;
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
[librenms@localhost ~]$

I running on CentOS 8 ,Apache

Hi,
I have the same problem but had narrowed the issue down a little. The poller wrapper fails because

  • It can’t load a required mysql/mariadb module

  • CentOS 8 does not stock install with python. Rather, it allows (forces) you to choose whether you want python2 or python3.

  • The poller wrapper requires python 2.

Here is a hit about the missing mysql/mariadb support. module:
[root@nms librenms]# ./poller-wrapper.py
ERROR: missing the mysql python module:
On ubuntu: apt-get install python-mysqldb
On FreeBSD: cd /usr/ports/*/py-MySQLdb && make install clean

A quick search for the package gives:
[root@nms librenms]# dnf search python | grep -i mysql
Last metadata expiration check: 1:11:00 ago on Fri 06 Dec 2019 06:12:58 AM EST.
python2-PyMySQL.noarch : Pure-Python MySQL client library
python3-PyMySQL.noarch : Pure-Python MySQL client library
[root@nms librenms]#

Installing either/both of those libraries does not solve the problem.

The poller-wrapper.py script is in desperate need of further development. I noted this in the /opt/librenms/poller-wrapper.py program:
Author: Job Snijders [email protected]
Date: Jan 2013
Tested on: Python 2.7.3 / PHP 5.3.10-1ubuntu3.4 / Ubuntu 12.04 LTS

try:
import MySQLdb
except:
print “ERROR: missing the mysql python module:”
print “On ubuntu: apt-get install python-mysqldb”
print “On FreeBSD: cd /usr/ports/*/py-MySQLdb && make install clean”
sys.exit(2)

I’m not a python programmer. If I were, I would simply get it working and them submit it to LibreNMS so the experts could fix my newbie hack and make it work.

On a client’s CentOS 7 LibreNMS install, a quick search for the missing mysql module gives:
[root@nms ~]# yum search mysql | grep -i python
MySQL-python.x86_64 : An interface to MySQL
mysql-connector-python.noarch : MySQL Connector for Python 2
python2-PyMySQL.noarch : Pure-Python MySQL client library
python36-PyMySQL.noarch : Pure-Python MySQL client library
python36-mysql.x86_64 : An interface to MySQL
python36-mysql-debug.x86_64 : An interface to MySQL, built for the CPython debug
[root@nms ~]#

Is it possible that one of the two highlighted modules are the missing link in CentOS 8?

I hope this helps and thank you for enduring my long rambling note.

Darren