Nagvis doesn't work in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mohans_15
Posts: 8
Joined: Tue Sep 08, 2015 1:15 am

Nagvis doesn't work in Nagios XI

Post by mohans_15 »

Dear Experts,

I am using Nagios XI 2014 R2 and I am trying to use Nagvis.

In the nagios documentation, I read that Nagvis gets installed by default during the Nagios XI installation.

But I am unable to view any maps rather the nagvis page gives an error when I try to access as below:

Not Found

The requested URL /nagvis/ was not found on this server.

Apache/2.2.15 (Red Hat) Server at cbq2-svu-nagxi1 Port 443


I tried running the install script with root access but I received a permission denied error.

Can you please guide me to check if the nagvis process is running or if it is installed first of all?


Regards

Mohan
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagvis doesn't work in Nagios XI

Post by rkennedy »

From the Nagios XI machine, can you try running wget http://127.0.0.1/nagvis/ and post the result?

It should show you this -

Code: Select all

[root@suse11 etc]# wget http://127.0.0.1/nagvis/
--2016-01-19 09:21:39--  http://127.0.0.1/nagvis/
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
[root@suse11 etc]#
It should be included in your system by default as you mentioned. Was the system upgraded from a version prior to 2012?
Former Nagios Employee
mohans_15
Posts: 8
Joined: Tue Sep 08, 2015 1:15 am

Re: Nagvis doesn't work in Nagios XI

Post by mohans_15 »

No, it was a fresh installation of Nagios XI 2014.
mohans_15
Posts: 8
Joined: Tue Sep 08, 2015 1:15 am

Re: Nagvis doesn't work in Nagios XI

Post by mohans_15 »

wget http://127.0.0.1/nagvis/
--2016-01-20 10:35:54-- http://127.0.0.1/nagvis/
Resolving proxy.cbq.com.qa... 10.2.0.200
Connecting to proxy.cbq.com.qa|10.2.0.200|:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: http://www.cfauth.com/?cfru=aHR0cDovLzE ... 9uYWd2aXMv [following]
--2016-01-20 10:35:54-- http://www.cfauth.com/?cfru=aHR0cDovLzE ... 9uYWd2aXMv
Connecting to proxy.cbq.com.qa|10.2.0.200|:3128... connected.
Proxy request sent, awaiting response... 401 Unauthorized
Authorization failed.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagvis doesn't work in Nagios XI

Post by rkennedy »

From the local machine, I believe Nagvis is installed and working it seems on port 80.

Code: Select all

The requested URL /nagvis/ was not found on this server.

Apache/2.2.15 (Red Hat) Server at cbq2-svu-nagxi1 Port 443
Are you able to access it over http from your machine?
Former Nagios Employee
mohans_15
Posts: 8
Joined: Tue Sep 08, 2015 1:15 am

Re: Nagvis doesn't work in Nagios XI

Post by mohans_15 »

No, it is not working over http as well.

Not Found

The requested URL /nagvis was not found on this server.

Apache/2.2.15 (Red Hat) Server at cbq2-svu-nagxi1 Port 80
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagvis doesn't work in Nagios XI

Post by rkennedy »

Odd, can you post your nagvis apache configuration?

Code: Select all

/etc/httpd/conf.d/nagvis.conf
Former Nagios Employee
mohans_15
Posts: 8
Joined: Tue Sep 08, 2015 1:15 am

Re: Nagvis doesn't work in Nagios XI

Post by mohans_15 »

I don't see this file in the given directory. Please find below:

[root@cbq2-svu-nagxi1 conf.d]# pwd
/etc/httpd/conf.d
[root@cbq2-svu-nagxi1 conf.d]# ls
mrtg.conf nagiosql.conf php.conf ssl.conf.nagiosxibackup
nagios.conf nagiosxi.conf README welcome.conf
nagiosmobile.conf nrdp.conf ssl.conf
[root@cbq2-svu-nagxi1 conf.d]#
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagvis doesn't work in Nagios XI

Post by lmiltchev »

Connecting to proxy.cbq.com.qa|10.2.0.200|:3128... connected.
Proxy request sent, awaiting response... 401 Unauthorized
Authorization failed.
First of all, set up your proxy according to our recommendations posted on our FAQ wiki page:

https://support.nagios.com/wiki/index.p ... th_Proxies

I am not sure why NagVis was not installed with XI - it is shipped with XI and it is present on my test XI 2014R2.7 box...

Try force upgrade on all addons (components, wizards, dashlets, etc.) by running:

Code: Select all

cd /tmp/nagiosxi
./upgrade -f
Note: Backup your Nagios XI server prior to force-upgrading the addons.

See if NagVis will reinstall properly.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked