NagVis 1.9.11 in omd 3.0

Hi,

I’ve tried to install nagvis 1.9.11 into omd (OMD - Open Monitoring Distribution Version 3.00-labs-edition) with omd_install.sh.

But it doesn’t work and I got the following errors:
OMD[main@…]:/opt/omd/nagvis/nagvis-1.9.11$ ./omd_install.sh
±-------------------------------------------------------------------+
| This script installs NagVis into the local/ path of your OMD site. |
| The installation in the local/ path will then override the default |
| NagVis installation included with OMD. |
| |
| When installed in local/ path NagVis will use the config and user |
| files of the site. |
| |
| RECOMMENDED ONLY FOR TESTING |
±-------------------------------------------------------------------+
Do you really want to continue? [y] y
Installing…
cp: cannot stat ‘/omd/sites/main/var/nagvis/userfiles/*’: No such file or directory
mkdir: cannot create directory ‘/omd/sites/main/etc/nagvis/conf.d’: No such file or directory
cp: cannot stat ‘/omd/sites/main/etc/nagvis/conf.d/omd.ini.php’: No such file or directory
./omd_install.sh: line 91: /omd/sites/main/etc/nagvis/conf.d/omd.ini.php: No such file or directory
Reloading dedicated Apache for site main
…done.

Any idea?

I guess this script assumes that there is a nagvis in OMD and just replaces a few things. You better raise an issue upstream for Nagvis.

Ok, at the moment I try to migrate to thruk Panorama View.

Hi,
this worked for me

#wget nagvis
#unpack
./install-omd.sh

#keep this files
X local/share/nagvis/htdocs/userfiles/images/shapes
X local/share/nagvis/htdocs/userfiles/images/maps
X local/share/nagvis/htdocs/userfiles/images/iconsets
X local/share/nagvis/htdocs/userfiles/gadgets
X local/share/nagvis/htdocs/userfiles
X var/nagvis/profiles
X etc/nagvis/conf.d/demo.ini.php
X etc/nagvis/nagvis.ini.php
X etc/nagvis/maps
X etc/nagvis

#install
apt install php-gettext
#make some dir
mkdir -p /omd/sites/site/tmp/nagvis/tmpl/compile
mkdir -p /omd/sites/site/tmp/nagvis/tmpl/cache
cp local/share/nagvis/htdocs/userfiles

#EDIT
/omd/sites/site/local/share/nagvis/htdocs/server/core/defines/global.php
.PATH_SEPARATOR.$_base_dir.’/local/share/nagvis/htdocs/server/core/ext/php-gettext-1.0.12’