NagViz issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

NagViz issue

Post by ryanam »

Hi all,

I recently installed NagiosXI on a corporate RH VM and everything seems fine except that I'm unable to use NagViz. I saw no errors on installation -

Code: Select all

Not Found

The requested URL /nagvis/ was not found on this server.

Apache/2.2.15 (Red Hat) Server at noc01dev Port 80
What version of Nagios XI are you using? - Latest?? No version information in tar.gz filename.
Linux Distribution and version? Red Hat Enterprise Server release 6.4 (Santiago)
32 or 64bit? 64bit
VMware Image or Manual Install of XI? Manual, I guess. Don't really understnd the question. The install comes from - http://assets.nagios.com/downloads/nagi ... est.tar.gz
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? Nothing additional

I'm not sure how much of the install.log is needed here at this point... like I said... no install errors from what I saw.

Anyone seen this?

Thanks
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: NagViz issue

Post by ryanam »

Additionally, this is the output of /etc/httpd/logs/error_log

Code: Select all

[Thu Oct 24 02:40:16 2013] [error] [client 172.23.0.136] File does not exist: /var/www/html/nagvis, referer: http://noc01dev/nagiosxi/
[Thu Oct 24 02:45:44 2013] [error] [client 172.23.0.136] File does not exist: /var/www/html/nagvis, referer: http://noc01dev/nagiosxi/
[Thu Oct 24 02:47:01 2013] [notice] caught SIGTERM, shutting down
[Thu Oct 24 02:47:43 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Oct 24 02:47:43 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Oct 24 02:47:43 2013] [notice] Digest: done
[Thu Oct 24 02:47:45 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
[Thu Oct 24 03:28:31 2013] [error] [client 172.23.0.136] File does not exist: /var/www/html/nagvis, referer: http://noc01dev/nagiosxi/
[Thu Oct 24 03:29:50 2013] [error] [client 172.23.0.136] File does not exist: /var/www/html/nagvis, referer: http://noc01dev/nagiosxi/
[Thu Oct 24 03:30:33 2013] [error] [client 172.23.0.136] File does not exist: /var/www/html/nagvis, referer: http://noc01dev/nagiosxi/
Which is strange because I just ran the install script for nagios xi like I did on a local VM (which worked).

172.23.0.136 is my LOCAL machine by the way... it's isn't the local host or a monitored node. Just the Windows 7 machine I'm working on.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagViz issue

Post by slansing »

Are you clicking on the nagvis link from Home > NagVis? What internal browser errors is it showing?
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: NagViz issue

Post by ryanam »

Hi,

Yes... doesn't even think about it. Just gives a white background with the old

Not Found

The requested URL /nagvis/ was not found on this server.

Apache/2.2.15 (Red Hat) Server at noc01dev Port 80

error message.

I'm actually on my own home PC now with a working instance of Nagvis... /var/www/html/nagviz (the path which the apache error log states as non-existent) doesn't exist on this machine either. Yet it works :\

Thanks
Last edited by ryanam on Tue Nov 05, 2013 1:32 am, edited 1 time in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagViz issue

Post by abrist »

What does your apache vhost configuration for nagvis look like?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: NagViz issue

Post by ryanam »

Do you know where this is by default?

I know that /etc/httpd/conf/httpd.conf is that standard config but does NagiosXI create one elsewhere?

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagViz issue

Post by lmiltchev »

Run the following commands and show the output:

Code: Select all

ll /usr/local/nagvis/
cat /etc/httpd/conf.d/nagvis.conf
Be sure to check out our Knowledgebase for helpful articles and solutions!
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: NagViz issue

Post by ryanam »

Hi,

Code: Select all

[root@noc01dev ~]# ll /usr/local/nagviz
ls: cannot access /usr/local/nagviz: No such file or directory

Code: Select all

[root@noc01dev ~]# cat /etc/httpd/conf.d/nagviz.conf
cat: /etc/httpd/conf.d/nagviz.conf: No such file or directory
I'll mention again that I did nothing differently here to what I did with the first VM I set up with NagiosXI and the other works perfectly.

I've also tried installing the component from here -

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

which completed without error.

Thanks
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: NagViz issue

Post by ryanam »

Not sure if this helps but here's the cat output for /etc/httpd/conf.d/nagiosxi.conf.

There's nothing in that location for Nagvis for some reason

Code: Select all

[root@noc01dev conf.d]# cat /etc/httpd/conf.d/nagiosxi.conf
<Directory "/usr/local/nagiosxi/html">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
#   AuthName "Nagios XI"
#   AuthType Basic
#   AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
#   Require valid-user
</Directory>

Alias /nagiosxi "/usr/local/nagiosxi/html"
[root@noc01dev conf.d]#
ryanam
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: NagViz issue

Post by ryanam »

And one more piece of info... upon running ./usr/local/nagiosxi/html/includes/components/nagvis/install.sh, this happens - (I assume that the listed dependencies are missing...?)

Code: Select all

[root@noc01dev /]# ./usr/local/nagiosxi/html/includes/components/nagvis/install.sh
This system is receiving updates from Red Hat Subscription Management.
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
This system is receiving updates from RHN Classic or RHN Satellite.
Ignored option -q, -v, -d or -e (probably due to merging: -yq != -y -q)
rhel-6-server-cf-tools-1-rpms                                                                                     | 2.8 kB     00:00
rhel-6-server-rhev-agent-rpms                                                                                     | 3.1 kB     00:00
rhel-6-server-rpms                                                                                                | 3.7 kB     00:00
Setting up Install Process
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-23.el6_4.x86_64 already installed and latest version
Package php-mbstring-5.3.3-23.el6_4.x86_64 already installed and latest version
Package php-mysql-5.3.3-23.el6_4.x86_64 already installed and latest version
Package php-pdo-5.3.3-23.el6_4.x86_64 already installed and latest version
Package php-xml-5.3.3-23.el6_4.x86_64 already installed and latest version
Package php-common-5.3.3-23.el6_4.x86_64 already installed and latest version
Package php-common-5.3.3-23.el6_4.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                      rhel-6-server-rpms                     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 9 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 /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-2012r2.5-1.noarch has missing requires of graphviz
  Installing : graphviz-2.26.0-10.el6.x86_64                                                                                         1/1
rhel-6-server-rpms/productid                                                                                      | 1.7 kB     00:00
  Verifying  : graphviz-2.26.0-10.el6.x86_64                                                                                         1/1

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

Complete!
Restating the service after this does't prove to help.

Thanks
Locked