How do I create an NDRP API token?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
espressobeanies
Posts: 7
Joined: Tue Jan 09, 2018 1:33 pm

How do I create an NDRP API token?

Post by espressobeanies »

I'm trying to figure out how to create an NDRP API token for my Nagios Core install and I'm not sure how to generate the token itself. Do I define it myself or does core use a generator and if I define it myself, are there any character limitations or restrictions the token must abide by? Thanks in advance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How do I create an NDRP API token?

Post by scottwilkerson »

you would set this in
/usr/local/nrdp/server/config.inc.php

Edit the line

Code: Select all

$cfg['authorized_tokens']=array("YOUR_TOKEN_HERE",);
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
espressobeanies
Posts: 7
Joined: Tue Jan 09, 2018 1:33 pm

Re: How do I create an NDRP API token?

Post by espressobeanies »

Thanks Scott. Is this something I would set to whatever I want it to be?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How do I create an NDRP API token?

Post by npolovenko »

@espressobeanies, I think tokens can contain either letters(uppercase or lowercase) and numbers, no special characters.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked