Nagvis missing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Nagvis missing

Post by Fred Kroeger »

Just discovered that Nagvis is missing from one of my NagiosXI installations?
When I select Nagvis from the NagiosXI menu I get

Code: Select all

Not Found

The requested URL /nagvis/ was not found on this server.
The latest nagvis component is installed. I ran the installation script as root just to make sure and restarted httpd service.
The nagvis conf file is still missing - /etc/httpd/conf.d/nagvis
I can always copy this from one of my other Nagios servers - just thought I'd let you know in case the installation script can be improved?
Btw - this is one of the NagiosXI 2014R1.9 VMs I downloaded from your site last year. - Just upgraded it to 2014R2.3 - still no Nagvis.

Code: Select all

# cd /usr/local/nagiosxi/html/includes/components/nagvis/
# chmod +x install.sh
# ./install.sh
Not using downloaded repomd.xml because it is older than what we have:
  Current   : Fri Jul 11 09:46:59 2014
  Downloaded: Wed Jul 25 09:43:04 2012
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: mirror.internode.on.net
 * epel: mirror.optus.net
 * extras: mirror.internode.on.net
 * rpmforge: mirror.fairway.ne.jp
 * updates: mirror.internode.on.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-40.el6_6.x86_64 already installed and latest version
Package php-mbstring-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-mysql-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-pdo-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-xml-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-40.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:02
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!


# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
regards.... Fred
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagvis missing

Post by sreinhardt »

The nagvis installer most likely depends on other items set by previous scripts. I would suggest taking a tarball that matches your existing version, unless you want to upgrade, and doing the following:

1) remove or comment out lines 3-6 that encompass an if [ -t 1 ]; then statement.
2) run ./upgrade -f

That should cause nagvis to be reinstalled via the upgrade script with everything in place. At least based on what you showed there, it seems that yum had some issues that might have caused another part of the script to bail, causing nagvis not to get reinstalled.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Nagvis missing

Post by Fred Kroeger »

That worked fine - Nagvis is now available from the menu.
thanks Spenser!

Fred
Locked