Graph no drawing

Hi guys,
Please help me to solve my issue. my graph can’t draw data.

./validate.php

Component Version
LibreNMS 1.50-15-gc305d2b
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.16
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Here the rrd output.

RRDTool Command

rrdtool graph /tmp/O4BRNdBaEMhniN4F --alt-autoscale-max --rigid -E --start 1554251700 --end 1554338100 --width 1075 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal DEF:outoctets=/opt/librenms/rrd/122.54.15.14/port-id6.rrd:OUTOCTETS:AVERAGE DEF:inoctets=/opt/librenms/rrd/122.54.15.14/port-id6.rrd:INOCTETS:AVERAGE DEF:outoctets_max=/opt/librenms/rrd/122.54.15.14/port-id6.rrd:OUTOCTETS:MAX DEF:inoctets_max=/opt/librenms/rrd/122.54.15.14/port-id6.rrd:INOCTETS:MAX CDEF:octets=inoctets,outoctets,+ CDEF:doutoctets=outoctets,-1,* CDEF:outbits=outoctets,8,* CDEF:outbits_max=outoctets_max,8,* CDEF:doutoctets_max=outoctets_max,-1,* CDEF:doutbits=doutoctets,8,* CDEF:doutbits_max=doutoctets_max,8,* CDEF:inbits=inoctets,8,* CDEF:inbits_max=inoctets_max,8,* VDEF:totin=inoctets,TOTAL VDEF:totout=outoctets,TOTAL VDEF:tot=octets,TOTAL CDEF:dpercentile_outn=doutbits,-1,* VDEF:dpercentile_outnp=dpercentile_outn,95,PERCENT CDEF:dpercentile_outnpn=doutbits,doutbits,-,dpercentile_outnp,-1,*,+ VDEF:dpercentile_out=dpercentile_outnpn,FIRST VDEF:percentile_in=inbits,95,PERCENT VDEF:percentile_out=outbits,95,PERCENT COMMENT:‘bps Now Ave Max 95th %\n’ AREA:inbits_max#D7FFC7: AREA:inbits#90B040: LINE:inbits#608720:‘In ’ GPRINT:inbits:LAST:%6.2lf%s GPRINT:inbits:AVERAGE:%6.2lf%s GPRINT:inbits_max:MAX:%6.2lf%s GPRINT:percentile_in:%6.2lf%s\n AREA:doutbits_max#E0E0FF: AREA:doutbits#8080C0: LINE:doutbits#606090:‘Out’ GPRINT:outbits:LAST:%6.2lf%s GPRINT:outbits:AVERAGE:%6.2lf%s GPRINT:outbits_max:MAX:%6.2lf%s GPRINT:percentile_out:%6.2lf%s\n GPRINT:tot:‘Total %6.2lf%sB’ GPRINT:totin:’(In %6.2lf%sB’ GPRINT:totout:‘Out %6.2lf%sB)\l’ LINE1:percentile_in#aa0000 LINE1:dpercentile_out#aa0000

RRDTool Output

1156x397
OK u:0.08 s:0.01 r:0.08

Please help me.

Thank you

Hi,

We need more info than that. Take a screenshot of the graph not drawing.

Is this a new install? Since when you dont have graphs? If you run ./poller.php -d -h affecteddevice do you get correct info and RRD Update? Does it happens in all graphs?

Regards,

yes! it’s new install.

./poller.php -d -h affecteddevice
LibreNMS Poller
SQL[select migration from migrations order by id desc limit 1 [] 0.35ms]

SQL[select count(*) as aggregate from migrations limit 1 [] 0.29ms]

SQL[SELECT version() [] 0.11ms]

===================================
Version info:
Commit SHA: c305d2b52013e3900e3f938d628421dfb6e40379
Commit Date: 1554330087
DB Schema: 2019_02_10_220000_add_dates_to_fdb (132)
PHP: 7.2.16
MySQL: 5.5.60-MariaDB
RRDTool: 1.4.8
SNMP: NET-SNMP 5.7.2
==================================DEBUG!
Updating os_def.cache…
Done
Starting polling run:

SQL[SELECT * FROM devices WHERE disabled = 0 AND hostname = ‘affecteddevice’ ORDER BY device_id ASC [] 0.79ms]

./poller.php affecteddevice 2019-04-04 15:20:48 - 0 devices polled in 0.249 secs
MySQL [1/0.00s]: Cell[1/0.00s] Row[-1/-0.00s] Rows[1/0.00s] Column[0/0.00s] Update[0/0.00s] Insert[0/0.00s] Delete[0/0.00s]

Replace “affecteddevice”with one of your devices

Because the graphs are red, that means the rrd files haven’t been created yet. So either your poller isn’t running, or you have something wrong with your rrd config. Are you using rrdcached?

1 Like

Hi murrant,

What should i do?

im using rrdcached.

Please help me to solve this issue…2wks still no data in my graph.

Since your using RRDcached then RRDTool must be version 1.5.5 or higher, see https://docs.librenms.org/Extensions/RRDCached/

@Chas you can use rrdcached with rrdtool < 1.5.5

What that message means is for distributed poller, and you can also run distributed poller with <1.5.5 using an NFS storage as rrd storage.

I think that message should be cleaner, as a lot of ppl confuses it…

Ahh ok thanks for explaining whoops