Testing for 2k boxes joining the domain

Tom DE BLENDE tdeblend at gcc.dhl.com
Thu Oct 24 11:14:58 CEST 2002


Well, if we put our brains together! Just use:

smblient -L anyservername -U username%password

This gives you the list on a Linux/Unix system. Then it's just a
matter of parsing the output!

Marcus Nilsson wrote:
> 
> In windows environment You have the command 'net view' that lists all hosts
> in the current domain. Maybe you can make a .bat script that gets all the
> hostnames and writes them to a file. Then you can get that file with
> smbclient and process it on the Nagios machine.
> 
> Just a thought
> 
> / Marcus
> 
> -----Original Message-----
> From: Greg Vickers [mailto:g.vickers at qut.edu.au]
> Sent: Thursday, October 24, 2002 1:16 AM
> To: Tom DE BLENDE
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Testing for 2k boxes joining the domain
> 
> That's the rub, Tom - they have static IPs assigned to them so from an IP
> level, to Nagios they appear to be up, the same goes for using smbclient to
> attach to the shares as I can't test with smbclient that a machine that is
> sharing a directory has joined the domain or not :)
> 
> And yes, we had touched on checking a service that depends on joining the
> domain successfully, I guess we'll have to do that. Thanks for the
> suggestion, we'll give it a shot.
> 
> Thanks,
> Greg
> 
> At 17:26 24/10/2002, Tom DE BLENDE wrote:
> >I'm not sure if it can be checked on service level.
> >
> >However, if there are network problems, then those desktops can't get
> >an IP through DHCP. If you are using DHCP, then you can simply try to
> >ping those servers, as they will have an IP in the lame
> >Microsoft-I-Cannot-Reach-My-DHCP-Server-IP-Range: 169.254.x.x. So
> >pinging them on their normal IP won't work.
> >
> >I don't know if this works for you. If those servers are not using
> >DHCP, then ignore what I said and tell me. I find this an interesting
> >one to have a look at when I have got the time.
> >
> >One workaround would be installing a dummy service that you run with a
> >domain user account. If the domain is unavaiable at boot time, then
> >that service will fail to start as the account is unavailable. And if
> >that service didn't start, then you can check that with NSClient.
> >
> >Greg Vickers wrote:
> > >
> > > Hi all,
> > > Just a question: how could you use Nagios to test wether a 2k computer
> has
> > > successfully joined the domain? We have lecture theatre computers that
> > > automagically log on when they start up. If there is (god forbid) and
> > > network problem or something else that stops them joining the domain,
> they
> > > will do a local login.
> > > Is there a service that runs after they successfully join the domain?
> i.e.
> > > so that we can actively check that they have joined the domain.
> > >
> > > Thanks,
> > >
> > > =================================
> > > Greg Vickers
> > > Computer Systems Officer
> > > Student Support and Systems,
> > > Teaching and Learning Support Systems,
> > > Queensland University of Technology,
> > > Kelvin Grove Campus,
> > > Brisbane,
> > > Australia
> > >
> > > CRICOS No 00213J
> > >
> > > Ph: 07 3864 8276 Fax: 07 3864 5425
> > > Mob: 0416 001 674 SD: x6147
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by: Influence the future
> > > of Java(TM) technology. Join the Java Community
> > > Process(SM) (JCP(SM)) program now.
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
> > >
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> =================================
> Greg Vickers
> Computer Systems Officer
> Student Support and Systems,
> Teaching and Learning Support Systems,
> Queensland University of Technology,
> Kelvin Grove Campus,
> Brisbane,
> Australia
> 
> CRICOS No 00213J
> 
> Ph: 07 3864 8276 Fax: 07 3864 5425
> Mob: 0416 001 674 SD: x6147
>


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote




More information about the Users mailing list