Page 1 of 4

Nagvis URL not found

Posted: Wed Jul 08, 2015 10:47 am
by emartine
Nagios XI 2014R2.6
nagvis 1.12
I had nagvis working fine on my test install. But not on my production server. I noticed URL not found. So I ran the install commands as listed on the component.

cd /usr/local/nagiosxi/html/includes/components/nagvis/
chmod +x install.sh
./install.sh

I logged out and back in.... Bu it seems to still be missing something.
[08/Jul/2015:10:29:06 -0500] <MYIP> TLSv1.2 ECDHE-RSA-AES256-SHA384 "GET /nagvis/ HTTP/1.1" 298

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 10:50 am
by abrist
Nagvis ships with XI. The install script is actually for rather old XI versions. You may just be missing the apache vhost files. Lets check:

Code: Select all

cat /etc/httpd/conf.d/nagvis.conf
Also, lets check for the nagvis directory and web files:

Code: Select all

ls -la /usr/local/nagvis

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 10:57 am
by emartine
Neither of those files exist. I tried removing the component and reinstalling it through the manage components section with the same results.

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 11:06 am
by abrist
Try to reinstall nagvis from the xi tarball.

Code: Select all

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/2014/xi-2014r2.6.tar.gz
tar vfxz xi-2014r2.6.tar.gz
cd /tmp/nagiosxi/subcomponents/xicomponents/components/
unzip nagvis.zip
cd nagvis
chmod +x install.sh
./install.sh

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 11:22 am
by emartine
No RPM available?

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 11:24 am
by jdalrymple
NagVis is not a Nagios project. We don't dictate how it gets distributed.

We have *our* RPM install, however for the NagVis portion it's going to do the same thing as what abrist indicated above.

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 11:38 am
by emartine
I ran the above and still no dice.

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 11:42 am
by ssax
abrist wrote:Nagvis ships with XI. The install script is actually for rather old XI versions. You may just be missing the apache vhost files. Lets check:

Code: Select all

cat /etc/httpd/conf.d/nagvis.conf
Also, lets check for the nagvis directory and web files:

Code: Select all

ls -la /usr/local/nagvis
Please run those commands again to see what we have now.

Then run a tail on the httpd error log, try to access Nagvis, and send us the output:

Code: Select all

tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 11:53 am
by emartine
Those files still do not exist.




/var/log/httpd/error_log
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.



/var/log/httpd/ssl_error_log

[Wed Jul 08 11:35:27 2015] [error] [client <myIP>] File does not exist: /var/www/html/nagvis, referer: https://<ServerURL>/nagiosxi/
[Wed Jul 08 11:35:29 2015] [error] [client <myIP>] File does not exist: /var/www/html/nagvis, referer: https://<ServerURL>/nagiosxi/
[Wed Jul 08 11:40:18 2015] [error] [client <myIP>] File does not exist: /var/www/html/nagvis, referer: https://<ServerURL>/nagiosxi/

Re: Nagvis URL not found

Posted: Wed Jul 08, 2015 12:28 pm
by emartine
This is what I get...

[root@ nagvis]# pwd
/tmp/nagiosxi/subcomponents/xicomponents/components/nagvis
[root@ nagvis]# ls -Fla
total 3260
drwxr-xr-x 3 root root 4096 Jul 8 12:16 ./
drwxr-xr-x 3 root root 4096 Jul 8 11:32 ../
-rw-r--r-- 1 root root 1900 Jul 15 2014 add_map_links.inc.php
-rw-r--r-- 1 root root 80 Apr 9 2014 CHANGES.txt
-rwxr-xr-x 1 root root 5861 Nov 4 2014 install.sh*
drwxrwxr-x 6 root root 4096 Apr 18 2011 nagvis-1.5.9/
-rw-r--r-- 1 root root 3298253 Nov 4 2014 nagvis-1.5.9.tar.gz
-rw-r--r-- 1 root root 3327 Jul 15 2014 nagvis.inc.php
-rw-r--r-- 1 root root 596 Apr 9 2014 sanity.sh

[root@ nagvis]# ./install.sh
[root@ nagvis]#

Should I just run the installer manually instead of using the script?