Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mikrotik Debug Log - More Information #22

Open
WavedirectTel opened this issue Oct 30, 2023 · 0 comments
Open

Mikrotik Debug Log - More Information #22

WavedirectTel opened this issue Oct 30, 2023 · 0 comments

Comments

@WavedirectTel
Copy link

When my system logs into some Mikrotik devices via API if the credentials are bad it will send an error without an IP address or hardware ID that would help us identify where the error device exists.

Example of the debug log.

---------------- EXCEPTION CAUGHT: PEAR2\Net\RouterOS\DataFlowException | Invalid username or password supplied. ---------------- { "file": "/usr/share/sonar_poller/src/DeviceMappers/MikroTik/MikroTik.php", "line": 164, "function": "__construct", "class": "PEAR2\Net\RouterOS\Client", "type": "->", "position": 0 } { "file": "/usr/share/sonar_poller/src/DeviceMappers/MikroTik/MikroTik.php", "line": 100, "function": "getClient", "class": "Poller\DeviceMappers\MikroTik\MikroTik", "type": "->", "position": 1 } { "file": "/usr/share/sonar_poller/src/DeviceMappers/MikroTik/MikroTik.php", "line": 24, "function": "getBridgingTable", "class": "Poller\DeviceMappers\MikroTik\MikroTik", "type": "->", "position": 2 } { "file": "/usr/share/sonar_poller/src/Tasks/SnmpGet.php", "line": 52, "function": "map", "class": "Poller\DeviceMappers\MikroTik\MikroTik", "type": "->", "position": 3 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/functions.php", "line": 90, "function": "run", "class": "Poller\Tasks\SnmpGet", "type": "->", "position": 4 } { "file": "/usr/share/sonar_poller/vendor/amphp/parallel/lib/Worker/TaskRunner.php", "line": 46, "function": "Amp\call", "position": 5 } { "function": "execute", "class": "Amp\Parallel\Worker\TaskRunner", "type": "->", "position": 6 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Coroutine.php", "line": 118, "function": "send", "class": "Generator", "type": "->", "position": 7 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Internal/Placeholder.php", "line": 149, "function": "Amp\{closure}", "class": "Amp\Coroutine", "type": "->", "position": 8 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Coroutine.php", "line": 123, "function": "resolve", "class": "Amp\Coroutine", "type": "->", "position": 9 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Internal/Placeholder.php", "line": 149, "function": "Amp\{closure}", "class": "Amp\Coroutine", "type": "->", "position": 10 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Deferred.php", "line": 52, "function": "resolve", "class": "class@anonymous\u0000/usr/share/sonar_poller/vendor/amphp/amp/lib/Deferred.php:22$b8", "type": "->", "position": 11 } { "file": "/usr/share/sonar_poller/vendor/amphp/byte-stream/lib/ResourceInputStream.php", "line": 101, "function": "resolve", "class": "Amp\Deferred", "type": "->", "position": 12 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Loop/EvDriver.php", "line": 59, "function": "Amp\ByteStream\{closure}", "class": "Amp\ByteStream\ResourceInputStream", "type": "::", "position": 13 } { "function": "Amp\Loop\{closure}", "class": "Amp\Loop\EvDriver", "type": "->", "position": 14 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Loop/EvDriver.php", "line": 234, "function": "run", "class": "EvLoop", "type": "->", "position": 15 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Loop/Driver.php", "line": 138, "function": "dispatch", "class": "Amp\Loop\EvDriver", "type": "->", "position": 16 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Loop/Driver.php", "line": 72, "function": "tick", "class": "Amp\Loop\Driver", "type": "->", "position": 17 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Loop/EvDriver.php", "line": 186, "function": "run", "class": "Amp\Loop\Driver", "type": "->", "position": 18 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/Loop.php", "line": 95, "function": "run", "class": "Amp\Loop\EvDriver", "type": "->", "position": 19 } { "file": "/usr/share/sonar_poller/vendor/amphp/amp/lib/functions.php", "line": 229, "function": "run", "class": "Amp\Loop", "type": "::", "position": 20 } { "file": "/usr/share/sonar_poller/src/Worker/Internal/process-runner.php", "line": 99, "function": "Amp\Promise\wait", "position": 21 } { "file": "/usr/share/sonar_poller/src/Worker/Internal/process-runner.php", "line": 117, "function": "Poller\Worker\Internal\{closure}", "position": 22 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant