Extended agent polling to collect all available SNMP data during regular polls, not just sensors and interfaces. This ensures data stays current and reduces reliance on periodic discovery runs. Changes: - Added polling queries for: neighbors (LLDP/CDP), ARP tables, MAC tables, IP addresses, HOST-RESOURCES processors and storage - Process additional data using Replay adapter pattern to reuse existing parsing logic from discovery modules - Made discovery helper functions public for reuse in polling context: save_neighbors/2, save_arp_entries/3, sync_ip_addresses/2, sync_processors/2, sync_storage/2 - Optimized by fetching interfaces once and reusing across operations - Fixed compilation warnings by using proper guard syntax (list != []) Technical details: - Detection threshold: polls with more OIDs than sensors+interfaces are processed for additional data - Background processing: spawns async process to avoid blocking metric recording - Replay adapter: allows reusing discovery parsing logic without re-querying SNMP device |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| live | ||
| plugs | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||