Page 1 of 1
NagVis not working JSON error
Posted: Mon Jul 20, 2020 2:50 am
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.
Re: NagVis not working JSON error
Posted: Mon Jul 20, 2020 4:35 am
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
Re: NagVis not working JSON error
Posted: Mon Jul 20, 2020 5:01 pm
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
Re: NagVis not working JSON error
Posted: Mon Jul 20, 2020 8:41 pm
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
Re: NagVis not working JSON error
Posted: Tue Jul 21, 2020 3:48 pm
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.
Re: NagVis not working JSON error
Posted: Tue Jul 21, 2020 10:54 pm
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
Re: NagVis not working JSON error
Posted: Wed Jul 22, 2020 3:52 pm
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/
Re: NagVis not working JSON error
Posted: Tue Sep 15, 2020 4:07 am
by odino2016
Hi All.
I'm having the same problem, have you solved it? How?
Thanks.
Re: NagVis not working JSON error
Posted: Tue Sep 15, 2020 2:44 pm
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.