Nagvis and rotating maps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagvis and rotating maps

Post by benhank »

no. the issue is that I cannot get to the internal website. I think its a htaccess problem
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagvis and rotating maps

Post by abrist »

If the following url needs basic auth credentials, you can specify them from the url, but you will be exposing the credentials in plain text:
http://<user>:<password>@bakerstreet/index.php/current-events/sev-1-new&rotation=atriussites&rotationStep=1
Also, is the domain (bakerstreet) missing the tld, or can you resolve the host "bakerstreet" by name?
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
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagvis and rotating maps

Post by benhank »

I upgraded to the latest version and the issue went away.

But now at the end of the rotation i get

Code: Select all

The requested URL /nagvis/frontend/nagvis-js/index.php was not found on this server.
i have entered this line in my /etc/crond/httpd/

Code: Select all

RewriteEngine   on
RewriteLock     var/log/rewrite.lck
RewriteLog      /dev/null
RewriteLogLevel 0
RewriteRule     /nagvis/ - [E=REMOTE_USER:nagiosadmin]
any ideas?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagvis and rotating maps

Post by abrist »

Latest version of XI? Or latest version of 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
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagvis and rotating maps

Post by benhank »

yes to both
nagvis 1.7.1
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagvis and rotating maps

Post by slansing »

Hmm, it's usually never recommended to travel further than the version of third party software/packages that is provided with your current XI install. This is mostly for compatibility issues, since there are more than several instances where other portions of Nagios/XI require a specific version, and that has to be updated by us. What is the output of:

Code: Select all

ls -la /usr/local/nagvis/share/frontend/nagvis-js/index.php

Code: Select all

ls -la /usr/local/nagvis/share/index.php

Code: Select all

cat /usr/local/nagvis/share/index.php
One thing of note here is that the output you are receiving means that something is pointing to the wrong location for the index.php provided with Nagvis, this is likely one side effect of updating it. I'll go poking around to find where this would be defined and if it can be changed.

Looks like (/usr/local/nagvis/share/index.php) points to (/usr/local/nagvis/share/frontend/nagvis-js/index.php) in my default set up.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagvis and rotating maps

Post by benhank »

thanks man, Ill get that info for you inna bit
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagvis and rotating maps

Post by abrist »

If you updated nagvis to the current version, you will most likely need to clear your browser cache or you will get tons of js errors. Additionally, the newest nagvis does not support ndomy as a backend for automaps, so if you need automapping functionality, you will need to install livestatus.
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
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagvis and rotating maps

Post by benhank »

ok sigh...
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagvis and rotating maps

Post by abrist »

Yeah, maybe I should change my forum subtitle from "I-C-Somethings" to "Ill Omen", "Mr. No", or "Don't shoot! I am just the messenger." I know Bandit would agree. Let us know if you have any further issues.
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.
Locked