Replies: 14 comments
-
Hey there, Nice idea. I've implemented a simple SNMP plugin (not much configuration possible, but IMO good enough for version 1). You can check/test it if you'd like in this image:
Cheers, |
Beta Was this translation helpful? Give feedback.
-
Nice thanks. I've spun it up. The community string '-c' needs to be configurable. Default is "public" but many will use a custom string for security. Also this is only for snmp v2. V3 supports a more sophisticated secure auth (user/password) But v2 is very common and should suffice for initial testing. |
Beta Was this translation helpful? Give feedback.
-
Cool, thanks for checking. I've changed the configuration so the full command can be customized: You can try to pull the latest dev image to test if interested: |
Beta Was this translation helpful? Give feedback.
-
Giving this a try now. Will report results shortly. |
Beta Was this translation helpful? Give feedback.
-
Seems to be stripping spaces out of the snmpwalk command. The GUI has
But log reports
|
Beta Was this translation helpful? Give feedback.
-
Thanks for checking, should be fixed in this build: |
Beta Was this translation helpful? Give feedback.
-
Confirming the scan is now working. Not sure if it's related but the maintenance page is very lag/unresponsive in this release. |
Beta Was this translation helpful? Give feedback.
-
Good to know it's fixed :) Re slow Maintenance section - try deleting logs and set the |
Beta Was this translation helpful? Give feedback.
-
Also, if you can, let me know if the description in this readme is sufficient: https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins/snmp_discovery Thanks! |
Beta Was this translation helpful? Give feedback.
-
PR submitted. |
Beta Was this translation helpful? Give feedback.
-
With the SNMP plugin alone, will that maintain presence? I've set to run every 15 minutes, but all devices are marked offline. Apologies if I have overlooked something obvious. |
Beta Was this translation helpful? Give feedback.
-
Hey! Thanks for the PR! The presence is only maintained via arp-scan and PiHole right now if I remember correctly. Does snmp provide information on the device state? I couldn't tell from the output itself. |
Beta Was this translation helpful? Give feedback.
-
ARP table timeout varies between devices, but on IOS it defaults to 4 hours. It can be reduced with a command. Windows is shorter < 1hr. Varies with release. Most managed Switches have a per port CAM table that only contains MACs for 5 minutes. So that can be used to detect devices very efficiently too via SNMP. Much faster than ARPscan. I'll do some investigation and provide some sample output. |
Beta Was this translation helpful? Give feedback.
-
Closing as released / no activity |
Beta Was this translation helpful? Give feedback.
-
Hi,
Nice work on this docker release.
Have you considered a simple snmp based discovery plugin, using snmpwalk output.
This will return the arp table of a RFC1213 compliant router or switch very efficiently.
It also works around the issues of multiple vlan/subnets.
ref: https://networkengineering.stackexchange.com/questions/2900/using-snmp-to-retrieve-the-arp-and-mac-address-tables-from-a-switch
ie.
snmpwalk -v 2c -c public -OXsq routerip .1.3.6.1.2.1.3.1.1.2
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.8.1 "2C 4F 52 1F 9E 74 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.8.2 "02 42 C0 A8 08 02 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.8.4 "02 42 C0 A8 08 04 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.8.5 "02 42 C0 A8 08 05 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.8.6 "02 42 C0 A8 08 06 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.8.7 "02 42 C0 A8 08 07 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.9.1 "02 42 C0 A8 08 08 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.9.2 "02 42 C0 A8 08 09 "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.9.3 "02 42 C0 A8 08 0A "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.10.1 "02 42 C0 A8 08 0B "
iso.3.6.1.2.1.3.1.1.2.20.1.192.168.10.1 "02 42 C0 A8 08 0C "
Beta Was this translation helpful? Give feedback.
All reactions