How do I create an NDRP API token?
-
- Posts: 7
- Joined: Tue Jan 09, 2018 1:33 pm
How do I create an NDRP API token?
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.
-
- 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?
you would set this in
/usr/local/nrdp/server/config.inc.php
Edit the line
/usr/local/nrdp/server/config.inc.php
Edit the line
Code: Select all
$cfg['authorized_tokens']=array("YOUR_TOKEN_HERE",);
-
- Posts: 7
- Joined: Tue Jan 09, 2018 1:33 pm
Re: How do I create an NDRP API token?
Thanks Scott. Is this something I would set to whatever I want it to be?
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: How do I create an NDRP API token?
@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.