[Pkg-nagios-devel] Bug#1085355: icinga2-common: command-plugins.conf defines command line options for check_dns which do not exist
Florian Lohoff
f at zz.de
Fri Oct 18 16:58:36 BST 2024
Package: icinga2-common
Version: 2.14.2-1
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
in /usr/share/icinga2/include/command-plugins.conf there is a definition
for a "dns" check using /usr/lib/nagios/plugins/check_dns (from
monitoring-plugins-basic) and defines a command line option which
the check_dns does not support - For example the "-q" for
query type (I didnt try more).
I am unshure whether this is an issue in an old check_dns beeing
distributed by monitoring-plugins-basic - or the "-q" beeing falsely
added to the icinga2-common plugins definition:
object CheckCommand "dns" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_dns" ]
arguments = {
"-H" = {
value = "$dns_lookup$"
description = "The name or address you want to query."
}
"-s" = {
value = "$dns_server$"
description = "Optional DNS server you want to use for the lookup."
}
"-q" = {
value = "$dns_query_type$"
description = "Optional DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY). The default query type is 'A' (IPv4 host entry)"
}
[ ... ]
root at trixie-95838:# /usr/lib/nagios/plugins/check_dns -q
/usr/lib/nagios/plugins/check_dns: invalid option -- 'q'
Usage:
check_dns -H host [-s server] [-a expected-address] [-n] [-A] [-t timeout] [-w warn] [-c crit] [-L]
Flo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEdb9o7oebX2papQ/KkN1BIMsJ8i8FAmcShaoACgkQkN1BIMsJ
8i9+lA//eHGIgbXOls0DiC8Cd51P7q8W3aQRu8sAcExbbqtUc8aFnoFsAw5BldWk
PBmhDOYKVllNHsN1j30sh6RvSPKzF2KvgTJ8CduiQInJzKaenCv3iY6yaduflQIS
AgjyQHiQI+xlMIjHyAVMWdNHy6IuC1Wd6ju4WSrAF4xern4Lhh6bhNoELJVpv5/Q
WdL8vd1CMIyWpldkuuH+xm3GTATBSrO946i+diUoC0FvZ5xTbOmvInWcfcTN0GEh
DW3jp2fl5G85/Gw+caAe1wLwqcLNKeIGBCaovqhRDtRLnX89m/K3GFzZDTaAVWhU
Ns3fzvNU8OP5xlf1l6lwRBiQMLtvyYyFxwEvQJaWeZ8E1I4VHj97gr0KHhJuCYsc
eGjcIzyJQp/d/4UT92udybmtNLsjuFu5TB0O4dbNzYR9X/3826SOEbTydi4oB4h5
PeyrSSaadreZROVYxt2VRTJOj8EdvUom/GWsxEB7Mdwfy0NOgiVk+rZ5hueFfA3M
02r5+uoeLDbxpUbqrStaowOA4UkCrariGRaL1N263YtCr5jBW2CMQzk+FQ9rg+Ta
/Qx/4/WkouuySU38TNI8BhQpwLE3EB5F/Tu5zyCX3Yzc+BVNTo6ujVCxrkROuBaA
1IHZtVmrw0m2tLRwWWh8P1pWrdWla2Cq/P/p2yY8pILWkNGpwO0=
=IaCs
-----END PGP SIGNATURE-----
More information about the Pkg-nagios-devel
mailing list