Nagios XI 'Network Status Map' will not open

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Nagios XI 'Network Status Map' will not open

Post by thur686 »

Ok, here is the output:

Code: Select all

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI 'Network Status Map' will not open

Post by lmiltchev »

How many hosts & services are you monitoring? Can you see both maps in Nagios Core - the "new" map, and the "Legacy" one?
Be sure to check out our Knowledgebase for helpful articles and solutions!
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Nagios XI 'Network Status Map' will not open

Post by thur686 »

This server is just a lab, less than 100 hosts, less than 700 services. But this problem is on every Nagios XI server we have, even those that are not fully deployed with only a few hosts.

Yes, both of the core network maps work, but I had to fix them. As an early troubleshooting step, I checked the core network maps and found an error. Two image files were missing from the logos directory causing an error message when you clicked on the map links. I just copied them from the 'nagioscore/ui/images/logos' directory to the 'nagios/share/images/logos' directory and chmod'd them, problem solved. However to my dismay the Nagiosxi network map problem persisted.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI 'Network Status Map' will not open

Post by lmiltchev »

Two image files were missing from the logos directory causing an error message when you clicked on the map links. I just copied them from the 'nagioscore/ui/images/logos' directory to the 'nagios/share/images/logos' directory and chmod'd them, problem solved.
I've seen this before, and I fixed it the same way. :)
But this problem is on every Nagios XI server we have, even those that are not fully deployed with only a few hosts.
This is really strange. Did you use our Nagios XI images or you installed from source?

Can you post the cgi.cfg?

Run the following commands, and show the output:

Code: Select all

ll -d /usr/local/nagios/share
ll /usr/local/nagios/share
Can you view the Hypermap?
Be sure to check out our Knowledgebase for helpful articles and solutions!
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Nagios XI 'Network Status Map' will not open

Post by thur686 »

Thanks lmiltchev,

We used a NagiosXI CentoOS virtual image for all of our XI servers.

Here is the cgi from '/usr/local/nagios/etc/cgi.cfg'

Code: Select all

# MODIFIED
default_statusmap_layout=6

# UNMODIFIED
action_url_target=_blank
authorized_for_all_host_commands=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_system_information=nagiosadmin
default_statuswrl_layout=4
escape_html_tags=1
lock_author_names=1
main_config_file=/usr/local/nagios/etc/nagios.cfg
notes_url_target=_blank
physical_html_path=/usr/local/nagios/share
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
show_context_help=0
url_html_path=/nagios
use_authentication=1
use_pending_states=1
use_ssl_authentication=0
authorized_for_read_only=manager
ll -d /usr/local/nagios/share

Code: Select all

drwxrwxr-x 18 nagios nagios 4096 Nov 17 11:55 /usr/local/nagios/share
ll /usr/local/nagios/share

Code: Select all

