jarischaefer / docker-librenms

Docker image for LibreNMS
MIT License
115 stars 37 forks source link

With Weathermap Plugin Enabled - The Cronjob doesn't appear to run #121

Closed davis-sean closed 3 years ago

davis-sean commented 3 years ago

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.

jarischaefer commented 3 years ago

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):

  1. docker exec -it librenms bash
  2. su librenms
  3. source /etc/librenms_environment
  4. /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?

davis-sean commented 3 years ago

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):

  1. docker exec -it librenms bash
  2. su librenms
  3. source /etc/librenms_environment
  4. /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