PDC and nagios

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Fri May 2 03:48:46 CEST 2003


Dear Sir,

I am writing to thank you for your letter and say,

On Thu, May 01, 2003 at 04:25:16PM +0200, Thorsten Giese wrote:
> 
> Hello there.
> 
> I was wondering how anyone monitors Primary Domain Controllers? What checks 
> can be done?
> 
> 
>

that as far as I know there is no _standard_ Nag plugin to do so.

However, if you like to be a beta tester, you can join 2 others in using 
a plugin that tests a Microsoft domain by

. locating DCs by simulating Win 98 DC discovery (by second class 
mailslot [broadcast] of the NETLOGON SMB)

. connecting to the IPC$ share of one of those that answers (with the 
username and password options). This exercises the NETLOGON service.

. reading the LAN Man logon script from that share

. (optionally) acting on the logon script by extracting shares (NET USE 
statements) and issuing SMB connects to those shares.

This plugin uses an as yet unpublished Perl Module (Net::SMB::Samba)  
that utilises the Samba client shared object (libsmb.so). You must have 
the Samba client library installed on the Nag host (however, you don't 
need smbclient for this plugin).

Please let me know if you are interested, however, Unless you are either

. patient

. are experienced in installing code

This plugin is unlikely to help you.

Here's what the output looks like,

tsitc> /usr/local/nagios/libexec/check_NT_logon
Ok. 7 DCs responded [IPA04 IPOZ IPABETA IPA03 IPA02 IPA01 CBR1] to 
\MAILSLOT\NET\NETLOGON. "IPA04" validated "stan1". Lanman logon script 
"\kixtart\kickstart.bat". Connected to "\\IPA04\IMES_DATA \\IPA01\Apps32 
\\IPA04\SMALLSYSTEM \\ipa04\static \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS 
".
tsitc> 

Of course, it won't reliably pick up failures such as 

. SAM replication fault

. NETLOGON service not running on a domain controller (since it picks 
one randomly as clients do).

And it doesn't do DC location using an AD lookup (yet).


Yours sincerely.


-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list