From 642399088c386b24686c10ddc249820e923ec09c Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 5 Jun 2023 23:13:50 +0200 Subject: [PATCH] cluster/services/monitoring: add blackbox sshConnect module --- cluster/services/monitoring/blackbox.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cluster/services/monitoring/blackbox.nix b/cluster/services/monitoring/blackbox.nix index ecea65f..badb862 100644 --- a/cluster/services/monitoring/blackbox.nix +++ b/cluster/services/monitoring/blackbox.nix @@ -86,6 +86,12 @@ in ]; }; }; + sshConnect = recursiveUpdate tcpConnect { + tcp.query_response = [ + { expect = "^SSH-2.0"; } + { send = "SSH-2.0-PrivateVoidProbe_${probeId}"; } + ]; + }; }; blackbox_targets = let regularTargets = mapTargets cluster.config.monitoring.blackbox.targets;