summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-06-10 14:49:33 +0200
committerGitHub <noreply@github.com>2026-06-10 14:49:33 +0200
commitf8aad020f7c0be604da8981663b6d815f94ffaa4 (patch)
treee1c7bdeff275778b4dd324d26e826c861d143b48 /plugins/check_by_ssh.c
parent47b1b2d754d4809006f6dc1aa13ba9c80405975c (diff)
downloadmonitoring-plugins-f8aad020f7c0be604da8981663b6d815f94ffaa4.tar.gz
Run clang-format on everything once again (#2275)
Co-authored-by: Lorenz Kästle <lorenz.kaestle@netways.de>
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);