Hi,
I'm setting up a script for deployment of the NCPA agent for our servers - which generates a diiferent token password.
Each server will have a different API token... Which has to happen due to policies. The NS client, you could look up the API token eithin an .ini file, but looking at the .ini file for the NCPA client, this information is not located there - is is it somewhere else for the NCPA client?
NCPA API Token Location
Re: NCPA API Token Location
Hi @greenman123, thanks for reaching out.
Information about getting started with NCPA can be found at NCPA Getting Started. This document includes instructions for installation on different OS's, including silent/command line installation, plus information on the ncpa.cfg file.
Hope this helps! For future reference, if you would like an immediate response please consider our Support Plan.
Information about getting started with NCPA can be found at NCPA Getting Started. This document includes instructions for installation on different OS's, including silent/command line installation, plus information on the ncpa.cfg file.
Hope this helps! For future reference, if you would like an immediate response please consider our Support Plan.
Please let us know if you have any other questions or concerns.
-Laura
-Laura
-
greenman123
- Posts: 7
- Joined: Thu Mar 26, 2020 3:54 am
Re: NCPA API Token Location
Hi laura, thanks for your response.
I have already looked at the doc, the .cfg file is on the host Linux box, i'm talking about the NCPA agent on the windows client - when you installed the NSclient, you would get an .ini file containing a token, i'me wondering if something similar is produced with the NCPA agent installation.
I have already looked at the doc, the .cfg file is on the host Linux box, i'm talking about the NCPA agent on the windows client - when you installed the NSclient, you would get an .ini file containing a token, i'me wondering if something similar is produced with the NCPA agent installation.
- jmichaelson
- Posts: 375
- Joined: Wed Aug 23, 2023 1:02 pm
Re: NCPA API Token Location
On the Windows NCPA client, the ini file is
You want to look for the community_string value under the api section.
Code: Select all
C:\Program Files (X86)\Nagios\NCPA\etc\ncpa.cfgPlease let us know if you have any other questions or concerns.
-Jason
-Jason
-
greenman123
- Posts: 7
- Joined: Thu Mar 26, 2020 3:54 am
Re: NCPA API Token Location
Ahh perfect, thank you Jason.
Re: NCPA API Token Location
And if you're using the NCPA 3 (currently in beta) on Windows, it's
Code: Select all
C:\Program Files\Nagios\NCPA\etc\ncpa.cfgActively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Re: NCPA API Token Location
It seems like you've thoroughly explored the documentation and located the configuration file on the host Linux machine.greenman123 wrote: ↑Wed Nov 01, 2023 10:11 am Hi laura, thanks for your response.
I have already looked at the doc, the .cfg file is on the host Linux box, i'm talking about the NCPA agent on the windows client - when you installed the NSclient, you would get an .ini file containing a token, i'me wondering if something similar is produced with the NCPA agent installation.