summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
authorLorenz Kästle <lorenz.kaestle@netways.de>2026-06-10 14:16:33 +0200
committerLorenz Kästle <lorenz.kaestle@netways.de>2026-06-10 14:16:33 +0200
commitb55444c2b44fcebefbc3b6394d3c8468d6320bca (patch)
treef02a4bd900775bd08bf709b390bbeee32b9c7a1c /plugins/check_by_ssh.c
parent47b1b2d754d4809006f6dc1aa13ba9c80405975c (diff)
downloadmonitoring-plugins-b55444c2b44fcebefbc3b6394d3c8468d6320bca.tar.gz
Run clang-format on everything once again
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r--plugins/check_by_ssh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 4d0c8e7d..178908cf 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -100,8 +100,7 @@ int main(int argc, char **argv) {
100 if (child_result.cmd_error_code == 255 && config.unknown_timeout) { 100 if (child_result.cmd_error_code == 255 && config.unknown_timeout) {
101 mp_subcheck sc_ssh_execution = mp_subcheck_init(); 101 mp_subcheck sc_ssh_execution = mp_subcheck_init();
102 xasprintf(&sc_ssh_execution.output, "SSH connection failed: %s", 102 xasprintf(&sc_ssh_execution.output, "SSH connection failed: %s",
103 child_result.err.lines > 0 ? child_result.err.line[0] 103 child_result.err.lines > 0 ? child_result.err.line[0] : "(no error output)");
104 : "(no error output)");
105 104
106 sc_ssh_execution = mp_set_subcheck_state(sc_ssh_execution, STATE_UNKNOWN); 105 sc_ssh_execution = mp_set_subcheck_state(sc_ssh_execution, STATE_UNKNOWN);
107 mp_add_subcheck_to_check(&overall, sc_ssh_execution); 106 mp_add_subcheck_to_check(&overall, sc_ssh_execution);