Page 2 of 4

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 1:04 pm
by ssax
Try this:

Code: Select all

rm /usr/local/nagvis/share/index.php
Then try running the install.sh script.

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 1:13 pm
by lmiltchev
Also, you can try:

Code: Select all

/usr/local/nagiosxi/tools/install_component.php --file=/tmp/nagiosxi/subcomponents/xicomponents/components/nagvis.zip
Let me know if this helped.

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 1:28 pm
by emartine
/usr/local/nagvis/share/index.php: No such file or directory

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 1:34 pm
by emartine
# /usr/local/nagiosxi/tools/install_component.php --file=/tmp/nagiosxi/subcomponents/xicomponents/components/nagvis.zip
TMPNAME: ji5n5
Archive: /tmp/nagiosxi/subcomponents/xicomponents/components/nagvis.zip
creating: nagvis/
inflating: nagvis/add_map_links.inc.php
inflating: nagvis/nagvis.inc.php
inflating: nagvis/CHANGES.txt
inflating: nagvis/sanity.sh
inflating: nagvis/install.sh
nagvis
COMPONENT NAME: nagvis
CMD=grep register_component /usr/local/nagiosxi/tmp/ji5n5/nagvis/nagvis.inc.php | wc -l
1
OUT=1
Component looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/ji5n5/nagvis /usr/local/nagiosxi/html/includes/components/
CMD: rm -rf /usr/local/nagiosxi/tmp/ji5n5
INSTALLING COMPONENT: nagvis
CHECKING FOR INSTALL SCRIPT /usr/local/nagiosxi/html/includes/components/nagvis/install.sh
RUNNING INSTALL SCRIPT...
INSTALL SCRIPT FINISHED. RESULT='1'
CMD: chown -R nagios.nagios /usr/local/nagiosxi/html/includes/components/nagvis
CMD: /bin/chmod -R +x /usr/local/nagiosxi/html/includes/components/nagvis


Done!

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 1:57 pm
by tgriep
Did that resolve the issue?

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 2:39 pm
by emartine
No it did not.

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 3:01 pm
by tgriep
Is the system setup in offline mode and cannot access the internet or behind a proxy server?
Can you try to run the install again like below and post the output?

Code: Select all

cd /usr/local/nagiosxi/html/includes/components/nagvis/
bash -x install.sh

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 3:07 pm
by emartine
cd /usr/local/nagiosxi/html/includes/components/nagvis/
[root@ nagvis]# bash -x install.sh
+ '[' -f /usr/local/nagvis/share/index.php ']'
+ set -e
+ NAGVIS_VER=1.5.9
+ MODE=xi
+ '[' 0 -gt 0 ']'
++ whoami
+ '[' root '!=' root ']'
++ php -v
++ cut '-d ' -f2
++ head -n1
++ cut -d. -f1
+ '[' 5 -lt 5 ']'
++ pwd
+ dldir=/usr/local/nagiosxi/html/includes/components/nagvis
+ rpm -q php
+ PHP_VER=
++ yum info graphviz-gd
++ sed -n '/^Version *: / s///p'
+ GV_VER='2.26.0
2.26.0'
+ rpm -e --nodeps graphviz
[root@ nagvis]#

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 3:23 pm
by tgriep
Run this to see if you can download the nagvis tar file

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/packages/nagvis-1.5.9.tar.gz

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 3:58 pm
by emartine
Yes. I was able to. I also tested that I was able to uncompressed it as well.