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
Scripts being restored from cache, can't update
Moderators: Developers, Moderators
Re: Scripts being restored from cache, can't update
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Scripts being restored from cache, can't update
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.
Who is online
Users browsing this forum: No registered users and 4 guests