Add AdGuard Home snmp extend - #629
Merged
Merged
Conversation
Queries the AdGuard Home REST API (/control/status, /control/stats) and outputs LibreNMS application JSON v1: query/block counters, average processing time, and running/protection state. Config (URL + web UI credentials) lives in /etc/snmp/adguard.json.
Each poll makes two HTTP calls, so 10s each could overrun typical SNMP timeouts. Document that the SNMP timeout must exceed 2 * timeout.
3 tasks
VVelox
requested changes
Aug 18, 2026
Collaborator
|
Looks good. If you could get gzip+base64 added, that would be great. :) |
Some net-snmp snmpd versions mangle raw JSON in extend output. LibreNMS json_app_get already auto-detects and decodes this.
Contributor
Author
|
done, gzip+base64 in output() |
Collaborator
|
Awesome, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SNMP extend for AdGuard Home.
Python 3, stdlib only. Reads
/etc/snmp/adguard.json(API URL + web UI credentials), queries/control/statusand/control/stats, and prints LibreNMS application JSON v1.Extend name must be
adguard. Stats are AdGuard's rolling window (24h by default), not monotonic counters. Default HTTP timeout is 5s per call (two calls per poll); the SNMP timeout must exceed2 * timeout.Companion LibreNMS application PR: librenms/librenms#20339