Hello,
I am having some issues getting Nagvis working on our installation. I keep seeing what looks to be a re-write issue. The error is :
The requested URL /nagvis/ was not found on this server.
However, I did install the piece. The only location I am seeing anything related to nagvis is under /usr/local/nagiosxi/html/includes/components/nagvis/. Where else should I be checking?
Thanks,
John
NAGIOSXI : Broken Nagvis links.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NAGIOSXI : Broken Nagvis links.
Out of curiosity, you did follow this correct?:
[redacted link as it is out of date]
Using the install script listed there? What version of XI are you running currently? And can you run the following right after clicking the Nagvis link in XI and show the output please?:
[redacted link as it is out of date]
Using the install script listed there? What version of XI are you running currently? And can you run the following right after clicking the Nagvis link in XI and show the output please?:
Code: Select all
tail -30 /var/log/httpd/error_logRe: NAGIOSXI : Broken Nagvis links.
Thanks for the reply. The script never finds the nagvis tarbal.
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
The error logs show it looking under /var/www/html/nagvis for the doc root of the install. This does not exist. If a link it, I get permissions errors. If addressing the permissions, it does not render.
Taking a look at the install script :
+ cd /tmp
+ wget -qc http://sourceforge.net/projects/nagvis/ ... z/download
+ tar zxf nagvis-1.5.9.tar.gz
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
So, I pulled it myself. A re-run of the installer :
Total download size: 1.0 M
Installed size: 0
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-2014r1.3-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!
+ cd /tmp
+ wget -qc http://sourceforge.net/projects/nagvis/ ... z/download
+ tar zxf nagvis-1.5.9.tar.gz
+ cd nagvis-1.5.9
+ chmod +x install.sh
+ ./install.sh -b /usr/bin -p /usr/local/nagvis -W /nagvis -u apache -g apache -w /etc/httpd/conf.d -i ndo2db -a y -q
+ cd ..
+ rm -rf /tmp/nagvis-1.5.9 /tmp/nagvis-1.5.9.tar.gz
+ cd /tmp
+ wget -qc http://assets.nagios.com/downloads/nagi ... _config.py
+ chmod +x NagiosXI-Nagvis-adjust_config.py
+ ./NagiosXI-Nagvis-adjust_config.py --mode xi
Updated Nagvis config.
Patched template files.
Adjustment completed!
+ rm NagiosXI-Nagvis-adjust_config.py
+ '[' -f /etc/timezone ']'
++ grep ZONE /etc/sysconfig/clock
++ sed 's/.*"\([^"].*\)".*/\1/'
+ '[' US/Central '!=' '' ']'
++ grep ZONE /etc/sysconfig/clock
++ sed 's/.*"\([^"].*\)".*/\1/'
+ TIMEZONE=US/Central
+ '[' -f /etc/php5/apache2/php.ini ']'
+ '[' -f /etc/php5/php.ini ']'
+ '[' -f /etc/php.ini ']'
+ PHPINI=/etc/php.ini
++ grep -c date.timezone /etc/php.ini
+ '[' 2 -ge 1 ']'
++ grep date.timezone /etc/php.ini
++ grep -c '^;'
+ '[' 1 -ge 1 ']'
+ sed -i 's%\;date\.timezone.*%date\.timezone\ =\ US/Central%' /etc/php.ini
+ '[' xi = xi ']'
+ sed -i s/status.cgi/status.php/ /usr/local/nagvis/etc/automaps/__automap.cfg
+ sed -i s/#AuthName/AuthName/ /etc/httpd/conf.d/nagvis.conf
+ sed -i s/#AuthType/AuthType/ /etc/httpd/conf.d/nagvis.conf
+ sed -i s/#AuthUserFile/AuthUserFile/ /etc/httpd/conf.d/nagvis.conf
+ '[' xi = xi ']'
+ sed -i 's%AuthUserFile.*%AuthUserFile\ /usr/local/nagiosxi/etc/htpasswd.users%' /etc/httpd/conf.d/nagvis.conf
+ sed -i s/#Require/Require/ /etc/httpd/conf.d/nagvis.conf
+ service httpd reload
Reloading httpd:
+ echo ''
+ echo =============================
=============================
+ echo 'NagVis Installation Complete!'
NagVis Installation Complete!
+ echo =============================
=============================
Working now. I had done this same thing using the nagvis install script located /usr/local/nagiosxi/html/includes/components/nagvis/install.sh the first time around. I also had to pull the file myself. It seems that the install leaves the name as 'download'.
Thanks for the help.
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
The error logs show it looking under /var/www/html/nagvis for the doc root of the install. This does not exist. If a link it, I get permissions errors. If addressing the permissions, it does not render.
Taking a look at the install script :
+ cd /tmp
+ wget -qc http://sourceforge.net/projects/nagvis/ ... z/download
+ tar zxf nagvis-1.5.9.tar.gz
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
So, I pulled it myself. A re-run of the installer :
Total download size: 1.0 M
Installed size: 0
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-2014r1.3-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!
+ cd /tmp
+ wget -qc http://sourceforge.net/projects/nagvis/ ... z/download
+ tar zxf nagvis-1.5.9.tar.gz
+ cd nagvis-1.5.9
+ chmod +x install.sh
+ ./install.sh -b /usr/bin -p /usr/local/nagvis -W /nagvis -u apache -g apache -w /etc/httpd/conf.d -i ndo2db -a y -q
+ cd ..
+ rm -rf /tmp/nagvis-1.5.9 /tmp/nagvis-1.5.9.tar.gz
+ cd /tmp
+ wget -qc http://assets.nagios.com/downloads/nagi ... _config.py
+ chmod +x NagiosXI-Nagvis-adjust_config.py
+ ./NagiosXI-Nagvis-adjust_config.py --mode xi
Updated Nagvis config.
Patched template files.
Adjustment completed!
+ rm NagiosXI-Nagvis-adjust_config.py
+ '[' -f /etc/timezone ']'
++ grep ZONE /etc/sysconfig/clock
++ sed 's/.*"\([^"].*\)".*/\1/'
+ '[' US/Central '!=' '' ']'
++ grep ZONE /etc/sysconfig/clock
++ sed 's/.*"\([^"].*\)".*/\1/'
+ TIMEZONE=US/Central
+ '[' -f /etc/php5/apache2/php.ini ']'
+ '[' -f /etc/php5/php.ini ']'
+ '[' -f /etc/php.ini ']'
+ PHPINI=/etc/php.ini
++ grep -c date.timezone /etc/php.ini
+ '[' 2 -ge 1 ']'
++ grep date.timezone /etc/php.ini
++ grep -c '^;'
+ '[' 1 -ge 1 ']'
+ sed -i 's%\;date\.timezone.*%date\.timezone\ =\ US/Central%' /etc/php.ini
+ '[' xi = xi ']'
+ sed -i s/status.cgi/status.php/ /usr/local/nagvis/etc/automaps/__automap.cfg
+ sed -i s/#AuthName/AuthName/ /etc/httpd/conf.d/nagvis.conf
+ sed -i s/#AuthType/AuthType/ /etc/httpd/conf.d/nagvis.conf
+ sed -i s/#AuthUserFile/AuthUserFile/ /etc/httpd/conf.d/nagvis.conf
+ '[' xi = xi ']'
+ sed -i 's%AuthUserFile.*%AuthUserFile\ /usr/local/nagiosxi/etc/htpasswd.users%' /etc/httpd/conf.d/nagvis.conf
+ sed -i s/#Require/Require/ /etc/httpd/conf.d/nagvis.conf
+ service httpd reload
Reloading httpd:
+ echo ''
+ echo =============================
=============================
+ echo 'NagVis Installation Complete!'
NagVis Installation Complete!
+ echo =============================
=============================
Working now. I had done this same thing using the nagvis install script located /usr/local/nagiosxi/html/includes/components/nagvis/install.sh the first time around. I also had to pull the file myself. It seems that the install leaves the name as 'download'.
Thanks for the help.