From 978343ed03d3327597fa3317901f1c1741a7e3c4 Mon Sep 17 00:00:00 2001 From: Dennis Ullrich Date: Tue, 7 Oct 2025 14:33:55 +0200 Subject: check_dig: Add feature to require or forbid dig DNS flags -E, -X. Introduced helper functions for flag parsing. -E, --require-flags=LIST Comma-separated dig flags that must be present (e.g. 'aa,qr') -X, --forbid-flags=LIST Comma-separated dig flags that must NOT be present --- plugins/check_dig.d/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/check_dig.d/config.h') diff --git a/plugins/check_dig.d/config.h b/plugins/check_dig.d/config.h index a570b633..392848e5 100644 --- a/plugins/check_dig.d/config.h +++ b/plugins/check_dig.d/config.h @@ -19,6 +19,8 @@ typedef struct { double warning_interval; double critical_interval; + char *require_flags; + char *forbid_flags; } check_dig_config; check_dig_config check_dig_config_init() { @@ -34,6 +36,8 @@ check_dig_config check_dig_config_init() { .warning_interval = UNDEFINED, .critical_interval = UNDEFINED, + .require_flags = NULL, + .forbid_flags = NULL, }; return tmp; -- cgit v1.2.3-74-g34f1