[collectd] rrdc_update failed with status -1

Cyril Feraudet collectd at feraudet.com
Mon Mar 26 22:08:25 CEST 2012


Have look to "-P" option of rrdcached about permission.

I've debugged some issue with rrdcached using strace to see entire error message sent to collectd.

Cyril

On 26 mars 2012, at 22:01, Stian Øvrevåge wrote:

> It always works with sockets and never works with network.
> 
> So I don't think there is an error with the rrd or polling itself.
> 
> Also; tcpdump shows that collectd with connect to rrdcached but does
> NOT send ANY
> packets when updating and returning thousands of errors. I believe
> that the connection handled by collectd is somewhat faulty... I can
> connect to rrdcached by telnet and issue commands without problem...
> 
> Brgds,
> Stian Øvrevåge
> 
> On Mon, Mar 26, 2012 at 9:57 PM, Cyril Feraudet <collectd at feraudet.com> wrote:
>> Hi,
>> 
>> Many issue :
>> - Your rrd was updated before with a value in the future : rrdtool info /opt/collectd/var/lib/collectd/rrd/no-kvh020-sw01/snmp/if_drop_discard_err_que-Vlan1309.rrd to check las update
>> - Host polling no-kvh020-sw01 has his time in the past.
>> - More than one no-kvh020-sw01 configured
>> - ...
>> 
>> Cyril
>> On 26 mars 2012, at 21:00, Stian Øvrevåge wrote:
>> 
>>> Hi,
>>> 
>>> When trying to use DaemonAddress "127.0.0.1:42217" I'm receiving
>>> 
>>> Mar 26 20:52:25 collectd-new collectd[13065]: Filter subsystem:
>>> Built-in target `write': Dispatching value to all write plugins failed
>>> with status -1.
>>> Mar 26 20:52:25 collectd-new collectd[13065]: rrdcached plugin:
>>> rrdc_update (/opt/collectd/var/lib/collectd/rrd/no-kvh020-sw01/snmp/if_drop_discard_err_que-Vlan1309.rrd,
>>> [1332787945:0:0:0:0], 1) failed with status -1.
>>> 
>>> For ALL updates.
>>> 
>>> This is my rrdcached plugin config:
>>> 
>>> <Plugin "rrdcached">
>>>  #DaemonAddress "unix:/tmp/rrdcached.sock"
>>>  DaemonAddress "127.0.0.1:42217"
>>>  DataDir "/opt/collectd/var/lib/collectd/rrd"
>>>  #CreateFiles true
>>>  #CollectStatistics true
>>>  StepSize 30
>>>  HeartBeat 600
>>>  RRaTimespan 3600
>>>  RRaTimespan 86400
>>>  RRaTimespan 604800
>>>  RRaTimespan 2678400
>>>  RRaTimespan 166224000
>>> </Plugin>
>>> 
>>> I run rrdcached with "/opt/rrdtool-1.4.7/bin/rrdcached -f 7200 -w 3600
>>> -z 900 -b /opt/collectd/var/lib/collectd/rrd/ -l 127.0.0.1 -l
>>> unix:/tmp/rrdcached.sock"
>>> 
>>> The reason I want to test using network sockets is that the unix
>>> sockets seem to cause thousands of disk reads and writes according to
>>> VMware disk statistics.
>>> 
>>> A tcpdump with ascii decode only shows this: (No data? And statistics
>>> which I thought I disabled?)
>>> 
>>> 20:56:52.891588 IP localhost.42381 > localhost.42217: Flags [P.], seq
>>> 385950220:385950226, ack 4144176433, win 349, options [nop,nop,TS val
>>> 133288705 ecr 133281205], length 6
>>> E..:x. at .@................."....1...].......
>>> ........STATS
>>> 
>>> 20:56:52.891734 IP localhost.42217 > localhost.42381: Flags [P.], seq
>>> 1:21, ack 6, win 256, options [nop,nop,TS val 133288705 ecr
>>> 133288705], length 20
>>> ...............1.."......<.....
>>> ........9 Statistics follow
>>> 
>>> 20:56:52.891760 IP localhost.42381 > localhost.42217: Flags [.], ack
>>> 21, win 349, options [nop,nop,TS val 133288705 ecr 133288705], length
>>> 0
>>> E..4x. at .@................."....E...])......
>>> ........
>>> 20:56:52.891777 IP localhost.42217 > localhost.42381: Flags [P.], seq
>>> 21:176, ack 6, win 256, options [nop,nop,TS val 133288705 ecr
>>> 133288705], length 155
>>> E...C. at .@..................E.."............
>>> ........QueueLength: 0
>>> UpdatesReceived: 0
>>> FlushesReceived: 0
>>> UpdatesWritten: 0
>>> DataSetsWritten: 0
>>> TreeNodesNumber: 0
>>> TreeDepth: 0
>>> JournalBytes: 0
>>> JournalRotate: 0
>>> 
>>> 20:56:52.891783 IP localhost.42381 > localhost.42217: Flags [.], ack
>>> 176, win 357, options [nop,nop,TS val 133288705 ecr 133288705], length
>>> 0
>>> E..4x. at .@................."........e)......
>>> ........
>>> 
>>> 
>>> Regards,
>>> Stian Øvrevåge
>>> 
>>> _______________________________________________
>>> collectd mailing list
>>> collectd at verplant.org
>>> http://mailman.verplant.org/listinfo/collectd
>> 
>> 
>> _______________________________________________
>> collectd mailing list
>> collectd at verplant.org
>> http://mailman.verplant.org/listinfo/collectd




More information about the collectd mailing list