[SOLVED] RRD update issue

It seems that there is an issue with datasets name longer than 20chars since 1-2 days (even that after looking into the code it seems that is truncated to 20chars everywhere).
Example from mailcow-postfix app:

  • last dataset name is recipienthostsdomains (and it seems to be causing the issues)
  • when running poller in debug I get the following:

Load poller module applications

SQL[SELECT * FROM applications WHERE device_id = ? [67] 0.54ms]

mailcow-postfix
SNMP[’/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘’ ‘-Oqv’ ‘-m’ ‘NET-SNMP-EXTEND-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell’ ‘udp:<<>>:161’ ‘nsExtendOutputFull.15.109.97.105.108.99.111.119.45.112.111.115.116.102.105.120’]
{“data”:{“received”:“1”,“delivered”:“1”,“forwarded”:“0”,“deferred”:“0”,“bounced”:“0”,“rejected”:“0”,“rejectwarnings”:“0”,“held”:“0”,“discarded”:“0”,“bytesreceived”:“78969”,“bytesdelivered”:“78969”,“senders”:“1”,“sendinghostsdomains”:“1”,“recipients”:“1”,“recipienthostsdomains”:“1”},“error”:“0”,“errorString”:"",“version”:“1”}

RRD warning: unused data sent recipienthostsdomains
RRD[update /opt/librenms/rrd/<<>>/app-mailcow-postfix-98.rrd N:1:1:0:0:0:0:0:0:0:78969:78969:1:1:1]
RRDtool Output: OK u:0.00 s:0.01 r:1.45
SQL[UPDATE applications set app_state=?,app_status=?,timestamp=NOW() WHERE app_id = ? [“OK”,"",98] 2.69ms]

SQL[SELECT * FROM application_metrics WHERE app_id=? [98] 0.65ms]

: …

RRD[update /opt/librenms/rrd/<<>>/app-os-updates-97.rrd N:0]
RRDtool Output: ERROR: /opt/librenms/rrd/<<>>/app-mailcow-postfix-98.rrd: expected 15 data source readings (got 14) from N
SQL[UPDATE applications set app_state=?,app_status=?,timestamp=NOW() WHERE app_id = ? [“OK”,“0”,97] 2.61ms]

If the dataset name is changed to be under 20chars everything is running correctly

It started working again after this:
Fix issue when field name is longer than allowed (#11349)

1 Like