Installing NagVis

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ditlevw
Posts: 29
Joined: Fri Apr 01, 2011 3:25 am

Installing NagVis

Post by ditlevw »

Hi guys

I'm trying to install NagVis and it seems that something goes wrong. The question is why? I've tried to follow the dokumentation -> http://assets.nagios.com/downloads/nagi ... ith_XI.pdf, but...

Code: Select all

[root@localhost tmp]# ./NagiosXI-Nagvis.sh 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.softaculous.com
 * epel: ftp.nluug.nl
 * extras: mirrors.se.kernel.org
 * updates: mirrors.se.kernel.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
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
---> Package php-xml.i386 0:5.1.6-27.el5_5.3 set to be updated
--> 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: mirror.softaculous.com
 * epel: ftp.nluug.nl
 * extras: mirrors.se.kernel.org
 * updates: mirrors.se.kernel.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.
Reloading httpd: [  OK  ]

=============================
NagVis Installation Complete!
=============================
[root@localhost tmp]# 
I can see there are a problem at the dependency resolvation. Does it make sense to any of you?
Ditlev - Nagios newbie

Nagios XI, 2011R1.6, 32bit

Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Installing NagVis

Post by tonyyarusso »

The PHP part I'll probably need to take a look at - things got a bit weird when they added 5.3 to the repo as a separate package. The graphviz part looks like an error on the part of the EPEL admins.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
ditlevw
Posts: 29
Joined: Fri Apr 01, 2011 3:25 am

Re: Installing NagVis

Post by ditlevw »

tonyyarusso wrote:The PHP part I'll probably need to take a look at - things got a bit weird when they added 5.3 to the repo as a separate package. The graphviz part looks like an error on the part of the EPEL admins.
EPEL admins? Did I miss something in the documentation? As I mentioned in another thread, I'm running Nagios XI on a VM server ESX 4.1 with VM tools installed.
Ditlev - Nagios newbie

Nagios XI, 2011R1.6, 32bit

Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Installing NagVis

Post by tonyyarusso »

EPEL is a third-party package repository for Red Hat and CentOS - http://fedoraproject.org/wiki/EPEL. The people running that are responsible for making the packages all work nicely with each other, and I suspect a failure on that point here.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
stbaldock
Posts: 4
Joined: Fri Jun 24, 2011 4:45 am

Re: Installing NagVis

Post by stbaldock »

Any news on this yet?

I'm trialling various Nagios-based products, incl. Nagios XI. I do like the look of NagVis, which I've played with on OpsView. I prefer the functionality/look of Nagios XI, but the non-functioning NagVis is holding me back from recommending it to my boss!

Is there a manual workaround for installing it?

Steve Baldock
Network infrastructure Specialist
Sussex Downs College
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing NagVis

Post by lmiltchev »

We are trying to fix the "php53-common conflicts with php-common" error. We will have to work on our install script to reflect the latest changes in php. There is a bug report posted on the bug tracker. You can see it at:
http://tracker.nagios.com/view.php?id=169
There is a possible bug in yum as well or at least an issue with the way how repositories are laid out configured. There is more information here:
http://bugs.centos.org/view.php?id=4927#c12857

I have tried a "workaround" solution - not very pretty but it worked on my test machine. You can try it at your own risk.
Run as a root:
# yum downgrade graphviz-2.12-8.el5
# yum install yum-versionlock
# echo "graphviz-2.12-8.el5.i386" >>/etc/yum/pluginconf.d/versionlock.list
# echo "php-common-5.1.6-27.el5_5.3.i386" >>/etc/yum/pluginconf.d/versionlock.list

Then edit the file /etc/yum.repos.d/CentOS-Base.repo, by adding this line both under [base] and [updates]: exclude=php53*

Install NagVis following our documentation:
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

Before you try to access NagVis in your browser by: http://<yourserver>/nagvis, open your /etc/httpd/conf.d/nagvis.conf file, find the line that starts with AuthUserFile and change "nagios" to "nagioxi". It should look something like this: AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users

After this, you can try logging in with your nagiosxi username and password.

When we come up with a better solution, you can apply it and then comment out (or delete) the "exclude=php53*" line in the /etc/yum.repos.d/CentOS-Base.repo.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ditlevw
Posts: 29
Joined: Fri Apr 01, 2011 3:25 am

Re: Installing NagVis

Post by ditlevw »

lmiltchev wrote:We are trying to fix the "php53-common conflicts with php-common" error. We will have to work on our install script to reflect the latest changes in php. There is a bug report posted on the bug tracker. You can see it at:
http://tracker.nagios.com/view.php?id=169
There is a possible bug in yum as well or at least an issue with the way how repositories are laid out configured. There is more information here:
http://bugs.centos.org/view.php?id=4927#c12857

I have tried a "workaround" solution - not very pretty but it worked on my test machine. You can try it at your own risk.
Run as a root:
# yum downgrade graphviz-2.12-8.el5
# yum install yum-versionlock
# echo "graphviz-2.12-8.el5.i386" >>/etc/yum/pluginconf.d/versionlock.list
# echo "php-common-5.1.6-27.el5_5.3.i386" >>/etc/yum/pluginconf.d/versionlock.list

Then edit the file /etc/yum.repos.d/CentOS-Base.repo, by adding this line both under [base] and [updates]: exclude=php53*

Install NagVis following our documentation:
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

Before you try to access NagVis in your browser by: http://<yourserver>/nagvis, open your /etc/httpd/conf.d/nagvis.conf file, find the line that starts with AuthUserFile and change "nagios" to "nagioxi". It should look something like this: AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users

After this, you can try logging in with your nagiosxi username and password.

When we come up with a better solution, you can apply it and then comment out (or delete) the "exclude=php53*" line in the /etc/yum.repos.d/CentOS-Base.repo.


Thank you very much for your answer. I'll be waiting for the final solution to this issue.
Ditlev - Nagios newbie

Nagios XI, 2011R1.6, 32bit

Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Installing NagVis

Post by agriffin »

Our NagVis installation script has been updated. If you follow the steps in that document again it should work this time. Let us know if you have any more troubles!
ditlevw
Posts: 29
Joined: Fri Apr 01, 2011 3:25 am

Re: Installing NagVis

Post by ditlevw »

agriffin wrote:Our NagVis installation script has been updated. If you follow the steps in that document again it should work this time. Let us know if you have any more troubles!
Thanks. It seems to work like a charm.
Ditlev - Nagios newbie

Nagios XI, 2011R1.6, 32bit

Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Installing NagVis

Post by mguthrie »

Good deal! Thanks for the update.
Locked