Fwd: Re: [Check_mk (english)] Check manual page of check_dns
Philippe Duthoit
pdt at 3e.eu
Tue Oct 10 09:53:28 CEST 2017
Hello
As suggested in the mail I'm contacting help at monitoring-plugins.org
about the usage of plugins
I am aware how to use the plugin itself, but I'm having diffuculties
understanding how to use the plugin in check_mk ?
If I need to run the plugin on the remote host in the pluging dir I
clearly need to wrap it and evaluate the outcome, but this looks like
developing a new script myself, so I think I'm missing some mindset here
in how these things are used ?
Running the plugin on the monitoring server also seems weird
Any suggestions ?
Tia
-------- Forwarded Message --------
Subject: Re: [Check_mk (english)] Check manual page of check_dns
Date: Fri, 6 Oct 2017 09:27:48 -0700
From: Paul D <paulmonitoring at gmail.com>
To: Philippe Duthoit (3E) <Philippe.Duthoit at 3e.eu>
CC: checkmk-en at lists.mathias-kettner.de
<checkmk-en at lists.mathias-kettner.de>
Run the plugin from the command line and you will see what input options
you have.
[root at myhost ~]#
/opt/omd/versions/1.4.0p11.cre/lib/nagios/plugins/check_dns --help
check_dns v2.2 (monitoring-plugins 2.2)
Copyright (c) 1999 Ethan Galstad <nagios at nagios.org
<mailto:nagios at nagios.org>>
Copyright (c) 2000-2008 Monitoring Plugins Development Team
<devel at monitoring-plugins.org <mailto:devel at monitoring-plugins.org>>
This plugin uses the nslookup program to obtain the IP address for the
given host/domain query.
An optional DNS server to use may be specified.
If no DNS server is specified, the default server(s) specified in
/etc/resolv.conf will be used.
Usage:
check_dns -H host [-s server] [-a expected-address] [-A] [-t timeout]
[-w warn] [-c crit]
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-H, --hostname=HOST
The name or address you want to query
-s, --server=HOST
Optional DNS server you want to use for the lookup
-a, --expected-address=IP-ADDRESS|HOST
Optional IP-ADDRESS you expect the DNS server to return. HOST must
end with
a dot (.). This option can be repeated multiple times (Returns OK
if any
value match). If multiple addresses are returned at once, you have
to match
the whole string of addresses separated with commas (sorted
alphabetically).
-A, --expect-authority
Optionally expect the DNS server to be authoritative for the lookup
-w, --warning=seconds
Return warning if elapsed time exceeds value. Default off
-c, --critical=seconds
Return critical if elapsed time exceeds value. Default off
-t, --timeout=INTEGER
Seconds before connection times out (default: 10)
Send email to help at monitoring-plugins.org
<mailto:help at monitoring-plugins.org> if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel at monitoring-plugins.org <mailto:devel at monitoring-plugins.org>
On Fri, Oct 6, 2017 at 9:02 AM, Philippe Duthoit (3E)
<Philippe.Duthoit at 3e.eu <mailto:Philippe.Duthoit at 3e.eu>> wrote:
Hi List,
I want to perform an active DNS check on my bind server but the
pages are not giving me extra info (excuses for being rather n00b on
this)
https://mathias-kettner.com/checkmk_check_check_dns.html
<https://mathias-kettner.com/checkmk_check_check_dns.html>
A few hints probably will make me go “Aaah”
Tnx
_______________________________________________
checkmk-en mailing list
checkmk-en at lists.mathias-kettner.de
<mailto:checkmk-en at lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
<http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20171010/a1308fa0/attachment.html>
More information about the Help
mailing list