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.
NCPA Agent Windows Installation to Different Drive
Re: NCPA Agent Windows Installation to Different Drive
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\NCPARe: NCPA Agent Windows Installation to Different Drive
Thank you for the suggestion. It did not work. It still installed it on the C: drive.
Any other ideas?
Any other ideas?
Re: NCPA Agent Windows Installation to Different Drive
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.
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!
Re: NCPA Agent Windows Installation to Different Drive
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.
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.
Re: NCPA Agent Windows Installation to Different Drive
Thank you for your feedback.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.
I'll take note of this thread!
Former Nagios Employee.
me.
me.