[Pkg-nagios-devel] Bug#1085411: monitoring-plugins-standard: check_dns does not support -q icinga2 command defines

Florian Lohoff f at zz.de
Sat Oct 19 11:08:35 BST 2024


Package: monitoring-plugins-standard
Version: 2.4.0-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-standard) and defines a command line option which 
the check_dns does not support - For example the "-q" for
query type (I didnt try more). (See also #1085355)

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]

I opened #1085355 against icinga2-common which provides /usr/share/icinga2/include/command-plugins.conf
and it was closed because the icinga2 supported check_dns does indeed support the "-q"

I dont think this is the right way to deal with this as Debian as a whole should be interop within
itself which in this case it isnt. So when icinga2 needs non debian provided binaries to work
it should be in contrib not main.

Anyway - i am now asking to update check_dns.

Flo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdb9o7oebX2papQ/KkN1BIMsJ8i8FAmcThSEACgkQkN1BIMsJ
8i+dWRAAkfsS7a4Hxosr0N14hC8NrR2CjgbkRQL2Xm49zFcWAQ/mkJRfcZ/5fnwj
xpcFpcpaMbL5DJqGuQwcghAuOdHi/Yc6Mtx0LTr9gclQAxsL0frXamYei1OkqjNi
iKn0tKzaM9QR2G6JTsPrkiz0Ofs8GcTUkFlqqj/+NAFo+E4Y77xT7sr8K+Zi99tx
C7v+Dy8FA6DVL2vMBG2r3FOI9GpuPCnu8dtTuABTWq3pduWA+ruE88SZs6jSi6nP
11D/4ekUW1o3uMqZVb830UEFX5qTCjDIIpXBgCzjvzFzLmlyRlvwA7xOOEFPjEne
k5WH8UEcwJ4A6SNs857P4UuEiiKLL80m5MiFfhgzSHLyTGWBTWU47GqI5rALSsVG
M7gA04Hef647UyEhz4u4ttihRRmJXLU5eOIDQfrH5aXqdWXqf8OqIdTPMG03huLq
WI5OAv4bD7Irud52mSSiyHPFBEQJv896xqE+gOxHQv9BT8h/qSxY2+iuQxszIpr+
S0Eo9O6eltSlL/bDCYYftwZxVpW20NvVlPfP8681mdI9g7mCJkCQ6xmtzEPfZ3tR
jZ4nZhdtK2KXqvLRJToMvf8Oil+pNi5HFzIXHII80x4jqTsrTs1asD8oiJZBu6J0
9t4SV70bFPMIX7nUkrGDSIV3ihcZbioECOyWTsdkxKItyAjkNq8=
=TboS
-----END PGP SIGNATURE-----



More information about the Pkg-nagios-devel mailing list