Hello, I'm using Your check_tcp plugin and i'm need to monitor stunnel, but got one issue. When stunnel certificates are expired or remote host is rejecting my connection check_tcp is showing me OK - port is open, and it is true because there is open local tcp port binded by stunnel process. But when using f.e. telnet i can see that "Connection closed by remote host" and see why in stunnel logs. Is it possible to adapt check_tcp to show CRIT in that cases (immediate port closure by remote host)?
best regards, Piotr