apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.46k stars 947 forks source link

[collector]bugfix: Fix ssh session not closing properly #2398

Closed loong95 closed 1 month ago

loong95 commented 1 month ago

What's changed?

Fix bug 1480

If you want to reproduce the bug, set an ssh command that takes longer to execute than the timeout duration, such as 'sleep 10'. After the number of timeout occurrences reaches MaxSessions, it will trigger 'no session'.

Checklist

Add or update API