Page 1 of 1

Monitor Active directory using NCPA

Posted: Mon Sep 14, 2020 2:52 pm
by CSOST
Hello,
Im trying to figure out the best way to monitor AD server with NCPA 2.2 , currently i find that NRPE do have a string to check Active directory services
" check_activedir " .
check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
how do u set the ARG under NCPA in this case ?

Thank you

Re: Monitor Active directory using NCPA

Posted: Tue Sep 15, 2020 1:52 pm
by cdienger
Instead of defining a command on the NRPE client side to execute check_activedir, you would simply place the plugin in NCPA's plugin directory and execute it with something like:

Code: Select all

./check_ncpa.py -H <client_ip> -t '<your token>' -M 'plugins/check_activedir' -q ''
https://support.nagios.com/kb/article/n ... a-722.html covers how to execute a plugin with NCPA as well as creating the service on XI.

Re: Monitor Active directory using NCPA

Posted: Wed Sep 16, 2020 10:49 am
by CSOST
Thank you cdienger for your help

Re: Monitor Active directory using NCPA

Posted: Wed Sep 16, 2020 11:08 am
by scottwilkerson
CSOST wrote:Thank you cdienger for your help
Glad we could help

Locking thread