drwxr-xr-x   2 root   root   4096 Jan  5  2015 ajaxterm
drwxrwxr-x   4 nagios nagios 4096 Nov 17 11:55 angularjs
drwxrwxr-x   3 nagios nagios 4096 Nov 17 11:55 bootstrap-3.3.0
-rw-rw-r--   1 nagios nagios  576 Nov 17 11:55 config.inc.php
drwxrwxr-x   2 nagios nagios 4096 Nov 17 11:55 contexthelp
drwxrwxr-x   2 nagios nagios 4096 Nov 17 11:55 d3
drwxrwxr-x   3 nagios nagios 4096 Jan  5  2015 docs
-rw-rw-r--   1 nagios nagios  879 Nov 17 11:55 graph-header.html
-rw-rw-r--   1 nagios nagios 4136 Nov 17 11:55 histogram-form.html
-rw-rw-r--   1 nagios nagios 5579 Nov 17 11:55 histogram-graph.html
-rw-rw-r--   1 nagios nagios 2855 Nov 17 11:55 histogram.html
-rw-rw-r--   1 nagios nagios 2372 Nov 17 11:55 histogram-links.html
drwxrwxr-x   3 nagios nagios 4096 Nov 17 11:55 images
drwxrwxr-x   3 nagios nagios 4096 Nov 17 11:55 includes
-rw-rw-r--   1 nagios nagios 1653 Nov 17 11:55 index.php
-rw-rw-r--   1 nagios nagios 1660 Nov 17 11:55 infobox.html
drwxrwxr-x   2 nagios nagios 4096 Nov 17 11:55 js
-rw-rw-r--   1 nagios nagios 1177 Nov 17 11:55 jsonquery.html
drwxr-xr-x   4 root   root   4096 Jan  5  2015 locale
-rw-rw-r--   1 nagios nagios 8745 Nov 17 11:55 main.php
-rw-rw-r--   1 nagios nagios 1967 Nov 17 11:55 map-directive.html
-rw-rw-r--   1 nagios nagios 3824 Nov 17 11:55 map-form.html
-rw-rw-r--   1 nagios nagios 2627 Nov 17 11:55 map.html
-rw-rw-r--   1 nagios nagios  623 Nov 17 11:55 map-links.html
-rw-rw-r--   1 nagios nagios 1723 Nov 17 11:55 map-popup.html
drwxrwxr-x   2 nagios nagios 4096 Jan  5  2015 media
drwxrwxr-x 109 nagios nagios 4096 Feb  8 10:36 perfdata
drwxr-xr-x   8 nagios nagios 4096 Jan  5  2015 pnp
-rw-rw-r--   1 nagios nagios   26 Nov 17 11:55 robots.txt
-rw-rw-r--   1 nagios nagios  657 Nov 17 11:55 rss-corebanner.php
-rw-rw-r--   1 nagios nagios 1071 Nov 17 11:55 rss-corefeed.html
-rw-rw-r--   1 nagios nagios  898 Nov 17 11:55 rss-corefeed.php
-rw-rw-r--   1 nagios nagios  544 Nov 17 11:55 rss-newsfeed.html
-rw-rw-r--   1 nagios nagios 1068 Nov 17 11:55 rss-newsfeed.php
-rw-rw-r--   1 nagios nagios 6275 Nov 17 11:55 side.php
drwxrwxr-x   2 nagios nagios 4096 Nov 17 11:55 spin
drwxrwxr-x   2 nagios nagios 4096 Jan  5  2015 ssi
drwxrwxr-x   2 nagios nagios 4096 Nov 17 11:55 stylesheets
-rw-rw-r--   1 nagios nagios 4243 Nov 17 11:55 trends-form.html
-rw-rw-r--   1 nagios nagios 4256 Nov 17 11:55 trends-graph.html
-rw-rw-r--   1 nagios nagios  852 Nov 17 11:55 trends-host-yaxis.html
-rw-rw-r--   1 nagios nagios 2990 Nov 17 11:55 trends.html
-rw-rw-r--   1 nagios nagios 3586 Nov 17 11:55 trends-links.html
-rw-rw-r--   1 nagios nagios 1065 Nov 17 11:55 trends-service-yaxis.html
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI 'Network Status Map' will not open

Post by ssax »

We only checked the SSL log, please run this command and then bring up the page again and see if any errors pop up:

Code: Select all

tail -fn0 /var/log/httpd/*error*
Thank you
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Nagios XI 'Network Status Map' will not open

Post by thur686 »

Nothing happens using tail -fn0 /var/log/httpd/*error* when using the Network Status map.

If I navigate to other areas of the WebUI errors do appear, just not using the Network Status map unfortunately.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI 'Network Status Map' will not open

Post by tmcdonald »

Try editing /usr/local/nagiosxi/html/config.inc.php and add $cfg['error_level'] = E_ALL; to the top just under the <?php line, then save and try reloading the Network Status Map. Any errors now?
Former Nagios employee
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Nagios XI 'Network Status Map' will not open

Post by thur686 »

Not seeing httpd errors with config.inc.php edited as suggested.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI 'Network Status Map' will not open

Post by rkennedy »

Out of curiousity, does any data appear if you load this page? Try navigating to -
https://yournagiosip/nagiosxi/includes/ ... de=exclude
Former Nagios Employee
Locked