Page 1 of 1

Nagvis - Geomap Error 500

Posted: Wed Jan 27, 2021 5:26 am
by nuclearbass
Hello,

We're having an issue since the first installation of NagiosXI and even after updating it.
When creating a Geomap on Nagvis, the display works well. But an error message comes instantly saying :
Got empty response from server (code: 500). Take a look at the web server error log for details.
When looking to the /var/log/httpd/error_log we have this :
[Wed Jan 27 11:15:10.576602 2021] [:error] [pid 1839] [client 10.10.101.249:20011] PHP Fatal error: Call to a member function fetch() on a non-object in /usr/local/nagvis/share/server/core/classes/GlobalBackendPDO.php on line 488, referer: http://10.10.101.103/nagvis/frontend/na ... ow=Geotest
I don't understand what is happening.
NagiosXI is running on 5.8.1 and it seems Nagvis is running on 1.9.8 ( but 1.9.23 is available) ;
For everything I read, we can't upgrade nagvis alone when we're using nagiosXI right?

Re: Nagvis - Geomap Error 500

Posted: Wed Jan 27, 2021 6:47 pm
by benjaminsmith
Hi,

NagVis is a third party product and specific versions are integrated into Nagios XI, so it doesn't always have the latest release.

What operating system are you using? I just set up a quick test on Cent 7 running XI 5.8.1, and it seems to be working.

Best Regards,
Benjamin

Re: Nagvis - Geomap Error 500

Posted: Fri Jan 29, 2021 6:07 am
by nuclearbass
It's a Centos-7. I installed the .ova file from the previous release, then upgraded nagiosXI from the GUI.
Nagvis works fine when it comes to the rest. But it's only the geomap part which is not working.

Re: Nagvis - Geomap Error 500

Posted: Fri Jan 29, 2021 4:53 pm
by ssax
This is working properly on my EL7 system.

Please run this command as root and PM me the resulting /tmp/NAGVISFILES.zip file:

Code: Select all

zip -r /tmp/NAGVISFILES.zip /usr/local/nagvis
What PHP version are you running?

Code: Select all

php -v

Re: Nagvis - Geomap Error 500

Posted: Mon Feb 01, 2021 4:33 am
by nuclearbass
Hello,

Result of the command is :
PHP 5.4.16 (cli) (built: Apr 1 2020 04:07:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
I'll send it to you right now by email.

Re: Nagvis - Geomap Error 500

Posted: Mon Feb 01, 2021 6:52 pm
by ssax
Please try this:

Code: Select all

mv /usr/local/nagvis/etc/worldmap.db /usr/local/nagvis/etc/worldmap.db.OLD
Then go back to Home > Nagvis and see if that works.

Re: Nagvis - Geomap Error 500

Posted: Wed Feb 03, 2021 3:24 am
by nuclearbass
Thanks, that seems to work :)

Re: Nagvis - Geomap Error 500

Posted: Wed Feb 03, 2021 8:31 am
by scottwilkerson
nuclearbass wrote:Thanks, that seems to work :)
Great!

Locking thread