Page 2 of 3

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

Posted: Wed Feb 24, 2016 1:18 pm
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/

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

Posted: Wed Feb 24, 2016 4:03 pm
by lmiltchev
How many hosts & services are you monitoring? Can you see both maps in Nagios Core - the "new" map, and the "Legacy" one?

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

Posted: Wed Feb 24, 2016 4:51 pm
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.

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

Posted: Wed Feb 24, 2016 5:42 pm
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?

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

Posted: Fri Feb 26, 2016 3:00 pm
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

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

Posted: Fri Feb 26, 2016 3:21 pm
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

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

Posted: Fri Feb 26, 2016 4:05 pm
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.

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

Posted: Mon Feb 29, 2016 11:47 am
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?

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

Posted: Tue Mar 01, 2016 12:41 pm
by thur686
Not seeing httpd errors with config.inc.php edited as suggested.

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

Posted: Tue Mar 01, 2016 5:31 pm
by rkennedy
Out of curiousity, does any data appear if you load this page? Try navigating to -
https://yournagiosip/nagiosxi/includes/ ... de=exclude