I was wondering if you could help me with the following issue I’m experiencing after installing NagVis.
I installed NagVis (v1.9.10) on a Raspbian GNU/Linux 9 raspberry pi using the install.sh that comes with NagVis. When I launch my browser and enter the URL http://nagios-server/nagvis/config.php or even http://localhost/nagvis/config.php I get an error from Apache “The requested URL /nagvis/config.php was not found on this server”.
My installation was successful, as I didn’t get any errors for any dependencies or anything else. The NagVis home is /usr/local/nagvis. The path to Apache config directory is /etc/apache2/conf-available.
My path definitions in nagvis.ini.php are as follows:
; absolute physical NagVis path
; absolute html NagVis path
; absolute html NagVis cgi path
The first lines of my nagvis.conf file in /etc/apache2 are as follows:
Alias /nagvis “/usr/local/nagvis/share”
I have followed some instructions that I found in another thread in this forum and changed the permissions of the “compile” folder as follows:
chmod -R 777 /usr/local/nagvis/var/tmpl/compile
I have also disabled SELinux.
The error in the Apache access.log file is as follows:
XXX.XXX.XXX.XXX - - [28/Dec/2018:01:56:51 +1100] “GET /nagvis/config.php HTTP/1.1” 404 506 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36”
Something tells me that the problem has to do with permissions or something like that, but I’m very new with NagVis and don’t know much about Apache configuration either. I would appreciate if you guys could help me.
Thank you in advance for your time.