-
-
Notifications
You must be signed in to change notification settings - Fork 371
Closed
Labels
Docker 🐋Docker relatedDocker relatedbug 🐛Something isn't workingSomething isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.This is coming in the next release or was already released if the issue is Closed.
Description
Is there an existing issue for this?
- I have searched the existing open and closed issues and I checked the docs https://jokob-sk.github.io/NetAlertX/
The issue occurs in the following browsers. Select at least 2.
- Firefox
- Chrome
- Edge
- Safari (unsupported) - PRs welcome
- N/A - This is an issue with the backend
Current Behavior
Returns output:
15:43:45 ['[plugin_helper] reading config file\n15:43:34 [\'[SNMPDSC] In script \']\n15:43:34 [\'[SNMPDSC] Router snmpwalk command: \', \'snmpwalk -CommunityPassword -v 1 10.1.1.1 .1.3.6.1.2.1.3.1.1.2\']\nTraceback (most recent call last):\n File "/app/front/plugins/snmp_discovery/script.py", line 127, in <module>\n main()\n File "/app/front/plugins/snmp_discovery/script.py", line 67, in main\n output = subprocess.check_output (snmpwalkArgs, universal_newlines=True, stderr=subprocess.STDOUT, timeout=(timeoutSec ))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/subprocess.py", line 466, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/subprocess.py", line 550, in run\n stdout, stderr = process.communicate(input, timeout=timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/subprocess.py", line 1209, in communicate\n stdout, stderr = self._communicate(input, endtime, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/subprocess.py", line 2116, in _communicate\n self._check_timeout(endtime, orig_timeout, stdout, stderr)\n File "/usr/lib/python3.12/subprocess.py", line 1253, in _check_timeout\n raise TimeoutExpired(\nsubprocess.TimeoutExpired: Command \'[\'snmpwalk\', \'-CommunityPassword\', \'-v\', \'1\', \'10.1.1.1\', \'.1.3.6.1.2.1.3.1.1.2\']\' timed out after 10 seconds\n']
15:43:45 ['[Plugins] No output received from the plugin "SNMPDSC"']
timed out after 10 seconds never changes to higher numbers regardless of input.
I have a very large network (25+ /16)
I want to save time and energy and run SNMP discoveries from the core l3 switch.
Timing the SNMP walks it requires at least 30 seconds.
Expected Behavior
Respecting the input put in timeout
Steps To Reproduce
- Set timeout higher than 10 seconds
- Run schedule
app.conf
docker-compose.yml
What installation are you running?
Production (netalertx)
app.log
No response
Debug enabled
- I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Docker 🐋Docker relatedDocker relatedbug 🐛Something isn't workingSomething isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.This is coming in the next release or was already released if the issue is Closed.