Fwd: Re: [Check_mk (english)] Check manual page of check_dns

Philippe Duthoit <[email protected]> Tue, 10 Oct 2017 09:53:28 +0200
Newsgroups gmane.network.nagios.plugins
Message-ID <e48f4058-7d45-bfb0-b895-4f6838a64fa4__32368.1125337773$1507634743$gmane$org@3e.eu>
This is a multi-part message in MIME format.
--------------A4D44F6F77A6B8C337EE5991
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello

As suggested in the mail I'm contacting help-BzZFE/[email protected] 
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 <[email protected]>
To: 	Philippe Duthoit (3E) <[email protected]>
CC: 	[email protected] 
<[email protected]>



Run the plugin from the command line and you will see what input options 
you have.

[root@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 <[email protected] 
<mailto:[email protected]>>
Copyright (c) 2000-2008 Monitoring Plugins Development Team
<devel-BzZFE/[email protected] <mailto:devel-BzZFE/[email protected]>>

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-BzZFE/[email protected] 
<mailto:help-BzZFE/[email protected]> if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel-BzZFE/[email protected] <mailto:devel-BzZFE/[email protected]>


On Fri, Oct 6, 2017 at 9:02 AM, Philippe Duthoit (3E) 
<[email protected] <mailto:[email protected]>> 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
    [email protected]
    <mailto:[email protected]>
    http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
    <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en>



--------------A4D44F6F77A6B8C337EE5991
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello <br>
    </p>
    <p>As suggested in the mail I'm contacting
      <a class="moz-txt-link-abbreviated" href="mailto:help-BzZFE/[email protected]">help-BzZFE/[email protected]</a> about the usage of plugins</p>
    <p>I am aware how to use the plugin itself, but I'm having
      diffuculties understanding how to use the plugin in check_mk ?</p>
    <p>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 ?</p>
    <p>Running the plugin on the monitoring server also seems weird</p>
    <p>Any suggestions ?</p>
    <p>Tia<br>
    </p>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
            </th>
            <td>Re: [Check_mk (english)] Check manual page of check_dns</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
            <td>Fri, 6 Oct 2017 09:27:48 -0700</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
            <td>Paul D <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
            <td>Philippe Duthoit (3E) <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">CC: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
              <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Run the plugin from the command line and you will
        see what input options you have.
        <div><br>
        </div>
        <div>
          <div>[root@myhost ~]#
            /opt/omd/versions/1.4.0p11.cre/lib/nagios/plugins/check_dns
            --help</div>
          <div>check_dns v2.2 (monitoring-plugins 2.2)</div>
          <div>Copyright (c) 1999 Ethan Galstad &lt;<a
              href="mailto:[email protected]" moz-do-not-send="true">[email protected]</a>&gt;</div>
          <div>Copyright (c) 2000-2008 Monitoring Plugins Development
            Team</div>
          <div><span style="white-space:pre">	</span>&lt;<a
              href="mailto:devel-BzZFE/[email protected]"
              moz-do-not-send="true">devel-BzZFE/[email protected]</a>&gt;</div>
          <div><br>
          </div>
          <div>This plugin uses the nslookup program to obtain the IP
            address for the given host/domain query.</div>
          <div>An optional DNS server to use may be specified.</div>
          <div>If no DNS server is specified, the default server(s)
            specified in /etc/resolv.conf will be used.</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Usage:</div>
          <div>check_dns -H host [-s server] [-a expected-address] [-A]
            [-t timeout] [-w warn] [-c crit]</div>
          <div><br>
          </div>
          <div>Options:</div>
          <div> -h, --help</div>
          <div>    Print detailed help screen</div>
          <div> -V, --version</div>
          <div>    Print version information</div>
          <div> --extra-opts=[section][@file]</div>
          <div>    Read options from an ini file. See</div>
          <div>    <a
              href="https://www.monitoring-plugins.org/doc/extra-opts.html"
              moz-do-not-send="true">https://www.monitoring-plugins.org/doc/extra-opts.html</a></div>
          <div>    for usage and examples.</div>
          <div> -H, --hostname=HOST</div>
          <div>    The name or address you want to query</div>
          <div> -s, --server=HOST</div>
          <div>    Optional DNS server you want to use for the lookup</div>
          <div> -a, --expected-address=IP-ADDRESS|HOST</div>
          <div>    Optional IP-ADDRESS you expect the DNS server to
            return. HOST must end with</div>
          <div>    a dot (.). This option can be repeated multiple times
            (Returns OK if any</div>
          <div>    value match). If multiple addresses are returned at
            once, you have to match</div>
          <div>    the whole string of addresses separated with commas
            (sorted alphabetically).</div>
          <div> -A, --expect-authority</div>
          <div>    Optionally expect the DNS server to be authoritative
            for the lookup</div>
          <div> -w, --warning=seconds</div>
          <div>    Return warning if elapsed time exceeds value. Default
            off</div>
          <div> -c, --critical=seconds</div>
          <div>    Return critical if elapsed time exceeds value.
            Default off</div>
          <div> -t, --timeout=INTEGER</div>
          <div>    Seconds before connection times out (default: 10)</div>
          <div><br>
          </div>
          <div>Send email to <a
              href="mailto:help-BzZFE/[email protected]"
              moz-do-not-send="true">help-BzZFE/[email protected]</a> if
            you have questions regarding</div>
          <div>use of this software. To submit patches or suggest
            improvements, send email</div>
          <div>to <a href="mailto:devel-BzZFE/[email protected]"
              moz-do-not-send="true">devel-BzZFE/[email protected]</a></div>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Oct 6, 2017 at 9:02 AM,
          Philippe Duthoit (3E) <span dir="ltr">&lt;<a
              href="mailto:[email protected]" target="_blank"
              moz-do-not-send="true">[email protected]</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="white" link="#0563C1" vlink="#954F72"
              lang="EN-US">
              <div class="m_7294483242984548389WordSection1">
                <p class="MsoNormal"><span style="font-size:11.0pt">Hi
                    List,</span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt">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)</span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt"><a
                      href="https://mathias-kettner.com/checkmk_check_check_dns.html"
                      target="_blank" moz-do-not-send="true">https://mathias-kettner.com/<wbr>checkmk_check_check_dns.html</a></span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt">A
                    few hints probably will make me go “Aaah”</span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt">Tnx</span></p>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            checkmk-en mailing list<br>
            <a href="mailto:[email protected]"
              moz-do-not-send="true">[email protected]<wbr>kettner.de</a><br>
            <a
              href="http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.mathias-kettner.<wbr>de/mailman/listinfo/checkmk-en</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </div>
  </body>
</html>

--------------A4D44F6F77A6B8C337EE5991--