Nagvis URL not found

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Nagvis URL not found

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagvis URL not found

Post 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
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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagvis URL not found

Post by emartine »

Neither of those files exist. I tried removing the component and reinstalling it through the manage components section with the same results.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagvis URL not found

Post 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
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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagvis URL not found

Post by emartine »

No RPM available?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagvis URL not found

Post 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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagvis URL not found

Post by emartine »

I ran the above and still no dice.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagvis URL not found

Post 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
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagvis URL not found

Post 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/
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagvis URL not found

Post 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?
Locked