mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Don't delete skipped ports when using selected polling Improve output of port polling module. Update ifOperStatus and ifAdminStatus even when skipping. Warning! causes a semantic change where ifAdminStatus_prev and ifOperStatus_prev are updated every poll, so they will only be mismatched for one poll. This could cause alerts to behave differently. Add an optimization if less than 10% of the ports are disabled (or less than 5), walk the base oids. Time improvement on test device Full: 12s, Selective: 8s, Optimized 4s. (no disabled ports on device, many down) Another test device.  DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [ ] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`