Page 1 of 1

Installing NagVis

Posted: Thu Jun 09, 2011 7:34 am
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?

Re: Installing NagVis

Posted: Thu Jun 09, 2011 9:19 am
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.

Re: Installing NagVis

Posted: Tue Jun 14, 2011 2:19 am
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.

Re: Installing NagVis

Posted: Tue Jun 14, 2011 9:52 am
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.

Re: Installing NagVis

Posted: Fri Jun 24, 2011 4:58 am
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

Re: Installing NagVis

Posted: Tue Jun 28, 2011 2:40 pm
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.

Re: Installing NagVis

Posted: Mon Jul 04, 2011 12:48 am
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.

Re: Installing NagVis

Posted: Wed Jul 06, 2011 12:15 pm
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!

Re: Installing NagVis

Posted: Thu Jul 14, 2011 3:53 am
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.

Re: Installing NagVis

Posted: Thu Jul 14, 2011 1:45 pm
by mguthrie
Good deal! Thanks for the update.