Nagvis Syntax Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sak
Posts: 4
Joined: Thu Nov 26, 2020 3:32 am

Nagvis Syntax Error

Post by sak »

Hello
I have loaded a backup from a Nagios XI on Centos 6 to a NagiosXI (version 5.7.5) with Centos8, since then there has been an error in Nagvis (ERROR:SYNTAX ERROR - Invalid JSON response). Is this a known problem?
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagvis Syntax Error

Post by ssax »

Did you run the restore_repair script from the backup/restore guide after restoring to recompile your binaries after migrating to the new server?

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Did you set your sql_mode="" for the version of mysqld that is installed on EL8? (you need to on EL8 if you haven't)

https://support.nagios.com/kb/article/n ... n-822.html

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

Attach this file as well:

Code: Select all

/usr/local/nagvis/etc/nagvis.ini.php
You can also try adding this to your /etc/my.cnf.d/client.cnf file under the [client] section:

Code: Select all

init-connect='SET NAMES utf8'
Then restart mysqld:

Code: Select all

systemctl restart mysqld
See if that helps.
sak
Posts: 4
Joined: Thu Nov 26, 2020 3:32 am

Re: Nagvis Syntax Error

Post by sak »

I had already executed the restore_repair.sh script. The entry in the client.cnf did not help.
I send system profiles by PM
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagvis Syntax Error

Post by ssax »

Ok, I'll keep an eye out for the profiles, I don't currently see a PM yet from you.
sak
Posts: 4
Joined: Thu Nov 26, 2020 3:32 am

Re: Nagvis Syntax Error

Post by sak »

Sending a private message does not work for me. Is there another way to send the data securely?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagvis Syntax Error

Post by ssax »

We do not have a method for you to share with us, you could use dropbox or any other method you are allowed to share with us. I'll PM you my email address but make sure to reply to the ticket because I don't check my email often, we work out of our ticketing system.
sak
Posts: 4
Joined: Thu Nov 26, 2020 3:32 am

Re: Nagvis Syntax Error

Post by sak »

The problem has been solved, after an upgrade to version 5.8.0 Nagvis works again without Errors
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagvis Syntax Error

Post by ssax »

That's great to hear, thank you for posting your update. Are we okay to close this and mark it as resolved?
Locked