<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the suggestion Marc, that is a good idea! I only used dcdiag
when setting up the domain to check things and then forgot all about it.<br>
<br>
The only problem is that is creates a lot of output, I'd have to create
quite a plugin to test everything and then try and get something
meaningful in 1 line...<br>
<br>
-h<br>
<pre class="moz-signature" cols="72">Hari Sekhon
</pre>
<br>
<br>
Marc Powell wrote:
<blockquote
 cite="midA7B0A9F02975A74A845FE85D0B95B8FA0663DD16@misex01.ena.com"
 type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [<a class="moz-txt-link-freetext" href="mailto:nagios-users">mailto:nagios-users</a>-
<a class="moz-txt-link-abbreviated" href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Hari Sekhon
Sent: Thursday, January 18, 2007 8:26 AM
To: Nagios Users mailinglist
Subject: Re: [Nagios-users] PDC plugin

I would also be very interested if anyone knows how to do this. I am
using 2003 Active Directory. I was thinking about just doing check_tcp
again the ldap and kerberos ports but that is a pretty lame test since
they are always bound.

I think a more specific test like an ldap query and a kerberos request
would be better.

Anybody got anything more on this?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Big caveat: I'm not a Windows kind-of-guy but...

We use a program named dcdiag that actively checks the state of our
domain controllers and send its output to us via e-mail. It performs
many tests such as connectivity, replication, netlogons, advertising,
etc, etc etc... If I were trying to do this I'd install ActiveState perl
and create a simple plugin that called dcdiag and parsed its output
looking for failures. Run the plugin via NRPENT (or other) and you
should have interesting results. Now, I'm sure there's a better way to
parse the output than AS Perl that's native to Windows but I'm just not
familiar enough to know what it is.

dcdiag from MS TechNet -
<a class="moz-txt-link-freetext" href="http://207.46.196.114/WindowsServer/en/library/f7396ad6-0baa-4e66-8d18-1">http://207.46.196.114/WindowsServer/en/library/f7396ad6-0baa-4e66-8d18-1</a>
7f83c5e4e6c1033.mspx?mfr=true

Try running it with 'dcdiag /s:<domaincontroller> /e'

HTH,

Marc

-------------------------------------------------------------------------
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>