NCPA API Token Location

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
greenman123
Posts: 7
Joined: Thu Mar 26, 2020 3:54 am

NCPA API Token Location

Post 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?
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: NCPA API Token Location

Post 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.
Please let us know if you have any other questions or concerns.

-Laura
greenman123
Posts: 7
Joined: Thu Mar 26, 2020 3:54 am

Re: NCPA API Token Location

Post 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.
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: NCPA API Token Location

Post 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.
Please let us know if you have any other questions or concerns.

-Jason
greenman123
Posts: 7
Joined: Thu Mar 26, 2020 3:54 am

Re: NCPA API Token Location

Post by greenman123 »

Ahh perfect, thank you Jason.
bbahn
Posts: 380
Joined: Thu Jan 12, 2023 5:42 pm

Re: NCPA API Token Location

Post 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
Actively 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.
Aliyaa
Posts: 8
Joined: Wed Jun 21, 2023 10:38 am
Location: India
Contact:

Re: NCPA API Token Location

Post 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.
Locked