NagVis not working JSON error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

NagVis not working JSON error

Post by tpwebb »

Hello,

I have upgraded our test environment to Centos 8 and installed manually NagiosXI, there were no errors to this install, I have also restored our production backup file onto this system and it is working.

I am currently running version 5.7.1

I currently have an issue with NagVis when opening it from the menu selection, it comes up with a "Invalid JSON response"


I see you have a fix in 5.7.2 for NagVis, for a Python 3 issue, will this resolve what I have described above?

Regards
Terrence.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: NagVis not working JSON error

Post by tpwebb »

Hello

Turns out that 5.7.2 does fix this problem, however

I now have 2 remaining issues to resolve.

1. After the upgrade I have lost all my maps and presented with the demo maps, I would like to get my maps back?

2 I have a second problem, the monitoring engine will not start, can you also assist?

Thanks again

Terrence
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NagVis not working JSON error

Post by cdienger »

It would be best if you could open a new thread for each unique issue. I'll leave it to you to decide which to address on this thread.

Regarding the Nagvis problem, you may need to restore the /usr/local/nagvis directory. This directory holds all nagvis configuration and it sounds like it may no longer be readable or the config is gone. The backups should contain a copy of it howerver.

For the monitoring engine not starting issue, what errors are you seeing and where exactly? Try starting it directly on the command line with:

Code: Select all

/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: NagVis not working JSON error

Post by tpwebb »

Hello,

Thanks for your reply, lets keep this for the Nagvis problem and I will create another for the monitoring problem.

I have copied the folder from the old to the new and have the entries back but now remain with the JSON error.

Can you assist?

Thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NagVis not working JSON error

Post by cdienger »

Please provide a screenshot showing the error and PM a copy of the nagvis directory as well as a copy of the current CCM configuration. The CCM config can be gathered with:

Code: Select all

mysqldump -uroot -pnagiosxi nagiosql > ccm.sql
Please PM the ccm.sql that the above command creates.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: NagVis not working JSON error

Post by tpwebb »

Hello,

Attached is a copy of the error that Nagvis is getting.
Nagios_Json_error.png
I will send the other information in a PM to you.

Regards

Terrence
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NagVis not working JSON error

Post by cdienger »

I was able to get it to load on a test machine. I will PM a copy of the directory to you to test with. Copy it to the XI machine and then extract it with:

Code: Select all

tar -xzvf nagvis.tar.gz -C /usr/local/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
odino2016
Posts: 9
Joined: Mon Jun 20, 2016 3:53 am

Re: NagVis not working JSON error

Post by odino2016 »

Hi All.
I'm having the same problem, have you solved it? How?

Thanks.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NagVis not working JSON error

Post by cdienger »

The initial issue was fixed with an upgrade to 5.7.2.

https://assets.nagios.com/downloads/nag ... ctions.pdf

Please open a new thread if this doesn't resolve your problem and please include details regarding the system(OS,XI version) and error.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked