How to Monitor Windows AD important services using NAGIOS?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
prashant
Posts: 3
Joined: Wed May 29, 2013 6:30 pm

How to Monitor Windows AD important services using NAGIOS?

Post by prashant »

Hello Team,

I am new to Nagios and i have just install in my network. i am already added my AD and montroing CPU/memory and disk space..

i want to important Services running in Active directory and my WEB Servers..


Could any one help me with configuration steps?


Thanks,
Prashant
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to Monitor Windows AD important services using NAGIO

Post by abrist »

Are you running nagios core or nagios xi?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
prashant
Posts: 3
Joined: Wed May 29, 2013 6:30 pm

Re: How to Monitor Windows AD important services using NAGIO

Post by prashant »

hello,

Thanks for your Reply.i am running nagios Core..Please see below screen capture --

Thanks,
Prashant
Attachments
nagios-capture.JPG
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: How to Monitor Windows AD important services using NAGIO

Post by sreinhardt »

If the service names are listed in services.msc or by running a "net use" on the local system you can use the service name to monitor via the client(I presume) that you have installed on the windows machine. Otherwise if you are using something like wmi checks you can also query service information in a variety of ways. How are you presently getting the machines cpu and such data?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: How to Monitor Windows AD important services using NAGIO

Post by yancy »

prashant,

Can you be more specific about what "services" you want to import?

Are you looking to monitor services on the Windows Server responsible for running Active Directory?

Thanks,

-Yancy
prashant
Posts: 3
Joined: Wed May 29, 2013 6:30 pm

Re: How to Monitor Windows AD important services using NAGIO

Post by prashant »

thanks for your reply..yes i want to monitor services running on windows responsible for Active Directory. i just added below service configuration:-

define service{

use generic-service

host_name TW-WEB

service_description AeLookupSvc

check_command check_nt!SERVICESTATE!-d SHOWALL -l "AeLookupSvc"

}


but i dont see this service being displayed in Nagios dashboard. any clue? if i am following correct configuration or not?


Thanks,
Prashant
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How to Monitor Windows AD important services using NAGIO

Post by jsmurphy »

As far as I can tell there is nothing inherently wrong with the configuration you've provided, did you remember to restart the nagios service to apply the changes? You can test your configuration by running the command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

As far as Active Directory monitoring goes the important ADC services are as follows (from memory):
win2k3: Netlogon,NtFrs,kdc,W32Time,DNS,ISMSERV
win2k8: NTDS,kdc,W32Time,DNS,NtFrs,IsmServ
win2k12: NTDS,ADWS,kdc,W32Time,DNS,NtFrs,IsmServ

Some of these services may not be required in your environment (I.e. DNS if your ADC's don't serve DNS) and some additional services may be required (I.e. DHCP or Wins). AD is one of those products that is a composition of different components and you sort of just have to vet it a little bit to work out which ones are relevant to you.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to Monitor Windows AD important services using NAGIO

Post by abrist »

@OP - Let us know how jsmurphy's suggestions worked out for you. . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked