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


[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Missing PHP extension: memcached
Please install memcached
[FAIL] The poller has never run or you are not using, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
Check your poll log and see:
and 15 more…
[FAIL] fping6 location is incorrect or bin not installed.
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.
You can fix this with ./scripts/github-remove
Modified Files:
[librenms@localhost ~]$

I running on CentOS 8 ,Apache

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]# ./
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 script is in desperate need of further development. I noted this in the /opt/librenms/ 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

import MySQLdb
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”

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.