summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-01 14:34:29 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-01 14:34:29 +0200
commit3c53bf623d89650ac450be2518d17276a29247cc (patch)
treef55ef8bfc8d28e72a6c170aeed516f232b03772a
parent69925c782bf70d267ea14a57d46b5390f5555b8f (diff)
downloadmonitoring-plugins-3c53bf62.tar.gz
check_ssh: Fix format expression
-rw-r--r--plugins/check_ssh.c2
1 files changed, 1 insertions, 1 deletions
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_
289 289
290 if (recv_ret < 0) { 290 if (recv_ret < 0) {
291 connection_sc = mp_set_subcheck_state(connection_sc, STATE_CRITICAL); 291 connection_sc = mp_set_subcheck_state(connection_sc, STATE_CRITICAL);
292 xasprintf(&connection_sc.output, "%s", "SSH CRITICAL - %s", strerror(errno)); 292 xasprintf(&connection_sc.output, "%s - %s", "SSH CRITICAL - ", strerror(errno));
293 mp_add_subcheck_to_check(overall, connection_sc); 293 mp_add_subcheck_to_check(overall, connection_sc);
294 return OK; 294 return OK;
295 } 295 }