Active Directory Monitoring

Kyle Tucker kylet at panix.com
Wed Feb 1 17:59:59 CET 2006


> 
> I'm currently searching for a way to monitor an active directory using
> nagios. The mainproblem I have is that I my active directory knowledge
> tends to zero. I'm currently searching for docs where I can find atleast
> the ports which I have to monitor, but until now without success. I had
> the idea to define all ports which I have to monitor (when I know which
> ports are involved), and then I want to put them into a servicegroup
> called active directory. Is there anybody out there who has done
> something like that in the past, or has a config snippet which could
> lead me into the correct direction. A pointer to a document which
> describes or lists the ports I need would be enough. Thanks in advance!

If I were to do this, I'd ask your AD admin for an account and some
info from the schema that should always be there and write a plugin
script using the 'ldapsearch' command and checking to make sure you
get back what's expected and exit the script accordingly. Here's a 
sample command line query I used against AD at my last company to 
get people's names, email addresses, phone numbers and job title. 

/bin/ldapsearch -h adhost.foo.bar -D user at ds.dom -w password -b \
ou=BaseOU,dc=ds,dc=dom cn="*${1}*" cn mail telephonenumber title 

-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------

-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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