[SOLVED] RRD files no longer created on device rrd folder

Hi everyone,

Since an update, (but i don’t know which), RRD files are not longer created in /opt/librenms/rrd/ folder and graph are in "Error Drawing Graph’ on the web UI.

I have suspected a right issue on the rrd folder, but evrything seems to be ok.
This folder is owned by librenms user and group.
The http user is also in librenms group.

This problem concern only devices added recently. All the old devices are updated correctly.
On the rrd/ folder, a folder is created with the device name, but nothing is created inside.

If I run a : ./poller.php -h cbv-pa7-a9k1-pe-01 -r -f -d

In the output I see lines like

uptime netstat_ip netstat_ip_frag netstat_tcp netstat_udp netstat_icmp netstat_icmp_info netstat_snmp netstat_snmp_pkt netstat_ip_forward ipsystemstats_ipv6 ipsystemstats_ipv6_frag RRD[create /opt/librenms/rrd/cisco-a9k1/poller-perf.rrd --step  DS:poller:GAUGE::0:U  RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:1440 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440  RRA:MIN:0.5:1:720 RRA:MIN:0.5:6:1440     RRA:MIN:0.5:24:775     RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:720 RRA:MAX:0.5:6:1440     RRA:MAX:0.5:24:775     RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:1440 ]
[RRD Disabled]RRD[update /opt/librenms/rrd/cisco-a9k1/poller-perf.rrd N:121.8]
[RRD Disabled]RRD[create /opt/librenms/rrd/cisco-a9k1/ping-perf.rrd --step  DS:ping:GAUGE::0:65535  RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:1440 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440  RRA:MIN:0.5:1:720 RRA:MIN:0.5:6:1440     RRA:MIN:0.5:24:775     RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:720 RRA:MAX:0.5:6:1440     RRA:MAX:0.5:24:775     RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:1440 ]
[RRD Disabled]RRD[update /opt/librenms/rrd/cisco-a9k1/ping-perf.rrd N:1.52]
[RRD Disabled]Polled in 121.8 seconds

I don’t know how understand the RRD Disabled line.
It say : create /opt/librenms/rrd/cisco-a9k1/poller-perf.rrd but nothing is created.

If I take the RRD file of an other (similar) device, and copy it to empty folder, the corresponding graph works.

Thank a lot for your advices

Output of validate.php on Debian 8 amd64

Component Version
LibreNMS b6e18db766bf15bf576d95d569d260c106efbdf6
DB Schema 190
PHP 5.6.30-0+deb8u1
MySQL 10.0.30-MariaDB-0+deb8u2
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2.1

DO NOT DELETE THIS INFORMATION.

Please read this information carefully.

GitHub issues is for bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our irc channel ##librenms on freenode to ask questions or our community site.
If you have a feature request please post this on our community site.

Please confirm each of the sections below by putting an x in the box like [x].

  • [x] Is your install up to date? Updating your install
    Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.
  • [x] Please include all of the information between the ==================================== section of ./validate.php which you can run from the cli.
  • [ ] Please provide ALL info asked for here.
  • [x] Please provide as much detail as possible.
  • [x] Please do NOT post more than 10 lines of debug information here, use a pastebin service or GitHub Gists.

Can you post the full output of ./validate.php please.

RRD Disabled is because you’ve passed -r to the poller command, remove that and it will actually run through correctly unless something else is wrong - validate will tell us.

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

Component Version
LibreNMS b6e18db766bf15bf576d95d569d260c106efbdf6
DB Schema 190
PHP 5.6.30-0+deb8u1
MySQL 10.0.30-MariaDB-0+deb8u2
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2.1

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

[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes.
You may have performance issues. Check your poll log and see: http://docs.librenms.org/Support/Performance/
[ list of my devices here ]

Ok, run ./poller.php -h HOSTNAME -d -f and pastebin the output.

Replace HOSTNAME with a devices hostname,

Output is too big, do you need just a specific parts of this output ?
If you really need all the file, I will cut it in multiple files …

Do ./poller.php -h HOSTNAME -d -f -m os

Here the output :

https://pastebin.com/R468ugDf

Regards

Does this file exist: /opt/librenms/rrd/cbv-pa7-a9k1-pe-01/uptime.rrd

?

If not please run rrdtool create /opt/librenms/rrd/cbv-pa7-a9k1-pe-01/uptime.rrd --step DS:uptime:GAUGE::0:U RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:1440 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:1:720 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:24:775 RRA:MIN:0.5:288:797 RRA:MAX:0.5:1:720 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 RRA:LAST:0.5:1:1440

If it does please run: rrdtool update /opt/librenms/rrd/cbv-pa7-a9k1-pe-01/uptime.rrd N:15903

No this folder is empty.
I will run this commands right now

The output return :

ERROR: step size should be no less than one second

Go to /settings/sub=external/ in your webui, click rrdtool. What value is step set to? If it’s empty and you run poller every 5 minutes (default) put 300 in that box and 600 in heartbeat value.

Ok all the values was emty.
I set 300 and 600 as advised.

The “Path to rrdtool binary” is empty too.

Thanks a lot

In fact, when I set this values, there is no registration of them.
A popup show
ERROR : No config item

Run mysql -u librenms -p librenms < sql-schema/167.sql and type the librenms users mysql password.

If you haven’t actually used the install yet you might be better off deleting the database and starting again:

DROP DATABASE `librenms`;
CREATE DATABASE `librenms`;
php build-base.php

Clap Clap !!

Graphs are here ! just by reimporting the 167.sql dump.
RRD data are also in database ?

Really really thanks !!!

Some rrd data is in the db but not all

I would also like to say that this helped me with my problem as well. Thanks laf and to nic0 for creating this post.

Hi,

If ERROR: rrdcached: rrd_fetch_r failed: opening ‘/opt/librenms/rrd/10.0.1.15/customoid-24.rrd’: No such file or directory - there is no file in directory. What should check, please?

But I found newly created - customoid-Available_IPs_10.0.1.0_24.rrd
Thanks

SOLUTION: name of Custom OID is limited. So check first the name.