Bug 1781292 - /usr/lib64/nagios/plugins/check_dns incorrectly fails all DNS lookups
Summary: /usr/lib64/nagios/plugins/check_dns incorrectly fails all DNS lookups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nagios-plugins
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Stephen John Smoogen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-09 17:29 UTC by Richard Lloyd
Modified: 2020-01-05 00:07 UTC (History)
6 users (show)

Fixed In Version: nagios-plugins-2.3.1-1.el7
Clone Of:
Environment:
Last Closed: 2020-01-05 00:07:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Richard Lloyd 2019-12-09 17:29:33 UTC
Description of problem:
I upgraded to the latest set of Nagios plugins from CentOS 7's EPEL repo, which included an update to the nagios-plugins-dns plugin. This broke all DNS lookups by that plugin.

Version-Release number of selected component (if applicable):
2.2.2-2.20190926git1b8ad57.el7.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Upgrade all your nagios-plugins* EPEL packages to the latest 2.2.2 release on CentOS 7, including the nagios-plugins-dns package.

Actual results:
False Nagios alerts occur immediately, which can be reproduced with this
command:

/usr/lib64/nagios/plugins/check_dns -H 127.0.0.1

which incorrectly outputs:

NS CRITICAL - query type of -querytype=A was not found for 127.0.0.1

Expected results:

DNS OK: 0.019 seconds response time. 127.0.0.1 returns name = localhost.|time=0.018578s;;;0.000000

I can get this correct output by reverting the nagios-plugins* plugins to their
2.2.1 release versions.

Additional info:

The Nagios support forum had a user reporting the same issue:

https://support.nagios.com/forum/viewtopic.php?f=7&t=55675

Comment 1 Stephen John Smoogen 2019-12-09 19:08:47 UTC
Argh. They seem to have made -H only an A record query so ip address are not going to work. Moving back to the version in 2.2.1 while that works has a whole heap of broken Ipv6 and some other problems.

Comment 2 Stephen John Smoogen 2019-12-09 21:48:13 UTC
OK nagios-2.3.1 is out and we will see how that goes. If it is also broken it will need to be opened upstream

Comment 3 Fedora Update System 2019-12-10 23:36:11 UTC
FEDORA-EPEL-2019-a181371b74 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-a181371b74

Comment 4 Fedora Update System 2019-12-11 17:24:46 UTC
nagios-plugins-2.3.1-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-a181371b74

Comment 5 Fedora Update System 2020-01-05 00:07:18 UTC
nagios-plugins-2.3.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.