Module: monitoring-plugins
 Branch: master
 Commit: 3c53bf623d89650ac450be2518d17276a29247cc
 Author: Lorenz Kästle <12514511+rincewinds...@users.noreply.github.com>
   Date: Fri Aug  1 14:34:29 2025 +0200
    URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=3c53bf62

check_ssh: Fix format expression

---

 plugins/check_ssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index f93127ce..af7089a7 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -289,7 +289,7 @@ int ssh_connect(mp_check *overall, char *haddr, int hport, 
char *desired_remote_
 
        if (recv_ret < 0) {
                connection_sc = mp_set_subcheck_state(connection_sc, 
STATE_CRITICAL);
-               xasprintf(&connection_sc.output, "%s", "SSH CRITICAL - %s", 
strerror(errno));
+               xasprintf(&connection_sc.output, "%s - %s", "SSH CRITICAL - ", 
strerror(errno));
                mp_add_subcheck_to_check(overall, connection_sc);
                return OK;
        }

Reply via email to