Closed davis-sean closed 3 years ago
You can check whether the cronjob is running by using docker logs
. There should be lines containing /opt/librenms/html/plugins/Weathermap/map-poller.php
.
Follow these steps to enter the container, run the poller and check for errors (warnings regarding deprecated functions should be ignored):
docker exec -it librenms bash
su librenms
source /etc/librenms_environment
/opt/librenms/html/plugins/Weathermap/map-poller.php
I added two nodes and two links for my test. I was able to see more than 0.00%
usage only after having configured data sources (interfaces) for both links (maybe just a coincidence). What steps did you take to configure your map? Does a bare minimum configuration work?
Thank you for responding,
Manually running the weathermap does produce a Weathermap, which looks correct.
The issue appeared to be with the cron configuration in the latest version I pulled. No logs were generated for the Weathermap poller as it looked like the cron entry for it wasn't created.
I redeployed the docker image and it is now working as expected.
Thank you for creating this image.
On Wed, Sep 23, 2020 at 3:51 PM Jari Schäfer notifications@github.com wrote:
Checking the cronjob
You can check whether the cronjob is running by using docker logs. There should be lines containing /opt/librenms/html/plugins/Weathermap/map-poller.php.
Executing the poller manually
Follow these steps to enter the container, run the poller and check for errors (warnings regarding deprecated functions should be ignored):
- docker exec -it librenms bash
- su librenms
- source /etc/librenms_environment
- /opt/librenms/html/plugins/Weathermap/map-poller.php
Configuring the Weathermap
I added two nodes and two links for my test. I was able to see more than 0.00% usage only after having configured data sources (interfaces) for both links (maybe just a coincidence). What steps did you take to configure your map? Does a bare minimum configuration work?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jarischaefer/docker-librenms/issues/121#issuecomment-698012025, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARBVA3VJ5K2LXZYUXTRNKKTSHJ3YRANCNFSM4RSIV66Q .
--
Sean A. Davis sadavis@davissystem.net
With the Weathermap plugin enabled: Environment Variables: WEATHERMAP_ENABLE = true and WEATHERMAP_CRON = /5 * The ability to create and edit maps works, although the cronjob for Weathermap never appears to run.