NCPA Agent Windows Installation to Different Drive

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

NCPA Agent Windows Installation to Different Drive

Post by mp4783 »

We would like to install the NCPA agent for Windows on the "D:" drive of our Windows servers.

Does anyone know if this is possible? The ".exe" installer command line options do not appear to support any change in the installation location.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA Agent Windows Installation to Different Drive

Post by ssax »

Should be able to pass it in with the /D switch:

Code: Select all

ncpa-1.8.1.exe /S /D=D:\Program Files (x86)\Nagios\NCPA
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Re: NCPA Agent Windows Installation to Different Drive

Post by mp4783 »

Thank you for the suggestion. It did not work. It still installed it on the C: drive.

Any other ideas?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA Agent Windows Installation to Different Drive

Post by lmiltchev »

I don't see an option for specifying a custom drive (install directory) in the "Installing NCPA on Windows" document ("Silent Install" section):

https://assets.nagios.com/downloads/ncp ... on-windows

We will check this out with our developers and get back to you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Re: NCPA Agent Windows Installation to Different Drive

Post by mp4783 »

I finally broke open the exe file and figured out the install "logic" was kept in [NSIS].nsi file. It appears the author is using the NSIS packager. Based upon an admittedly superficial reading of the ini file, it appears the install directory is controlled by the $PROGRAMFILES constant in NSIS.

After reading some of the NSIS documentation and trying several things, the following command line works (option values are obviously fake):

ncpa-1.8.1.exe /S /TOKEN=apiToken /NRDPURL=https://nrdphost.mycompany.com/nrdp /HOST=monitoredhost.mycompany.com /NRDPTOKEN=nrdpToke /D=D:\Program Files (x86)\Nagios\NCPA

The secret is that the "/D=" must go at the end of the command line. The NSIS script sort of suggests this.

I strongly urge you to ask the developer (Scott, you know who you are) to consider updating the documentation.

You may lock this thread.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NCPA Agent Windows Installation to Different Drive

Post by hsmith »

mp4783 wrote:I finally broke open the exe file and figured out the install "logic" was kept in [NSIS].nsi file. It appears the author is using the NSIS packager. Based upon an admittedly superficial reading of the ini file, it appears the install directory is controlled by the $PROGRAMFILES constant in NSIS.

After reading some of the NSIS documentation and trying several things, the following command line works (option values are obviously fake):

ncpa-1.8.1.exe /S /TOKEN=apiToken /NRDPURL=https://nrdphost.mycompany.com/nrdp /HOST=monitoredhost.mycompany.com /NRDPTOKEN=nrdpToke /D=D:\Program Files (x86)\Nagios\NCPA

The secret is that the "/D=" must go at the end of the command line. The NSIS script sort of suggests this.

I strongly urge you to ask the developer (Scott, you know who you are) to consider updating the documentation.

You may lock this thread.
Thank you for your feedback.
I'll take note of this thread!
Former Nagios Employee.
me.
Locked