cluster/services/monitoring: add blackbox ircConnect module

This commit is contained in:
Max Headroom 2023-06-04 23:45:59 +02:00
parent ad0a3f8cc2
commit d274edbb2d

View file

@ -66,6 +66,18 @@ in
preferred_ip_protocol = "ip4"; preferred_ip_protocol = "ip4";
}; };
}; };
ircConnect = recursiveUpdate tcpConnect {
tcp.query_response = [
{ send = "NICK probe"; }
{ send = "USER probe probe probe :${probeUserAgent}"; }
{ send = "PING probe${probeId}"; }
{ expect = "PONG .* :probe${probeId}"; }
{ send = "QUIT"; }
];
};
ircsConnect = recursiveUpdate ircConnect {
tcp.tls = true;
};
}; };
blackbox_targets = let blackbox_targets = let
regularTargets = mapTargets cluster.config.monitoring.blackbox.targets; regularTargets = mapTargets cluster.config.monitoring.blackbox.targets;