Page 1 of 1

Nagvis: network error - failed to execute ajax call

Posted: Mon Jan 22, 2024 12:56 am
by kanners
Hi guys i'm trying to get nagvis running on an already setup nagios server running on centos 7

The web gui loads up ok until you login, then the immediate page will load up with a pop up error:
Network error - failed to execute ajax call. Maybe a network issue or webserver is not available. http status code 500
URL:/nagvis/server/core/ajax_handler.php?mod=Overview&act=getObjectStates&i[]=map-demo-worldmap&_ajaxid=1705902458

httpd logs look like this:

[Mon Jan 22 05:47:40.698281 2024] [:error] [pid 1892] [client 10.89.255.146:51077] PHP Parse error: syntax error, unexpected 'list' (T_LIST) in /usr/local/nagvis/share/server/core/classes/CoreModMultisite.php on line 226, referer: http://xxxxxxx.xxxxxxx.xxxxxx.xxxx.xxx/ ... /index.php
[deprecated]

any help is appreciated, thanks folks !

Re: Nagvis: network error - failed to execute ajax call

Posted: Mon Jan 22, 2024 11:14 am
by danderson
Thanks for reaching out @kanners,

Do you know what version of Nagvis you have?

Re: Nagvis: network error - failed to execute ajax call

Posted: Mon Jan 22, 2024 5:58 pm
by kanners
Nagvis v1.9.39

Re: Nagvis: network error - failed to execute ajax call

Posted: Tue Jan 23, 2024 7:31 pm
by kanners
sorted the issue by updating to php72 - looks like some of the php configs have syntax that the earlier versions don't like

Re: Nagvis: network error - failed to execute ajax call

Posted: Wed Jan 24, 2024 10:35 am
by sgardil
Hey @kanners

Thanks for updating us with your findings. We will look into this more but we can't guarantee that we can add it on our end since nagvis is a third-party software we use. It is great to find a solution for the issue that happens on systems still using php 5.