Scripts being restored from cache, can't update

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

Moderators: Developers, Moderators

Post Reply
sbotnick
Posts: 38
Joined: Tue Sep 10, 2019 12:55 am

Scripts being restored from cache, can't update

Post by sbotnick »

Hello,

Cacti v1.2.17 remote poller on RHEL 8, main poller host is same.

I've got custom scripts for acquiring data in my system and I edited one of them and it gets overwritten every five minutes. This is a sample of the log entries I see:
I update file, get this entry:
2021/06/05 01:15:02 - REPLICATE INFO: Updating '/usr/share/cacti/scripts/custom/getData.pl' from Cache!

I update the file again and it gets overwritten:
2021/06/05 01:20:02 - REPLICATE INFO: Updating '/usr/share/cacti/scripts/custom/getData.pl' from Cache!

I tried rebuilding the poller cache to no avail. What is causing this and how do I stop it?

TIA
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Scripts being restored from cache, can't update

Post by netniV »

So, the scripts are placed into poller_resource_cache by update_resource_cache() in lib/poller.php which then is replicated to the remote servers. What you can do is set disable_cache_replication and then they shouldn't get replace with the master server versions. just don't forget to turn it back on!
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
sbotnick
Posts: 38
Joined: Tue Sep 10, 2019 12:55 am

Re: Scripts being restored from cache, can't update

Post by sbotnick »

Thanks for the quick response. I must have missed the part in documentation about script synchronization with main/remote systems. When using it as designed it works as designed, now that I understand, problem solved.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests