Error Graphing Fresh Install RHEL

We are seeing Error Drawing Graph error our newly installed instance in RHEL. Pretty much everything involving drawing doesn’t work.

Couple things to note we are running out of a different directory than OPT. Moved it to a folder labeled /nre/

-bash-4.2$ ./validate.php

Component Version
LibreNMS 1.61-80-gcfd6c41
DB Schema 2020_03_24_0844_add_primary_key_to_device_graphs (160)
PHP 7.2.27
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.10.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
rrd/.gitignore

RRDTool Command

rrdtool graph /tmp/YPk1Z3Uv3LSApChA -l 0 -u 100 -E --start 1585075800 --end 1585162200 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal -c FONT#000000 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal DEF:usage=172.21.220.203/processor-cpm-11.0.rrd:usage:AVERAGE AREA:usage#FFBBBB: COMMENT:‘Usage Now Ave Max\n’ LINE1.25:usage#cc0000:’ ’ GPRINT:usage:LAST:%6.2lf%s GPRINT:usage:AVERAGE:%6.2lf%s GPRINT:usage:MAX:%6.2lf%s\n COMMENT:\n --daemon unix:/run/rrdcached.sock
RRDTool Output

ERROR: mmaping file ‘172.21.220.203/processor-cpm-11.0.rrd’: Invalid argument

Warning: unlink(/tmp/YPk1Z3Uv3LSApChA): No such file or directory in /nre/librenms/includes/html/graphs/graph.inc.php on line 127

any help would be greatly appreciated.

Adding onto this: added this to our config.php file still same issues:

$config[‘install_dir’] = “/nre/librenms”;

To add onto this Cron jobs were all fixed as well:

Same Symptoms:

-bash-4.2$ cat /etc/cron.d/librenms

Using this cron file requires an additional user on your system, please see install docs.

33 */6 * * * librenms /nre/librenms/cronic /nre/librenms/discovery-wrapper.py 1
*/5 * * * * librenms /nre/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /nre/librenms/cronic /nre/librenms/poller-wrapper.py 16

          • librenms /nre/librenms/alerts.php >> /dev/null 2>&1
            */5 * * * * librenms /nre/librenms/poll-billing.php >> /dev/null 2>&1
            01 * * * * librenms /nre/librenms/billing-calculate.php >> /dev/null 2>&1
            */5 * * * * librenms /nre/librenms/check-services.php >> /dev/null 2>&1

Daily maintenance script. DO NOT DISABLE!

If you want to modify updates:

Switch to monthly stable release: https://docs.librenms.org/General/Releases/

Disable updates: https://docs.librenms.org/General/Updating/

15 0 * * * librenms /nre/librenms/daily.sh >> /dev/null 2>&1

We got everything working. Ended up that our cron just screwed with a lot of things. Also had a random python issue. We are good to go!