Page 1 of 2
NagViz issue
Posted: Wed Oct 23, 2013 6:10 pm
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
Re: NagViz issue
Posted: Wed Oct 23, 2013 8:34 pm
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.
Re: NagViz issue
Posted: Thu Oct 24, 2013 10:40 am
by slansing
Are you clicking on the nagvis link from Home > NagVis? What internal browser errors is it showing?
Re: NagViz issue
Posted: Fri Oct 25, 2013 3:58 am
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
Re: NagViz issue
Posted: Fri Oct 25, 2013 1:31 pm
by abrist
What does your apache vhost configuration for nagvis look like?
Re: NagViz issue
Posted: Tue Oct 29, 2013 4:11 pm
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
Re: NagViz issue
Posted: Tue Oct 29, 2013 4:55 pm
by lmiltchev
Run the following commands and show the output:
Code: Select all
ll /usr/local/nagvis/
cat /etc/httpd/conf.d/nagvis.conf
Re: NagViz issue
Posted: Tue Nov 05, 2013 1:25 am
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
Re: NagViz issue
Posted: Tue Nov 05, 2013 1:29 am
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]#
Re: NagViz issue
Posted: Tue Nov 05, 2013 1:35 am
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