Multiple updates of one and the same rrd-file during one polling cycle

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

Moderators: Developers, Moderators

Post Reply
GTY71
Posts: 8
Joined: Tue Dec 06, 2022 2:55 am

Multiple updates of one and the same rrd-file during one polling cycle

Post by GTY71 »

Hi all,

I just found out, that on my cacti installation after upgrading from 1.2.10 to 1.2.24 there are some rrd-files which are updated more than once during one polling cycle - investigating further shows that these are rrds which do not belong to a certain host.

Any idea how to find out what is causing this behaviuor?

In my opinion, data should be gathered and afterwards the rrd should be updated with all data only once a cycle.

Cheers
Markus
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Multiple updates of one and the same rrd-file during one polling cycle

Post by macan »

check cacti log - stats, warnings and errors
Let the Cacti grow!
GTY71
Posts: 8
Joined: Tue Dec 06, 2022 2:55 am

Re: Multiple updates of one and the same rrd-file during one polling cycle

Post by GTY71 »

Hi,

I already checked the logs with setting DEBUG - that's why I found out, that there are always duplicate CACTI2RRD.

THe question is, why this is happening...
GTY71
Posts: 8
Joined: Tue Dec 06, 2022 2:55 am

Re: Multiple updates of one and the same rrd-file during one polling cycle

Post by GTY71 »

Doing some more investigation and trying a few things I ended up with setting the processes of the poller to 1.
For me it seems that if you use more processes per poller and have some DSs not belonging to any host each process does not know what the other process is doing and therefor the same script for collecting data and thus updating RRDs is sometimes executed several times...

Maybe anyone who has faced the same issue and can reproduce this issue.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Multiple updates of one and the same rrd-file during one polling cycle

Post by macan »

Please show result of this query:
SELECT local_data_id, GROUP_CONCAT(DISTINCT rrd_num) AS pattern, COUNT(*) AS cpattern
FROM poller_item
GROUP BY local_data_id
HAVING pattern != cpattern;
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests