NCPA Silent Install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
onegative
Posts: 175
Joined: Tue Feb 17, 2015 12:06 pm

NCPA Silent Install

Post by onegative »

G 'Day Customer Support,

Does anyone know whether there is a Silent installation directive to specify a different drive on Windows?

I would really like the ability to specify our standard application drive which is not C:\

Or whether I could simply create a zipped directory of the installation...execute whatever commands to add the services, fw rules and yada, yada, yada...

Looking for info/suggestions on the subject.

Let me know and thanks,
Danny
Last edited by onegative on Thu Sep 28, 2017 2:45 pm, edited 1 time in total.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: NCPA Silent Install

Post by tacolover101 »

i can't find any reference out of the box, but it should be possible with it being opensource. https://github.com/NagiosEnterprises/ncpa

if not currently possible, i imagine there is a %basedir% type variable lurking somewhere that would then allow you to set it to whatever data drive you'd like.
onegative
Posts: 175
Joined: Tue Feb 17, 2015 12:06 pm

Re: NCPA Silent Install

Post by onegative »

Well I tried setting %ProgramFiles(x86)% from the batch file used to initiate the silent install but it still installed under the C:\ProgramFiles(x86) directory.

I took a gander at the build files on github but I am not completely sure I understand where to try and modify the installation basedir.

Plus I do not have a development environment to compile on Windows so I am really unsure how to proceed but I really wish there was a way to pass /BASEDIR directive from the silent install for the installation path...frustrating that an install path variable wasn't included for the silent installation...

If anyone else has a suggestion I am all ears...

Thanks,
Danny
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA Silent Install

Post by lmiltchev »

Danny, currently there is no way to pass a custom location via the NCPA silent installer. However, we are going to try find a workaround (if available). We will do some testing and digging into this, and will get back to you if we find a possible solution/workaround.
Be sure to check out our Knowledgebase for helpful articles and solutions!
onegative
Posts: 175
Joined: Tue Feb 17, 2015 12:06 pm

Re: NCPA Silent Install

Post by onegative »

Thanks for stepping up...not being able to automate installations to preferred logical drives really hamstrings large organizations especially when C: is off limits to teams other than the system administrators.

Many thanks,
Danny
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA Silent Install

Post by lmiltchev »

Danny, try running:

Code: Select all

ncpa-2.0.5.exe /S /TOKEN='token' /D=X:\folder
where "X:\folder" is the path to the installation folder. Place the "/D=xxx" last and don't wrap the path in quotes.

Let us know if this worked for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
onegative
Posts: 175
Joined: Tue Feb 17, 2015 12:06 pm

Re: NCPA Silent Install

Post by onegative »

OUTSTANDING!!!!!!!!!!!!!!!!!!

That worked and exactly how I specified the path.

Did Jake provide that piece of information? It definitely needs to be added to the https://www.nagios.org/ncpa/getting-sta ... nt-install section.

Thank you so much for investigating this...it really simplifies my deployments.

Danny
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA Silent Install

Post by lmiltchev »

This is great! I am glad we were able to help!

Yes, Jake provided this piece of information. He asked me to test it. Initially, it didn't work for me, probably because I was wrapping the path in double quotes or/and not placing the "/D" parameter last. Then I saw this:
/D sets the default installation directory. It must be the last parameter and must not contain any quotes. Only absolute paths are supported.
https://en.wikipedia.org/wiki/Nullsoft_ ... all_System
modified my command, and were able to successfully install NCPA on my D drive. :)

Let us know if it is OK to close this topic, and mark it as "resolved". Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
onegative
Posts: 175
Joined: Tue Feb 17, 2015 12:06 pm

Re: NCPA Silent Install

Post by onegative »

This request can be closed/locked...and thanks...Danny
Locked