Skip to content
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

1 Minute Polling #211

Open
Valdri opened this issue Jun 30, 2021 · 3 comments
Open

1 Minute Polling #211

Valdri opened this issue Jun 30, 2021 · 3 comments

Comments

@Valdri
Copy link

Valdri commented Jun 30, 2021

How do I change cron entry for poller-wrapper.py in docker install?

@kajset
Copy link

kajset commented Jul 28, 2021

I would like to chime in as well, we would like to also use Fast Ping on our LibreNMS setup, we run the Docker image on 21.6.0.
Currently I have got it working in a test environment by following the documentation: LibreNMS - Fast up/down checking

  1. Stop the RRDCached container
  2. Add PHP config <?php $config['ping_rrd_step'] = 60; to ./librenms/config/fastping.php
  3. Run ./scripts/rrdstep.php -h all from within the LibreNMS container
  4. Add the line * * * * * librenms /opt/librenms/ping.php >> /dev/null 2>&1 to /opt/librenms/librenms.nonroot.cron

This works in our testing environment, though modifying the files within the LibreNMS container isn't persistent.
@crazy-max how would we go about configuring the cron entries in a persistent way?

Preferrably we would be able to access the cron files through the ./librenms:/data volume mapping?

If there is any way I could help please let me know.

@hugalafutro
Copy link

hugalafutro commented Feb 3, 2022

I am the great Post Necromancer and I been running 1min polling that survives container updates; without editing any files in docker or outside of it; for about a year now like so:

Go to http://[your librenms]/poller/settings
Click the Advanced Toggle in upper right to see all options

Mine looks like this (note the changed values not pertaining to workers):
image

Go to http://[your librenms]/settings/poller/rrdtool

Mine looks like this (note I have rrdcached disabled, YMMV):
image

On machine where librenms runs go to terminal and run docker exec -it librenms bash, in the new bash prompt that comes up run ./scripts/rrdstep.php -h all and let it finish (will take some time), then type exit. You only need to do this once (or more precisely every time you change the interval).

@Olen
Copy link

Olen commented Oct 18, 2022

It would be nice if the last step was run automatically when the interval is changed.
Also, you might need to restart the dispatcher container if you rune that.
Other than that, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants