Closed pabloalcantara closed 4 months ago
Thanks a lot for the detailed report @pabloalcantara !
This seems to be a bug - not sure why, but the output of the SNMP command has changed from iso....
to mib...
. I removed the check for iso...
.
This should be available in the next release. Please have a look at the netalertx-dev
docker image, in about 15 minutes (or after the last action finishes) from now.
Make sure you refresh your browser cache - and click the 🔄 refresh button in the top right corner.
It would be great if you could test this (backup everything first or use a new container) on your end by switching to the above image and letting me know if the issue was resolved/the new feature is working.
Thanks in advance, j
Thanks, it worked as expected
Em qua., 29 de mai. de 2024 às 04:09, jokob-sk @.***> escreveu:
Thanks a lot for the detailed report @pabloalcantara https://github.com/pabloalcantara !
This seems to be a bug - not sure why, but the output of the SNMP command has changed from iso.... to mib.... I removed the check for iso....
This should be available in the next release. Please have a look at the netalertx-dev docker image, in about 15 minutes (or after the last action finishes https://github.com/jokob-sk/NetAlertX/actions) from now.
Make sure you refresh your browser cache - and click the 🔄 refresh button in the top right corner.
It would be great if you could test this (backup everything first or use a new container) on your end by switching to the above image and letting me know if the issue was resolved/the new feature is working.
Thanks in advance, j
— Reply to this email directly, view it on GitHub https://github.com/jokob-sk/NetAlertX/issues/690#issuecomment-2136691420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHBTSDVJ72EWQG5Q3ZNYATZEV5JXAVCNFSM6AAAAABIOCAXBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGY4TCNBSGA . You are receiving this because you were mentioned.Message ID: @.***>
-- Atenciosamente, Pablo Alcântara
Analista de Tecnologia da Informação, Comunicação e segurança
closing -> releasing in ~10min
Is there an existing issue for this?
Current Behavior
I´m trying to use the snmp discovery, but it´s no working. The snmpwalk works perfectly (see the logs) but nothing is added or marked as online
Expected Behavior
Add new and mark as online devices found by snmp plugin
Steps To Reproduce
1 - Settings:
app.conf
docker-compose.yml
What branch are you running?
Production
app.log
00:06:21 [2024-05-29 00:06:21-03:00] START Run: SNMPDSC 00:06:21 [Plugins] setTyp: list 00:06:21 [Plugin utils] Flattening the below array 00:06:21 ['snmpwalk -v 2c -c XXXXXXXXX -OXsq 192.168.27.1 .1.3.6.1.2.1.3.1.1.2'] 00:06:21 [Plugin utils] isinstance(arr, list) : False | isinstance(arr, str) : True 00:06:21 [Plugins] Resolved value: snmpwalk -v 2c -c XXXXXXXXX -OXsq 192.168.27.1 .1.3.6.1.2.1.3.1.1.2 00:06:21 [Plugins] Convert to Base64: False 00:06:21 [Plugins] Timeout: 30 00:06:21 [Plugin utils] Pre-Resolved CMD: python3/app/front/plugins/snmp_discovery/script.pyrouters={s-quote}{routers}{s-quote} 00:06:21 [Plugins] Executing: python3 /app/front/plugins/snmp_discovery/script.py routers={s-quote}{routers}{s-quote} 00:06:21 [Plugins] Resolved : ['python3', '/app/front/plugins/snmp_discovery/script.py', "routers='snmpwalk -v 2c -c XXXXXXXXX -OXsq 192.168.27.1 .1.3.6.1.2.1.3.1.1.2'"] 00:06:21 [SNMPDSC] In script 00:06:21 [SNMPDSC] Router snmpwalk command: snmpwalk -v 2c -c XXXXXXXXX -OXsq 192.168.27.1 .1.3.6.1.2.1.3.1.1.2 00:06:21 [SNMPDSC] output: mib-2.3.1.1.2.10.1.192.168.24.221 "BC 24 11 56 E2 87 " mib-2.3.1.1.2.10.1.192.168.27.83 "4C EB D6 01 37 FF " mib-2.3.1.1.2.10.1.192.168.27.85 "E8 DB 84 49 C0 4F " mib-2.3.1.1.2.10.1.192.168.27.100 "D0 C2 4E 28 84 D6 " mib-2.3.1.1.2.10.1.192.168.27.220 "BC 24 11 6C 38 54 " mib-2.3.1.1.2.10.1.192.168.27.221 "BC 24 11 56 E2 87 " mib-2.3.1.1.2.10.1.192.168.27.230 "BC 24 11 8C 50 C2 " mib-2.3.1.1.2.10.1.192.168.27.231 "BC 24 11 2A 69 60 " mib-2.3.1.1.2.10.1.192.168.27.254 "BC 24 11 9F A5 48 "
00:06:21 [SNMPDSC] Entries found: 0 00:06:21 [Plugins] No output received from the plugin SNMPDSC - enable LOG_LEVEL=debug and check logs 00:06:21 [2024-05-29 00:06:21-03:00] END Run: SNMPDSC 00:06:21 [API] Update API starting
Debug enabled