Page 1 of 1

NCPA_AUTO_INSTALL

Posted: Mon Aug 10, 2020 6:46 am
by yybadrou
Hi,

I am using NAGIOS XI to monitor my network infrastructure ( more than 200 Windows Host) , I am planning to use The new NCPA Client.
Given that I will use a custom installation ( customized Bind IP, and customized Port, customized allowed host in the ncpa.cfg file). Is there any way to perform the installation using a command line in power-shell? I want to use a GPO for that so I wanna know of there is a way to do that using a command with arguments, so that I can perform the installation in my 200 equipments easily and quickly!

Thank you

Re: NCPA_AUTO_INSTALL

Posted: Mon Aug 10, 2020 7:42 am
by mbellerue
Absolutely! Check out the NCPA Windows documentation on the Silent Installation method.
https://www.nagios.org/ncpa/getting-sta ... nt-install

Re: NCPA_AUTO_INSTALL

Posted: Tue Aug 11, 2020 2:38 am
by yybadrou
Hi,

Thank you for you answer, That's is clear, however I can't find the variable for the allowed host in order to accept the supervision only from the Nagios server. ANY HELP

Thank you

Re: NCPA_AUTO_INSTALL

Posted: Tue Aug 11, 2020 11:12 am
by mbellerue
Ah, I missed the allowed hosts part. It looks like that configuration isn't part of the silent install. One thing you could do is just have a standard ncpa.cfg file out on the network share along size the script that installs NCPA. Once NCPA is installed, the script could copy the standard config to the server, and restart the NCPA Listener service.

Re: NCPA_AUTO_INSTALL

Posted: Wed Aug 12, 2020 1:46 am
by yybadrou
Yes, I have thught about that solution, I can prepare a standard ncpa.cfg file with the desired allowed host inside, but when i will dispatch it to my infrastructure, it will replace the last ncpa.cfg file that was built thanks to the silent install. so It is a little bit complicated :/

Re: NCPA_AUTO_INSTALL

Posted: Wed Aug 12, 2020 2:06 pm
by ssax
You'll need to Install first, then replace the ncpa.cfg, then restart the services.

I have submitted a feature request on your behalf for this:

https://github.com/NagiosEnterprises/ncpa/issues/667

Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Thank you!