Performance graphs not loading since 1.8 upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: Performance graphs not loading since 1.8 upgrade

Post by Box293 »

My /etc/hosts file is as follows:

Code: Select all

127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.100.64  vault23.vault.local
Admin->System Settings > Nagios XI URL

Code: Select all

http://vault23.vault.local/nagiosxi/
The "Program URL" was configured this way before the upgrade
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graphs not loading since 1.8 upgrade

Post by mguthrie »

I've got a debug script that prints out all of the server info for apache, along with a few other things. Would you mind putting this in your /usr/local/nagiosxi/html directory and then accessing the script from the browser:

http://<youraddress>/nagiosxi/profile.php

Go ahead and post the output. Once you're done, remove this file from a web accessible directory.
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: Performance graphs not loading since 1.8 upgrade

Post by Box293 »

Here's the output:

Code: Select all

Testing System Profile
get_base_uri returns: http://vault23.vault.local/nagiosxi/
get_base_url returns: http://vault23.vault.local/nagiosxi/
get_backend_url(internal_call=false) returns: http://vault23.vault.local/nagiosxi/profile.php
get_backend_url(internal_call=true) returns: http://localhost/nagiosxi/backend/
SERVER INFO DUMP
Array
(
    [HTTP_ACCEPT] => text/html, application/xhtml+xml, */*
    [HTTP_ACCEPT_LANGUAGE] => en-AU
    [HTTP_USER_AGENT] => Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_HOST] => vault23.vault.local
    [HTTP_CONNECTION] => Keep-Alive
    [HTTP_COOKIE] => nagiosxi=j9k75af87b2mk07bs70v4h6906
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
    [SERVER_SIGNATURE] => <address>Apache/2.2.3 (CentOS) Server at vault23.vault.local Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.2.3 (CentOS)
    [SERVER_NAME] => vault23.vault.local
    [SERVER_ADDR] => 192.168.100.64
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 10.254.1.192
    [DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => root@localhost
    [SCRIPT_FILENAME] => /usr/local/nagiosxi/html/profile.php
    [REMOTE_PORT] => 53982
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /nagiosxi/profile.php
    [SCRIPT_NAME] => /nagiosxi/profile.php
    [PHP_SELF] => /nagiosxi/profile.php
    [REQUEST_TIME] => 1321572061
)
1

PING LOCALHOST
RUNNING: '/bin/ping -c 3 localhost 2>&1
'PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.223 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.065 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.046 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2023ms
rtt min/avg/max/mdev = 0.046/0.111/0.223/0.079 ms


WGET LOCALHOST CCM

WGET FROM URL: http://localhost/nagiosql/index.php
RUNNING: /usr/bin/wget http://localhost/nagiosql/index.php
--2011-11-18 10:21:05--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'

     0K .....                                                 100%  123M=0s

2011-11-18 10:21:05 (123 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graphs not loading since 1.8 upgrade

Post by mguthrie »

Well I'm a little bit stumped on why that's happening...

Can I have you access the following URLs and see what you get? (You might need to login to XI first for each URL so you don't get a session error).


http://vault23.vault.local/nagiosxi/nag ... =localhost
http://vault23/nagiosxi//nagiosxi/inclu ... =localhost
http://192.168.100.64/nagiosxi/nagiosxi ... =localhost

This is the graph API that's being called to produce the image. If one or more of the generates an error, run:

Code: Select all

 tail -f /var/log/httpd/error_log
and see if you get any useful error output.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: Performance graphs not loading since 1.8 upgrade

Post by Box293 »

No wonder you were stumped, this is a client broswer issue :lol:

Deleting my temporary internet files seemed to fix the problem.

So with Firefox there is just the basic "Clear Now" button. In Internet Explorer 9 when deleting it was:
  • Preserve Favourites website data = Un-ticked
    Temporary Internet Files = Ticked
    Download History = Ticked
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graphs not loading since 1.8 upgrade

Post by mguthrie »

LOL, well good to know! I was running out of ideas ;)