Installing and integrating Nagvis to NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Installing and integrating Nagvis to NagiosXI

Post by srrhd »

Hi,

I have installed Nagvis following Integrating_Nagvis_With_XI.pdf 's instructions but when trying to access the Nagvis' web page. The NagiosXI login doesn't work.

Prompt during installation:
[root@localhost tmp]# ./NagiosXI-Nagvis.sh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.crazyfrogs.org
* epel: mirror.switch.ch
* extras: centos.crazyfrogs.org
* rpmforge: fr2.rpmfind.net
* updates: centos.crazyfrogs.org
Setting up Install Process
Package graphviz-2.22.0-4.el5.rf.i386 already installed and latest version
Package php-gd-5.1.6-27.el5_5.3.i386 already installed and latest version
Package php-mbstring-5.1.6-27.el5_5.3.i386 already installed and latest version
Package php-mysql-5.1.6-27.el5_5.3.i386 already installed and latest version
Package php-pdo-5.1.6-27.el5_5.3.i386 already installed and latest version
Package php-xml-5.1.6-27.el5_5.3.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package graphviz-gd.i386 0:2.12-8.el5 set to be updated
--> Processing Dependency: graphviz = 2.12-8.el5 for package: graphviz-gd
--> Finished Dependency Resolution
graphviz-gd-2.12-8.el5.i386 from epel has depsolving problems
--> Missing Dependency: graphviz = 2.12-8.el5 is needed by package graphviz-gd-2.12-8.el5.i386 (epel)
Error: Missing Dependency: graphviz = 2.12-8.el5 is needed by package graphviz-gd-2.12-8.el5.i386 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.crazyfrogs.org
* epel: mirror.switch.ch
* extras: centos.crazyfrogs.org
* rpmforge: fr2.rpmfind.net
* updates: centos.crazyfrogs.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-json.i386 0:1.2.1-4.el5 set to be updated
---> Package php53-common.i386 0:5.3.3-1.el5_6.1 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-1.el5_6.1.i386 from updates has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
Rechargement de httpd : [ OK ]

=============================
NagVis Installation Complete!
=============================
Log for authentification:
[Tue May 24 15:41:02 2011] [error] [client 192.168.80.10] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Tue May 24 15:41:02 2011] [error] [client 192.168.80.10] access to /nagvis failed, reason: verification of user id 'nagiosadmin' not configured
The file /usr/local/nagios/etc/htpasswd.users doesn't exist. Do i need to create it or is it supposed to use an other authentication process that was not installed because of the dependences problem ?
Last edited by srrhd on Wed May 25, 2011 9:01 am, edited 1 time in total.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Installing and integrating Nagvis to NagiosXI

Post by srrhd »

I solved the problem using:
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
If there is a better way, please let me now.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA

Re: Installing and integrating Nagvis to NagiosXI

Post by tonyyarusso »

Change the NagVis configuration file to use /usr/local/nagiosxi/etc/htpasswd.users instead. I'll take a look at the script to see why it's trying the wrong one.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Installing and integrating Nagvis to NagiosXI

Post by srrhd »

Thanks Tony,

Works perfectly !I should have guess this one... :oops:
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA

Re: Installing and integrating Nagvis to NagiosXI

Post by tonyyarusso »

Glad to know this is sorted. Let us know if you have any other issues.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/