ncpa wizard does not work, (bad token)
ncpa wizard does not work, (bad token)
I have NCPA installed and running on a system, and it works. I can access the web interface from another system using the community_string/token.But in the NCPA Wizard first page I get a pink rectangle that says "Bad token for connection. i am running the latest version of ncpa and latest version of nagios xi, what seems to be the issue with the web wizard
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: ncpa wizard does not work, (bad token)
Hello @rnjie,
Are you using any special characters/string in the token that could be causing some issues? Can you test this with a simplified token string to rule this out.
Also, are you able to run check_ncpa from the command line on the Nagios XI server and communicate with NCPA on the remote hsot.
Example command:
Are you using any special characters/string in the token that could be causing some issues? Can you test this with a simplified token string to rule this out.
Also, are you able to run check_ncpa from the command line on the Nagios XI server and communicate with NCPA on the remote hsot.
Example command:
Code: Select all
./check_ncpa.py -H <ip-address> -t 'token' -M cpu/percent
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ncpa wizard does not work, (bad token)
my token doesnt have any special characters, please see below output of cpu from command line
libexec]# ./check_ncpa.py -H lxaoswe4 -t plut0 -M cpu/percent
OK: Percent was 2.00 %, 3.90 % | 'percent_0'=2.00%;;; 'percent_1'=3.90%;;;
libexec]# ./check_ncpa.py -H lxaoswe4 -t plut0 -M cpu/percent
OK: Percent was 2.00 %, 3.90 % | 'percent_0'=2.00%;;; 'percent_1'=3.90%;;;
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: ncpa wizard does not work, (bad token)
Hi @rnjie,
Interesting, it should work. To date, I'm not aware of any similar issues with the NCPA wizard., What version are you using? Go to Admin > System Extensions > Manage Config Wizards and scroll down to the NCPA wizard.
Also, please tail the apache log file while you are connecting to NCPA in step one, and post the error output for us to review.
Thanks.
Interesting, it should work. To date, I'm not aware of any similar issues with the NCPA wizard., What version are you using? Go to Admin > System Extensions > Manage Config Wizards and scroll down to the NCPA wizard.
Also, please tail the apache log file while you are connecting to NCPA in step one, and post the error output for us to review.
Code: Select all
tail -f /var/log/httpd/*error_log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ncpa wizard does not work, (bad token)
see output for above command
[Wed May 15 14:17:12.539593 2019] [:error] [pid 13467] [client 10.3.99.152:63651] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php on line 164, referer: http://10.2.102.83/nagiosxi/config/monitoringwizard.php
[Wed May 15 14:17:12.539593 2019] [:error] [pid 13467] [client 10.3.99.152:63651] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php on line 164, referer: http://10.2.102.83/nagiosxi/config/monitoringwizard.php
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: ncpa wizard does not work, (bad token)
Hi @rnjie,
Please make a backup of your system, then delete the old NCPA wizard and install the latest version ( see attachment) and try again.
References:
Backing Up And Restoring Your Nagios XI System
Installing Configuration Wizards
Please make a backup of your system, then delete the old NCPA wizard and install the latest version ( see attachment) and try again.
References:
Backing Up And Restoring Your Nagios XI System
Installing Configuration Wizards
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ncpa wizard does not work, (bad token)
is this the only solution? what is going to happen to the existing hosts? also it works when i re-add existing hosts but just not on new ones, i need to know the risks for uninstalling and installing again, i have two different severs running a nagios xi and they both have this issue,too much of a coincidence.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: ncpa wizard does not work, (bad token)
Hi @rnjie,
Ok, I will talk to development on your issue, so please wait before making any changes to your system.
Ok, I will talk to development on your issue, so please wait before making any changes to your system.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: ncpa wizard does not work, (bad token)
Hello @rnjie,
I just checked and there was a bug a couple versions back, so I would update to the latest version 2.0.6. You can go to Admin > Manage Config Wizards and select the Check for Updates button to be able to download the latest version from the XI interface.
There was a change to the services and processes endpoints in 12/2017 that could affect previous configurations (they would need to be updated from the Core Configuration Manager).
See: NCPA - Service And Process Changes To API Endpoint
If you have a test system, we always recommend updating and the test server before making changes to the production server.
Let me know if you have any questions.
I just checked and there was a bug a couple versions back, so I would update to the latest version 2.0.6. You can go to Admin > Manage Config Wizards and select the Check for Updates button to be able to download the latest version from the XI interface.
There was a change to the services and processes endpoints in 12/2017 that could affect previous configurations (they would need to be updated from the Core Configuration Manager).
See: NCPA - Service And Process Changes To API Endpoint
If you have a test system, we always recommend updating and the test server before making changes to the production server.
Let me know if you have any questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ncpa wizard does not work, (bad token)
i checked and it says ncpa is up to date but its running 2.0.4, if i update my nagios xi will it update the ncpa wizard to 2.0.6 as well? cuz am currently running nagios xi 5.6.0
You do not have the required permissions to view the files attached to this post.