cacti 1.3.36 poller silently failing to gather data

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
marcmerlin
Cacti User
Posts: 86
Joined: Mon Oct 12, 2009 3:11 pm

cacti 1.3.36 poller silently failing to gather data

Post by marcmerlin »

I renamed some fields in an RRD and I'm getting silent poll errors (i.e. all data is lost and not being updated without my getting any warning at all) on one of my data inputs:

04/09/2018 10:04:04 - POLLER: Poller[1] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/house_xpl-rfxcom_27.rrd --template fmr_temp:fmr_hum:fmr_pres:in_temp2:in_hum2:in_pres2:out_temp:out_hum:rain:rain2:winddir:windavgspd:windpeakspd:spare1:spare2:spare3:spare4:spare5:spare6:spare7:spare8:spare9:spareabs1:spareabs2:spareabs3 1523293443:69.62:35:30.03:U:U:U:U:U:0:U:-141:1:4:79.88:60:30.15:U:U:U:U:U:U:U:U:U
04/09/2018 10:04:04 - SYSTEM STATS: Time:3.3983 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:2 RRDsProcessed:2

I get no error, nothing, and yet, it fails because of if I run the same rrdtool command by hand, I get:
gargamel:~# /usr/bin/rrdtool update /var/lib/cacti/rra/house_xpl-rfxcom_27.rrd --template fmr_temp:fmr_hum:fmr_pres:in_temp2:in_hum2:in_pres2:out_temp:out_hum:rain:rain2:winddir:windavgspd:windpeakspd:spare1:spare2:spare3:spare4:spare5:spare6:spare7:spare8:spare9:spareabs1:spareabs2:spareabs3 1523292782:69.44:35:30.03:U:U:U:U:U:0:U:-159:0:1:79.88:60:30.15:U:U:U:U:U:U:U:U:U
ERROR: unknown DS name 'spare1'

This is correct, there is no more spare1 in the RRD, I did rename it both in cacti and in the RRD directly (using rrdtool).
If I look in my data input method for this RRD, I see the correct fields without spare1/spare2/spare3.
I just can't find where they come from.
looking in the database, I do see that <path_rra>/house_xpl-rfxcom_27.rrd is linked to local_data_id 27 (table=data_template_data).
In table=data_template_rrd, I do see data_source_name spare1 attached to local_data_id 27

I'm confused with the new UI since I upgraded yesterday, I can't even find where house_xpl-rfxcom_27.rrd is defined in the UI, and why the data below does not match what's being polled:

http://host/graphs/data_input.php?action=edit&id=17
fmr_hum Family Room Wall Humidity Selected
fmr_pres Family Room Indoor Baro Pressure Selected
fmr_temp Family Room Wall Temperature Selected
in_hum2 in_hum2 Selected
in_pres2 in_pres2 Selected
in_temp2 in_temp2 Selected
mbr_hum mbr_hum Selected
mbr_pres mbr_pres Selected
mbr_temp mbr_temp Selected
out_hum Outdoors Shaded Humidity Selected
out_temp Outdoors Shaded Temperature Selected
rain Rain Sensor Selected
rain2 rain2 Selected
spare4 spare4 Selected
spare5 spare5 Selected
spare6 spare6 Selected
spare7 spare7 Selected
spare8 spare8 Selected
spare9 spare9 Selected
spareabs1 spareabs1 Selected
spareabs2 spareabs2 Selected
spareabs3 spareabs3 Selected
windavgspd Wind Average Speed Selected
winddir Wind Direction Selected
windpeakspd Wind Peak Speed Selected

Thanks,
Marc
marcmerlin
Cacti User
Posts: 86
Joined: Mon Oct 12, 2009 3:11 pm

Re: cacti 1.3.36 poller silently failing to gather data (sol

Post by marcmerlin »

Well, not sure if things moved around, if the names don't make sense (anymore?) and/or if the new interface is missing a backlink from Data Collection/Data Input Methods to Management/Data Sources where the RRD is actually defined and the data source names have to be renamed too.
Why those two very related things are in totally different places, with no link between them, I don't know.
Why the poller was outputting no error whatsovever when the fields didn't match and it was rejecting all data every minute, I have no idea either, but that seems very bad.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests