Page 1 of 1

NCPA with NRDS

Posted: Tue Jan 19, 2016 6:36 am
by comfone
Hi All
Our environment is as follow:
Nagios XI 5.2.3
NCPA 1.8.1
Os Windows 2008ServerR2
I would like to do the following:
I am monitoring our Windows Server using NCPA (CPU, Disk, Memory, etc...)
Now I have uploaded (an new) Plug-In "check_windows_updates.ps1" to our Nagios XI.
I would like that NRDS is pushing the Plugin-In to our Windows Server and configure NCPA to trigger an active check, as I would do it using NRPE.
What are the step do achieve that?
Thank you in advance for your help.
Cheers,

Re: NCPA with NRDS

Posted: Tue Jan 19, 2016 3:18 pm
by rkennedy
Can you please provide clarification on what you're attempting to accomplish? I'm not sure if you're looking to use NRPE, NCPA, or NRDS.

If you're looking to use NCPA to trigger the information, then it would actually be a passive check as well.

Re: NCPA with NRDS

Posted: Wed Jan 20, 2016 3:24 am
by comfone
Hi rkennedy
Thank you for your feedback.
Sorry that I was not clear on my previous post.
I'll try to clarify it a little more this time :D
Here is what I'm trying to accomplish in bullets points.
- I'll planing to install the NCPA agent on all our VM Servers (Windows and Linux) to monitor the "basics" like cpu, memory, disk, etc.
- For "special" checks, I would like to use our Nagios XI as plugin repository and push the plugin using NRDS to the appropriate host group, like the plugin "check_windows_updates.ps1" to all windows servers.
- I don't want NRDS to push any config data, just the plugin to the clients.
- After the plugin is copied over to the client, I want to use NCPA active check or NCPA passive check to run the plugin on the "client" site. (example "check_windows_updates.ps1")
What do you think? is that achievable?

Re: NCPA with NRDS

Posted: Wed Jan 20, 2016 12:33 pm
by lmiltchev
- For "special" checks, I would like to use our Nagios XI as plugin repository and push the plugin using NRDS to the appropriate host group, like the plugin "check_windows_updates.ps1" to all windows servers.
- I don't want NRDS to push any config data, just the plugin to the clients.
Even if you set up a "windows" config under the "NRDS Config Manger" in Nagios XI, with some custom plugins, for example "check_windows_updates.ps1", you would still need to install NRDS on the client in order to push it... This means, you would need to download the "NRDS_Win_xx.exe" and install it on the client. The NRDS task will be set in the Windows Task Scheduler, sending passive checks to the Nagios XI server...

If you are not going to use NRDS, and you are already installing NCPA on each Windows client, why don't you just copy over the script to the NCPA "plugins" directory?

Besides, the the NCPA-NRDS integration was never fully implemented. The [NRDS] section ended up in the ncpa.cfg by mistake. There should be another ("NCPA") section under the "NRDS Config Manager", but this is still a "work in progress". The idea was to manage all of the nrds or ncpa configs from one, central location (the "NRDS Config Manager" in Nagios XI). This way, you won't need to log in to each client and make any changes there.
- After the plugin is copied over to the client, I want to use NCPA active check or NCPA passive check to run the plugin on the "client" site. (example "check_windows_updates.ps1")
Once you have the PS script copied over to the "plugins" directory, you can call it from the Nagios XI server by running:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <ncpaserver> -t <yourtoken> -M agent/plugin/check_windows_updates.ps1