summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
AgeCommit message (Collapse)AuthorFilesLines
5 dayscheck_dns: update copyrightRincewindsHat1-2/+2
5 dayscheck_dns: Linter fixesRincewindsHat1-8/+12
5 dayscheck_dns: do not export local variablesRincewindsHat1-17/+17
5 dayscheck_dns: clang-formatRincewindsHat1-558/+509
2023-11-22check_dns: Remove unused variablerefs/pull/1964/headRincewindsHat1-1/+0
2023-10-19Fixes for -Wsign-compareRincewindsHat1-3/+3
2023-10-18check_dns: Another C99 booleanRincewindsHat1-1/+1
2023-10-18check_dns: Use C99 booleansRincewindsHat1-33/+32
2023-04-14Fix a lot of typos reported by codespellrefs/pull/1864/headJan Wagner1-1/+1
2021-09-02Improvements suggested by tobiaswieseJonny007-MKD1-2/+2
2021-09-02check_dns: Fix memory leakJonny007-MKD1-1/+1
2021-09-02check_dns: add --expect-nxdomainJonny007-MKD1-16/+45
2020-11-02check_dns: split multiple IP addresses passed in one -a argumentrefs/pull/1649/headRolf Eike Beer1-3/+17
2020-05-20detect unreachable dns service in nslookup output (from bind-utils-9.8.2)refs/pull/1634/headghciv61-1/+6
prevent core if error_scan detects an error in a line without ':'
2019-02-15check_dns: fix typo in parameter descriptionrefs/pull/1584/headRolf Eike Beer1-1/+1
2018-07-25check_dns: allow forcing complete match of all addressesrefs/pull/1545/headRolf Eike Beer1-3/+17
2018-07-25check_dns: allow returned addresses to be in any orderRolf Eike Beer1-5/+9
2018-07-25check_dns: simplify loopRolf Eike Beer1-2/+2
2017-03-12check_dns: fix error detection on sles nslookupSven Nierlein1-0/+1
on sles (ex. 11sp1) systems the nslookup output for not found was not parsed correctly and interpreted as ok when it should be critical: ./check_dns -H nosuchhost.nodomain -t 1 -vvv /usr/bin/nslookup -sil nosuchhost.nodomain Server: 10.0.2.3 Address: 10.0.2.3#53 Non-authoritative answer: *** Can't find nosuchhost.nodomain: No answer DNS OK: 0.011 seconds response time. nosuchhost.nodomain returns |time=0.010892s;;;0.000000 Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-12-23check_dns: Tests and infoNicolai1-1/+1
2016-12-21check_dns: Accept CIDRNicolai Søborg1-5/+37
2016-12-20check_dns: allow for IPv6 RDNSPatrick Rauscher1-1/+1
2016-11-07Merge pull request #1307 from waja/check_dns_dead_codeSven Nierlein1-6/+0
check_dns: remove dead code
2016-02-22DNS is case insensitive!refs/pull/1404/headSven Geggus1-1/+1
Thus recent Versions of bind will no longer change .IN-ADDR.ARPA to lowercase as the uppercase version is also valid. To have check_dns.c consider this fact change strstr to strcasestr
2015-10-04use unknown exit code for help/version in pluginsSven Nierlein1-2/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-12-15check_dns: remove dead coderefs/pull/1307/headSebastian Herbszt1-6/+0
Remove code dead since commit 4efa917. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-07-31check_dns: unified check outputSven Nierlein1-1/+1
this also allows us to make tests against "critical" in the output. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-30check_dns: Use strchr instead of indexJan Wagner1-1/+1
2014-07-30check_dns: returns incorrect state when specifying serverJan Wagner1-0/+22
This patch verifies if the response is returned by the dns server we are trying to check --- Closes #981 Closes #982 Closes #1164
2014-06-28check_dns.c Added a bit more logic to thresholdsabrist1-4/+13
Added two if elses to cover when only one threshold is set.
2014-06-28check_dns: add warning and critical thresholds to perfdataJean-Claude Computing1-1/+8
2014-01-21Merge branch 'rename'Thomas Guyot-Sionnest1-3/+3
2014-01-21plugins/*.c: Alterations for timeout messages.Spenser Reinhardt1-1/+1
.c file changes for misleading timeout messages in help functions. Solution to pull request #1209 tracker by awiddersheim. Files: plugins/check_apt.c, plugins/check_by_ssh.c, plugins/check_dbi.c, plugins/check_dig.c, plugins/check_disk.c, plugins/check_dns.c, plugins/check_game.c, plugins/check_http.c, plugins/check_ldap.c, plugins/check_ntp.c, plugins/check_ntp_peer.c, plugins/check_ntp_time.c, plugins/check_nwstat.c, plugins/check_overcr.c, plugins/check_pgsql.c, plugins/check_ping.c, plugins/check_procs.c, plugins/check_radius.c, plugins/check_real.c, plugins/check_smtp.c, plugins/check_snmp.c, plugins/check_ssh.c, plugins/check_tcp.c, plugins/check_time.c, plugins/check_ups.c, plugins/negate.c
2014-01-20Capitalize "Monitoring" when it's the first wordHolger Weiss1-1/+1
2014-01-19Project rename initial commit.Monitoring Plugins Development Team1-3/+3
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2013-05-12plugins: rename runcmd's signal handler.Diego Elio Pettenò1-1/+1
The previous name would collide with popen's. Even if the two are never used together, it's still a good idea not to have the same symbol in multiple object files.
2012-06-29Die when asprintf failsAnders Kaseorg1-4/+4
Fixes many instances of warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2010-04-22Add newline after "Usage:" in --helpThomas Guyot-Sionnest1-1/+1
2010-04-22Standardize the extra-opts notesThomas Guyot-Sionnest1-6/+0
2010-04-14Fix translations when extra-opts aren't enabledThomas Guyot-Sionnest1-5/+5
Bug #2832884 reported problem with translations outputting pot file headers. This is caused by "" matching the header of the translation files. This patch moves gettext macros inside utils macros and update some french translations.
2009-02-20Typo fixes (Jan Wagner - SF 1878971)Ton Voon1-1/+1
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest1-6/+2
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19Bulk EOL cleanupThomas Guyot-Sionnest1-2/+2
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08Fix long options parsing in check_disk, check_dns, check_mrtg and ↵Thomas Guyot-Sionnest1-2/+2
check_mrtgtraf (check_tcp was done in an earlier commit) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2078 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-13TypoThomas Guyot-Sionnest1-1/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1992 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-07Added support for --extra-opts in all C plugins (disabled by default, see ↵Thomas Guyot-Sionnest1-0/+11
configure --help) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-27--help output cleanup (plus removal of spaces on blank lines)Thomas Guyot-Sionnest1-5/+5
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-17Correct the help textThomas Guyot-Sionnest1-2/+2
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1979 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-17Allow to repeat -a to set multiple possible addressesThomas Guyot-Sionnest1-8/+22
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1978 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30Bump plugins/ to GPLv3 (check_apt to check_nwstat)Thomas Guyot-Sionnest1-24/+21
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1916 f882894a-f735-0410-b71e-b25c423dba1c