check_dns reports "OK" when nslookup fails with "connection refused"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
monitoring-plugins (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
the behavior of `nslookup` appears to have changed between 9.16.1-Ubuntu and 9.18.1-
;; connection timed out; no servers could be reached
while the 9.18.1-
;; communications error to 207.241.225.184#53: connection refused
however, the `check_dns` plugin was not updated for this new output. this results in an incorrect "OK" when the service being checked has in fact been stopped:
% nslookup -sil www.archive.org. 207.241.225.184
;; communications error to 207.241.225.184#53: connection refused
% /usr/lib/
DNS OK: 0.031 seconds response time. www.archive.org. returns |time=0.
the attached patch (based on https:/
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: monitoring-
ProcVersionSign
Uname: Linux 5.15.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Tue Oct 11 16:54:27 2022
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/zsh
SourcePackage: monitoring-plugins
UpgradeStatus: Upgraded to jammy on 2022-10-03 (8 days ago)
The attachment "local- check_dns_ nslookup_ unreachable. patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]