<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
go read the nagios docs, all of them before trying to run nagios. it is
a lot of work and you'll never get it right until you've read the whole
thing at least twice.<br>
<br>
your path to your plugin is probably wrong, this is a resource you
define. You should be able to easily see what is wrong when you read
the doc.<br>
<br>
-h<br>
<pre class="moz-signature" cols="72">Hari Sekhon
</pre>
<br>
<br>
edalB wrote:
<blockquote
 cite="mideb0757130701050554m23ab8182l28544e9119d48272@mail.gmail.com"
 type="cite">
  <pre wrap="">Ok now that I got hold of the check_dns plugin now in my log files I
get the error

Jan  5 15:54:17 nagios-0 nagios: Warning: Return code of 126 for check
of service 'DNS' on host 'dns-0.rba.ispafrica.net' was out of bounds.
Make sure the plugin you're trying to run actually exists.
Jan  5 15:54:17 nagios-0 nagios: SERVICE ALERT:
dns-0.rba.ispafrica.net;DNS;CRITICAL;SOFT;1;(Return code of 126 is out
of bounds - plugin may be missing)

Thanks sofar

On 1/5/07, Az <a class="moz-txt-link-rfc2396E" href="mailto:az@whoever.org"><az@whoever.org></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">edalB wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Why does it look like that nagios does not have a check_dns command?

I need to beable to check DNS aswell.
      </pre>
    </blockquote>
    <pre wrap="">The nagios-plugins bundle from SF has...

check_dns (nagios-plugins 1.4.5) 1.54
Copyright (c) 1999 Ethan Galstad <a class="moz-txt-link-rfc2396E" href="mailto:nagios@nagios.org"><nagios@nagios.org></a>
Copyright (c) 2000-2006 Nagios Plugin Development Team
        <a class="moz-txt-link-rfc2396E" href="mailto:nagiosplug-devel@lists.sourceforge.net"><nagiosplug-devel@lists.sourceforge.net></a>

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.

...and...

check_dig (nagios-plugins 1.4.5) 1.45
Copyright (c) 2000 Karl DeBisschop <a class="moz-txt-link-rfc2396E" href="mailto:kdebisschop@users.sourceforge.net"><kdebisschop@users.sourceforge.net></a>
Copyright (c) 2002-2006 Nagios Plugin Development Team
        <a class="moz-txt-link-rfc2396E" href="mailto:nagiosplug-devel@lists.sourceforge.net"><nagiosplug-devel@lists.sourceforge.net></a>

This plugin test the DNS service on the specified host using dig


    </pre>
  </blockquote>
  <pre wrap=""><!---->
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

  </pre>
</blockquote>
</body>
</html>