Icinga2 & Nagvis

nagvis
icinga2
#1

Hi all!
I’m trying to set-up icinga2 r2.11.2-1 with Nagvis 1.9.16.

When I create a new object I get this error message:

Failed to get objects: Unable to connect to livestatus socket. The socket /usr/local/nagios/var/rw/live in backend live_1 does not exist. Maybe Nagios is not running or restarting

So, I was missing something during the Nagvis installation.
I noticed that there isn’t a control for backends and for Livestatus Socket.
Last thing is that Apache mod_php is MISSING but I can’t understand why.

How to configure nagvis.ini.php?
Backend definitions
[backend_live_1]
backendtype=“mklivestatus”
[backend_ndomy_1]
backendtype=“ndomy”
dbhost=“localhost”
dbname=“icinga2”
dbuser=“yyy”
dbpass=“xxx”
maxtimewithoutupdate=180
htmlcgi="/icinga2/cgi-bin"

thanks in advance!

#2

Add:
socket=“unix:/var/run/icinga2/cmd/livestatus”
in nagvis.ini.php
fix the problem!

#3

Since PHP7 the name of the module changed from mod_php5 to mod_php. Please check whether the correct module is installed. It’s probably not fixed in the install.sh script.