Page 1 of 1

NCPA API Token Location

Posted: Wed Nov 01, 2023 6:26 am
by greenman123
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?

Re: NCPA API Token Location

Posted: Wed Nov 01, 2023 8:54 am
by lgute
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.

Re: NCPA API Token Location

Posted: Wed Nov 01, 2023 10:11 am
by greenman123
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.

Re: NCPA API Token Location

Posted: Wed Nov 01, 2023 10:16 am
by jmichaelson
On the Windows NCPA client, the ini file is

Code: Select all

C:\Program Files (X86)\Nagios\NCPA\etc\ncpa.cfg
You want to look for the community_string value under the api section.

Re: NCPA API Token Location

Posted: Wed Nov 01, 2023 10:26 am
by greenman123
Ahh perfect, thank you Jason.

Re: NCPA API Token Location

Posted: Wed Nov 01, 2023 1:38 pm
by bbahn
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.cfg

Re: NCPA API Token Location

Posted: Thu Nov 02, 2023 2:05 pm
by Aliyaa
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.
It seems like you've thoroughly explored the documentation and located the configuration file on the host Linux machine.