Page 1 of 1

Nagvis Syntax Error

Posted: Tue Dec 01, 2020 1:20 am
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?

Re: Nagvis Syntax Error

Posted: Wed Dec 02, 2020 12:02 pm
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.

Re: Nagvis Syntax Error

Posted: Fri Dec 04, 2020 1:06 am
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

Re: Nagvis Syntax Error

Posted: Fri Dec 04, 2020 3:31 pm
by ssax
Ok, I'll keep an eye out for the profiles, I don't currently see a PM yet from you.

Re: Nagvis Syntax Error

Posted: Thu Dec 10, 2020 4:27 am
by sak
Sending a private message does not work for me. Is there another way to send the data securely?

Re: Nagvis Syntax Error

Posted: Thu Dec 10, 2020 4:35 pm
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.

Re: Nagvis Syntax Error

Posted: Wed Jan 20, 2021 7:41 am
by sak
The problem has been solved, after an upgrade to version 5.8.0 Nagvis works again without Errors

Re: Nagvis Syntax Error

Posted: Wed Jan 20, 2021 5:46 pm
by ssax
That's great to hear, thank you for posting your update. Are we okay to close this and mark it as resolved?