Nagvis php error: unable to see login screen

nagvis
(Anibal Jaquez) #1

Hi,

I’m trying to implement Nagvis on a Fedora server, but I can’t even get to the login screen. I have tried with different versions from 1.9.8 to 1.9.14 and always have the same error string (see the image attached).
I attach my nagvis.ini.php file and a screen with the error message, and here’s a few information of my installation

NagVis version: 1.9.14
Distribution: Fedora 30
Apache version: 2.4.41
PHP version: 7.3.9
Access logs:
GET /nagvis/frontend/nagvis-js/index.php HTTP/1.1" 200 2470 “-” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Error logs: None
Browser: Chrome but it shows the same error for all browsers
SELinux: Permissive
Backend: Ndo

I would really appreciate any help. Thanks in advance.

nagvis.txt (24.5 KB)

#2

Please issue php -m to see whether the module is actually installed.

Edit: if it is, disable SELinux and check whether the message is gone.

(Anibal Jaquez) #3

Here are the modules (installation said everything was OK).
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
libxml
mbstring
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
readline
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zlib

[Zend Modules]

I disabled SELinux but still have the same error.

#4

Depending on the installation options there could be additional requirements (which might not be checked).

The NagVis documentation states that json is builtin since 5.2, but looking at php.net the man page of json_encode shows (PHP 5 >= 5.2.0, PHP 7, PECL json >= 1.2.0) so I’d say the function is available since 5.2.0.
Your listing doesn’t show json so please install the PHP package and retry.

1 Like
(Anibal Jaquez) #5

It worked!

Thank you so much, Wolfgang.