diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-01 14:34:29 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-01 14:34:29 +0200 |
commit | 3c53bf623d89650ac450be2518d17276a29247cc (patch) | |
tree | f55ef8bfc8d28e72a6c170aeed516f232b03772a | |
parent | 69925c782bf70d267ea14a57d46b5390f5555b8f (diff) | |
download | monitoring-plugins-3c53bf62.tar.gz |
check_ssh: Fix format expression
-rw-r--r-- | plugins/check_ssh.c | 2 |
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 | } |