New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic polling on docker images not working #217
Comments
So, you didn't use docker-compose to deploy the containers? Looks like you are missing at least a poller container. |
I have a similar issue. I am new to librenms so I'm sure the issue is on my side. I have followed instructions and have a docker image up. I have only deployed 1 mysql container, and 1 librenms container. No sidecars or additional services as everything looked to be options and I am simply testing. I can successfully add a device, but no files ever appear in /data/rrd/x.x.x.x directories. If I connect to the console and manually execute poller.php I do then get some files to appear in the rrd directory. Discovery works and all my devices show up with some basemetric, even show the device logos correctly. Occasionally I see a pop-up in the gui letting me know some of my devices have not been polled in the last 15 minutes and when I look at the list of devices, it is all devices I have added. bash-5.1$ ./validate.php
[OK] Installed from the official Docker image; no Composer required |
Same issue using the normal poller, I can run it manually and my devices get polled, it just doesn't happen automatically. Is there any solution for this? It makes the current container unusable which really stinks. |
It is a requirement you install the dispatcher sidecar, otherwise you have no polling. |
So the dispatcher sidecar is not optional? It seems to suggest it is, and if I run the script manually it polls, so is there just no cron polling at all? The documentation says "Only used if you enable and run a sidecar dispatcher container" which seems to suggest its optional. If I run that dispatcher sidecar does that mean I also have to run the REDIS and MEMCACHE containers? I wish the documentation were more clear. |
@gwhipie |
@eoprede thanks for your help. So to get it all working properly, I only need the following containers? librenms Your advice is much appreciated |
@gwhipie I wish I knew the "right" answer, I am just playing around with it right now. As far as I can tell, having these 4 containers will be sufficient to poll the devices and store data, I am not sure about the rest. |
REDIS is not required if only using one poller and MEMCACHE is never required for the docker container. Documentation improvements would be great 👍 |
I have the same problem. I can see the dispatcher docker instance restarting over and over again but doing nothing. Manual polling using poller-wrapper works in both the librenms and librenms-dispatcher instances. |
While REDIS may not be a requirement for a single poller, per se, the dispatcher sidecar container won't start unless you have REDIS_HOST defined. Just setting it to localhost (127.0.0.1) seems to be enough to make it start, but I haven't actually managed to get polling to work, even with the dispatcher container up and running. |
@selstam Hi, make sure you have |
Same problem (sort of). I used the example docker compose with the exception that I excluded mariadb (as its cannot be fetched for my rpi) and configured it to fetch from a normal maria instance not running in a container. By default I could get the dispatcher to fetch data just fine however it does not in my system update any of the graphs making it (for my purpose) useless. For now as a workaround I have added the poller inside the main librenms container and that works. However, if possible it would be nice if the dispatcher would work. Is there any information I can help provide to help track down this issue? Also before tinkering and just reading the documentation I too was under the impression that the dispatcher was optional so the doc really should be clarified. |
I also ended up here because the documentation said that the dispatch sidecar and redis services where optional, when in effect they are required to have a usable librenms service. Looks like the documentation is still lacking important installation instructions |
Behaviour
No poller after fresh install
Steps to reproduce this issue
Expected behaviour
Run out of box. Add autodiscovery network, add device, configure and forget.
Add automatic poller, or just info how to set. I didnt find out any info on github wiki
Actual behaviour
Configuration
docker --version
) : Synlogy package 20.10.3.1233 - Docker version 20.10.3, build b455053docker-compose --version
) : docker-compose version 1.28.5, build 324b023auname -a
) : Linux nas 4.4.180+ #41890 SMP Fri Jun 25 02:37:14 CST 2021 x86_64 GNU/Linux synology_geminilake_1520+docker-compose.yml
,.env
, ... this is exported config from synology docker packageDocker info
Logs
The text was updated successfully, but these errors were encountered: