Page 1 of 1
Active directory monitoring in NagiosXI
Posted: Wed Mar 27, 2019 2:18 am
by sajid4u2c
Hi All,
I have a requirement to monitor different parameters for AD.
I have gone through below links . But these are incomplete so as to what parameters to be passed or how to setup the configurations at Nagios/destination server side.
https://exchange.nagios.org/directory/P ... ck/details
https://exchange.nagios.org/directory/P ... ck/details
Could you please suggest which is the best plugin to monitor AD and what all parameters of AD can be monitored through Nagios.
Thanks.
Re: Active directory monitoring in NagiosXI
Posted: Wed Mar 27, 2019 10:08 am
by cdienger
Nagios can monitor
anything that has a
plugin. Which is the 'best' is usually a matter of what one's requirements are.
Frequently a plugins(like the ones you've linked to) will require that it be run on the remote host and not on the XI server. This can be done using agents like NSClient++ or NRPE on the remote host. Nagios then runs these plugins using check_ncpa or check_nrpe to connect to the host, execute the plugins, and return values to the Nagios server.
If you're not using either NSClient++ or NCPA at the moment then I would suggest using NCPA. Both agents can run scripts on remote machines and return the results to Nagios. The steps for NSClient++ are covered in:
https://support.nagios.com/kb/article.php?id=528
Instructions for installing NSClient++ to work with Nagios are found in:
https://assets.nagios.com/downloads/nag ... s-XI.pdf
Steps for installing NCPA are found in:
https://www.nagios.org/ncpa/getting-started.php
To run a script with NCPA you would need to copy it to the plugins directory found in the installation path(usually c:\program files (x86)\Nagios\NCPA\plugins) and then run a command like:
/usr/local/nagios/libexec/check_ncpa.py -H your_windows_server_ip_address -t your_windows_server_ncpa_token -P 5693 -M 'plugins/resourcecheck.ps1'
https://support.nagios.com/kb/article/n ... -722.html has some more information on running scripts with NCPA.
Re: Active directory monitoring in NagiosXI
Posted: Sun Mar 31, 2019 9:17 pm
by sajid4u2c
Thanks @ cdienger.
So do you suggest me to go with the plugins which I have listed for monitoring of AD?
Please suggest if there is any other plugin which could monitor different parameters of AD.
Thanks,
Re: Active directory monitoring in NagiosXI
Posted: Mon Apr 01, 2019 1:06 pm
by cdienger
Yes, use these plugins if they're able to monitor the parameters you'd like.
There is also the check_ldap plugin found in /usr/local/nagios/libexec/check_ldap. This plugin is what the LDAP wizard uses:
https://assets.nagios.com/downloads/nag ... h-LDAP.pdf
Re: Active directory monitoring in NagiosXI
Posted: Wed Apr 17, 2019 11:57 pm
by sajid4u2c
Thanks @cdienger
Able to execute few LDAP checks successfully.
Please close the thread.

Re: Active directory monitoring in NagiosXI
Posted: Thu Apr 18, 2019 9:10 am
by cdienger
Glad to hear!