Jonny007-MKD
cfc43a3275
Improvements suggested by tobiaswiese
2021-09-02 09:56:39 +02:00
Jonny007-MKD
2056c58531
check_dns: Fix memory leak
2021-09-02 09:56:39 +02:00
Jonny007-MKD
70f55ca9db
check_dns: add --expect-nxdomain
2021-09-02 09:56:39 +02:00
Rolf Eike Beer
ad99755033
check_dns: split multiple IP addresses passed in one -a argument
2020-11-02 20:05:56 +01:00
ghciv6
905b09c38b
detect unreachable dns service in nslookup output (from bind-utils-9.8.2)
...
prevent core if error_scan detects an error in a line without ':'
2020-05-20 23:02:42 +02:00
Rolf Eike Beer
763eb740b3
check_dns: fix typo in parameter description
2019-02-15 17:31:29 +01:00
Rolf Eike Beer
fd9a7d2e00
check_dns: allow forcing complete match of all addresses
2018-07-25 21:14:47 +02:00
Rolf Eike Beer
a03068743f
check_dns: allow returned addresses to be in any order
2018-07-25 20:18:47 +02:00
Rolf Eike Beer
e60c6c04f0
check_dns: simplify loop
2018-07-25 19:05:16 +02:00
Sven Nierlein
9daeceaed3
check_dns: fix error detection on sles nslookup
...
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>
2017-03-12 21:02:58 +01:00
Nicolai
ea756ac4ad
check_dns: Tests and info
2016-12-23 20:44:45 +01:00
Nicolai Søborg
22e78763ea
check_dns: Accept CIDR
2016-12-21 17:24:29 +01:00
Patrick Rauscher
f524b15e57
check_dns: allow for IPv6 RDNS
2016-12-20 21:59:58 +01:00
Sven Nierlein
28d4812860
Merge pull request #1307 from waja/check_dns_dead_code
...
check_dns: remove dead code
2016-11-07 23:05:26 +01:00
Sven Geggus
d44b8d70a4
DNS is case insensitive!
...
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
2016-02-22 17:14:27 +01:00
Sven Nierlein
edca257e20
use unknown exit code for help/version in plugins
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-04 19:24:30 +02:00
Sebastian Herbszt
193ea6b5d7
check_dns: remove dead code
...
Remove code dead since commit 4efa917 .
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2014-12-15 17:44:13 +01:00
Sven Nierlein
18a9562dae
check_dns: unified check output
...
this also allows us to make tests against "critical" in the output.
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-31 12:13:52 +02:00
Jan Wagner
b7ce241ba6
check_dns: Use strchr instead of index
2014-07-30 23:30:59 +02:00
Jan Wagner
d0da78ced1
check_dns: returns incorrect state when specifying server
...
This patch verifies if the response is returned by the dns server we
are trying to check
---
Closes #981
Closes #982
Closes #1164
2014-07-30 13:16:37 +02:00
abrist
e49973493c
check_dns.c Added a bit more logic to thresholds
...
Added two if elses to cover when only one threshold is set.
2014-06-28 22:01:16 +02:00
Jean-Claude Computing
79ba1f90db
check_dns: add warning and critical thresholds to perfdata
2014-06-28 22:01:16 +02:00
Thomas Guyot-Sionnest
11cf54ca78
Merge branch 'rename'
2014-01-21 07:59:07 -05:00
Spenser Reinhardt
212575b858
plugins/*.c: Alterations for timeout messages.
...
.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-21 11:33:45 +01:00
Holger Weiss
c3e756a855
Capitalize "Monitoring" when it's the first word
2014-01-20 03:12:50 +01:00
Monitoring Plugins Development Team
63734f52ab
Project rename initial commit.
...
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.
2014-01-19 14:18:47 -05:00
Diego Elio Petten
332c6ef2c7
plugins: rename runcmd's signal handler.
...
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.
2013-05-12 14:15:13 +02:00
Anders Kaseorg
028d50d6f9
Die when asprintf fails
...
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>
2012-06-29 13:39:11 +02:00
Thomas Guyot-Sionnest
eaf3cb27f4
Add newline after "Usage:" in --help
2010-04-22 08:57:14 -04:00
Thomas Guyot-Sionnest
884aee0667
Standardize the extra-opts notes
2010-04-21 23:29:18 -04:00
Thomas Guyot-Sionnest
25d1ee331d
Fix translations when extra-opts aren't enabled
...
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.
2010-04-14 08:33:06 -04:00
Ton Voon
5324544855
Typo fixes (Jan Wagner - SF 1878971)
2009-02-20 00:00:13 +00:00
Thomas Guyot-Sionnest
6fbd14fea5
Removing CVS/SVN tags and replacing with git-based versioning
...
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-23 05:38:47 +00:00
Thomas Guyot-Sionnest
caa8bd6423
Bulk EOL cleanup
...
$ 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-19 06:45:18 +00:00
Thomas Guyot-Sionnest
4e366f82de
Fix long options parsing in check_disk, check_dns, check_mrtg and 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-11-08 16:33:15 +00:00
Thomas Guyot-Sionnest
7e3fc482ed
Typo
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1992 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-13 09:14:45 +00:00
Thomas Guyot-Sionnest
44f8455b2c
Added support for --extra-opts in all C plugins (disabled by default, see configure --help)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-07 10:02:42 +00:00
Thomas Guyot-Sionnest
ed62784a0b
--help output cleanup (plus removal of spaces on blank lines)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-27 14:35:26 +00:00
Thomas Guyot-Sionnest
5cfbc550dc
Correct the help text
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1979 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-17 10:46:22 +00:00
Thomas Guyot-Sionnest
b7ea51c666
Allow to repeat -a to set multiple possible addresses
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1978 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-17 10:37:57 +00:00
Thomas Guyot-Sionnest
fa4efcdf6d
Bump plugins/ to GPLv3 (check_apt to check_nwstat)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1916 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 10:53:47 +00:00
Matthias Eble
7ef7071aff
Fixed reverse lookup damaged by previous commit
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1903 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-08 23:08:46 +00:00
Matthias Eble
f83981580e
check_dns now sorts addresses for -a support with multiple address replies (Matthias Urlichs #1724052 )
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1886 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-05 01:06:36 +00:00
Holger Weiss
fd329a1e91
Don't try to print `optarg' (which will be a NULL pointer) if an unknown
...
command line option was used, as this leads to a segfault on some
systems. The unknown option will be printed by getopt(3) anyway. So,
simply call print_usage() and exit UNKNOWN via the new usage5() instead.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1590 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-28 21:46:41 +00:00
Benoit Mortier
082cfc29e3
first pass at cleaning localization for new release
...
first pass at making all the headre be the same licence, plugin, etc...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1499 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-19 00:25:16 +00:00
Ton Voon
548083b2ea
Move new util_* functions to lib/
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13 12:50:23 +00:00
Benoit Mortier
b2bfd4555a
updating the help and usage for localization
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1427 f882894a-f735-0410-b71e-b25c423dba1c
2006-06-14 21:27:38 +00:00
Ton Voon
63271bf65d
Added warning and critical response times (John Rouillard - 1343159)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1346 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22 16:45:57 +00:00
Ton Voon
300a7768a8
New style tests. Cleanup of presentation of help. Added '' around -a checks
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1342 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-22 14:17:10 +00:00
Benoit Mortier
c68d99cee2
start of the cleaning of the localization
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1282 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-14 00:51:44 +00:00