Problem installing NagVis in Nagios Xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gpi
Posts: 23
Joined: Thu Dec 11, 2014 4:03 am

Problem installing NagVis in Nagios Xi

Post by gpi »

After I followed the installation instructions from the System Extensions > Manage Components i got the following output:

[root@nagiosxi nagvis]# ./install.sh -m xi
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
Loaded plugins: fastestmirror
Ignored option -q, -v, -d or -e (probably due to merging: -yq != -y -q)
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.cadt.com
* epel: ftp.cica.es
* extras: centos.cadt.com
* rpmforge: mir01.syntis.net
* updates: mirror.trueinter.net
No package 2.26.0 available.
Package graphviz-gd-2.26.0-10.el6.x86_64 already installed and latest version
Package php-gd-5.3.3-46.el6_6.x86_64 already installed and latest version
Package php-mbstring-5.3.3-46.el6_6.x86_64 already installed and latest version
Package php-mysql-5.3.3-46.el6_6.x86_64 already installed and latest version
Package php-pdo-5.3.3-46.el6_6.x86_64 already installed and latest version
Package php-xml-5.3.3-46.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-46.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-46.el6_6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package graphviz.x86_64 0:2.26.0-10.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================
Installing:
graphviz x86_64 2.26.0-10.el6 base 1.0 M

Transaction Summary
========================================================================================================================================
Install 1 Package(s)

Total download size: 1.0 M
Installed size: 2.7 M
Downloading Packages:
graphviz-2.26.0-10.el6.x86_64.rpm | 1.0 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 8 pre-existing rpmdb problem(s), 'yum check' output follows:
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of /usr/bin/dot
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of graphviz = ('0', '2.26.0', '10.el6')
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libcdt.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libgraph.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libgvc.so.5()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libpathplan.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libxdot.so.4()(64bit)
nagiosxi-deps-2014r1.5-1.noarch has missing requires of graphviz
Installing : graphviz-2.26.0-10.el6.x86_64 1/1
Verifying : graphviz-2.26.0-10.el6.x86_64 1/1

Installed:
graphviz.x86_64 0:2.26.0-10.el6

Complete!
tar (child): nagvis-1.5.9.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem installing NagVis in Nagios Xi

Post by lmiltchev »

After I followed the installation instructions from the System Extensions > Manage Components i got the following output:
Can you elaborate on this? When did you read these instructions? All versions of Nagios XI (2012 and newr) ship with NagVis by default... You don't need to install something that is already installed...
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Problem installing NagVis in Nagios Xi

Post by hsmith »

What happens when you go to Maps ---> Nagvis inside of XI?

I found a thread here that you may want to review.

Let us know.

Thank you.
Former Nagios Employee.
me.
gpi
Posts: 23
Joined: Thu Dec 11, 2014 4:03 am

Re: Problem installing NagVis in Nagios Xi

Post by gpi »

Hi,

Thanks for your replies. I will answer the questions:

1.- The thread that was quoted on the reply, I get the following:

Information
You are not authorised to read this forum. <-- This is funny as I am a registered used, but sometimes it gives me authorization errors on the forum.

2.- Can you elaborate on this? When did you read these instructions? All versions of Nagios XI (2012 and newr) ship with NagVis by default... You don't need to install something that is already installed...

If you go to System Extensions > Manage Components, what you get is what you see (hehehe):
Nagvis

This component brings Nagvis into the maps menu inside of XI. Installation Required! You must login to the server as the root user and run the following commands to complete the installation of this component:
cd /usr/local/nagiosxi/html/includes/components/nagvis/
chmod +x install.sh
./install.sh

Version: 1.12 Author: Nagios Enterprises, LLC User - Download Delete 1.12 Up to date

So, as you can see, it does not comes with Nagvis installed, it comes prepared to be installed, which is different, as in my case it fails.

3.- Going into Maps > Nagvis gives me the following:

Not Found
_____________________________________________________________
The requested URL /nagvis/ was not found on this server.
Apache/2.2.15 (CentOS) Server at nagiosxi.cen.intranet Port 80
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Problem installing NagVis in Nagios Xi

Post by hsmith »

I blame linking a thread you don't have access to on a horrible lack of caffeine!
The problem is with the install script. The wget copies the nagvis-1.5.9.tar.gz to a file called download

run the following command

# mv download nagvis-1.5.9.tar.gz

and rerun the install script
This seems to have helped in the other thread. Can you make sure this isn't what is happening?
Former Nagios Employee.
me.
gpi
Posts: 23
Joined: Thu Dec 11, 2014 4:03 am

Re: Problem installing NagVis in Nagios Xi

Post by gpi »

Hi hsmith,

Well, it looks like you are right, the install script does the following:

wget -qc http://sourceforge.net/projects/nagvis/ ... z/download

replaced it for

wget -qc http://sourceforge.net/projects/nagvis/ ... 5.9.tar.gz

and reran de script, and worked like a dream!!!!

Thanks a lot, now from the maps section I have access to Nagvis.

Thanks once again. Case Closed successfully!
Locked