Open ziodona85 opened 3 years ago
I think the problems you're facing is because the volume mount - "./librenms:/data" normally shares data between the different docker containers. My guess is that there are certain variables that are stored in files rather than the database. For those variables you would need to copy a config file to the other machines.
Having said that, I looked at the code and the poller frequency seemed to be a variable that is stored in the database. Maybe things have changed since you first posted your question, or maybe I'm barking up the wrong tree.
I'm about to go down the same path you are, splitting my pollers into separate machines.
Hi, i have created a cluster of 5 server with docker for test with casual ip addresses. It's a sort of distribuited poller project. The server are:
Server 1 (10.63.132.30)
Docker-compose.yml
Server 2 (10.63.132.33)
Server 3 (10.63.132.34)
Server 4 (10.63.132.35)
Server 5 (10.63.132.37)
They works correctly with docker-compose rrdcached example (only in the server 3 i have created also the container librenms, i don't know why but it doesn't work without it. However in this mode works). All server point to Server 1 for rrdcached, redis and at server 2 for mariadb. For oxidized i have configured manually the config.php file in the server 1 and works correctly.
In Librenms i can see the 3 dispatcher in the menu' Poller Cluster Health GUI. https://ibb.co/zHMhSpb I would want to modify parameters of these 3 pollers from poller settings but it doesn't work. https://ibb.co/JcyGNHL The parameters that i can change are the number of workers, ping and whatchdog enable. If i change the number of workers i can see the new number in the Poller Cluster Health. If i try to modify in advanced mode other option they aren't applied to 3 poller. For example i have Poller Frequency (Seconds) 35, i woul want to reset to default 300, or 60. If i change and wait 5 minutes or i try to restart the container dispatcher, values remain the same before. If i try to change the group assegnation, the value is always General. If i change after after 5 minutes Librenms returns to old configuration. I have tried to modify php file from CLI but the problem is the same before.
Could you help me to find the problem? Or proposal for changing docker-compose files for distribution poller or config.php file?
If you can, can you tell me how to use nfsen integration, i haven't found it. My project is install another docker container with nfsen and after redirect LibreNMS configuration on it. Or another idea is install in alpine librenms container nfdump module, maybe should it work with this module?
And for last, how can i save definitely the docker containers, with php file modified?
Thanks for your help, and congratulations for your great work :).
Regards.