Menu

#101 SSHD network errors: connection reset by peer during write

v7.14
closed-accepted
nobody
None
5
2026-06-02
2026-06-01
No

The SSHD log parser already handles connection resets during read:

    (
        # ...
        ($ThisLine =~ m/^error: .*: read: Connection reset by peer/ ) or
        # ...
    ) {
        $NetworkErrors++;
    } # ...

However, the same error can happen during writes as well, so I get:

 **Unmatched Entries**
 error: send_error: write: Connection reset by peer : 1 Time

entries in my logwatch reports. The attached patch expands the above regex to match either read or write.

1 Attachments

Discussion

  • Bjorn

    Bjorn - 2026-06-02
    • status: open --> closed-accepted
     
  • Bjorn

    Bjorn - 2026-06-02

    Thanks for the patch.

     

Log in to post a comment.

MongoDB Logo MongoDB