Bug Report
Dynamicbeat may print a warning log about failing to close an SSH connection even when there are no issues.
See stackoverflow for a suggested fix.
Expected behavior
If the check finishes successfully, and there are no sessions left open on the target system, then Dynamicbeat shouldn't print any warning/error logs. Since this isn't a genuine issue, Dynamicbeat shouldn't print anything.
Actual behavior
A warning log is printed when closing an SSH session after a successful check.
Replication steps
For us to be able to fix the bug, it's important that we can replicate it. Please provide as detailed a guide as possible to reliably replicate the issue, if possible.
- Create a new SSH check
- Run Dynamicbeat against the check with logs printed to STDOUT (
./dynamicbeat -e)
- See
Failed to close SSH session connection: EOF error
Screenshots

Bug Report
Dynamicbeat may print a warning log about failing to close an SSH connection even when there are no issues.
See stackoverflow for a suggested fix.
Expected behavior
If the check finishes successfully, and there are no sessions left open on the target system, then Dynamicbeat shouldn't print any warning/error logs. Since this isn't a genuine issue, Dynamicbeat shouldn't print anything.
Actual behavior
A warning log is printed when closing an SSH session after a successful check.
Replication steps
For us to be able to fix the bug, it's important that we can replicate it. Please provide as detailed a guide as possible to reliably replicate the issue, if possible.
./dynamicbeat -e)Failed to close SSH session connection: EOFerrorScreenshots