Page 1 of 1
Graph explorer initial load takes very long
Posted: Fri Oct 04, 2013 2:34 am
by WillemDH
Hello,
Is it normal when I go to the Graph Explorer, the page hangs for 10 - 15 seconds before the top alert producers chart appears? As I need the Graph Explorer a lot, it is kind of annoying. Any way to speed this up or go directly to Scalable peformance graph?
Tx
Re: Graph explorer initial load takes very long
Posted: Fri Oct 04, 2013 9:44 am
by slansing
Hmm, what is the size of your nagios.log right now? And how far into the past were you looking? Please also run a tail on the error_log whilst you access the page, then stop the tail and share the output with us.
nagios log:
tail command:
Re: Graph explorer initial load takes very long
Posted: Wed Oct 23, 2013 3:58 pm
by WillemDH
A tail of the httpd error log give me:
Code: Select all
[Wed Oct 23 22:55:40 2013] [error] [client] PHP Notice: Undefined variable: startdate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://srv/nagiosxi/includes/components/graphexplorer/
[Wed Oct 23 22:55:40 2013] [error] [client ] PHP Notice: Undefined variable: enddate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://srvn/nagiosxi/includes/components/graphexplorer/
ls -l of /usr/local/nagios/var/nagios.log:
Code: Select all
total 43968
drwxrwxr-x. 2 nagios nagios 12288 Oct 23 00:00 archives
-rw-rw-r-- 1 nagios users 2258088 Oct 23 22:54 check_fujitsu_eternus_dx.log
-rw-rw-r-- 1 nagios users 10239943 Oct 23 22:42 check_fujitsu_eternus_dx.log.1
-rw-rw-r-- 1 nagios users 10239960 Oct 23 21:34 check_fujitsu_eternus_dx.log.2
-rw-rw-r-- 1 nagios users 110665 Oct 23 20:29 check_fujitsu_eternus_dx.log.3
-rw-rw-r-- 1 nagios users 105252 Oct 23 20:29 check_fujitsu_eternus_dx.log.4
-rw-rw-r-- 1 nagios users 10239910 Oct 23 20:29 check_fujitsu_eternus_dx.log.5
-rw-r--r-- 1 apache apache 7907 Sep 30 10:44 graphapi.log
-rw-rw-r-- 1 nagios users 1381 Oct 23 22:57 host-perfdata
-rw-r--r-- 1 nagios nagios 6 Oct 23 11:53 nagios.lock
-rw-rw-r-- 1 nagios nagios 502507 Oct 23 22:53 nagios.log
-rw-r--r-- 1 nagios nagios 5 Aug 29 23:12 ndo2db.lock
-rw-rw-r-- 1 nagios nagios 0 Oct 23 11:53 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Aug 29 23:12 ndo.sock
-rw-r--r--. 1 nagios nagios 346769 Oct 21 15:39 npcd.log
-rw-r--r--. 1 nagios nagios 2374577 Oct 23 11:53 objects.cache
-rw-rw-rw- 1 nagios nagios 621497 Oct 21 08:36 perfdata.log
-rw------- 1 nagios users 3937997 Oct 23 22:53 retention.dat
drwxrwsr-x. 2 nagios nagcmd 4096 Oct 23 11:53 rw
-rw-rw-r-- 1 nagios users 19813 Oct 23 22:57 service-perfdata
drwxr-xr-x. 5 root root 4096 Jun 6 2012 spool
drwxr-xr-x. 2 nagios nagios 4096 Oct 23 22:57 stats
-rw-rw-r-- 1 nagios users 3932169 Oct 23 22:57 status.dat
Re: Graph explorer initial load takes very long
Posted: Thu Oct 24, 2013 2:55 am
by WillemDH
Did some more testing and it seems Firefox does not have any loading issues for the graph explorer. Then tested IE in compatibility modus for IE7 and IE8, but the problem for IE persists. The problem is we are forced to use IE, due to incompatibilities with other programs...

Re: Graph explorer initial load takes very long
Posted: Thu Oct 24, 2013 10:27 am
by abrist
IE 7 and 8 are the only options? Not even IE 9? I though we fixed a number of IE issues with graph explorer . . . the must be more issues, probably between IE sub versions . . .
File a bug report at
http://tracker.nagios.com. Include your version and subversion of the browsers as well as any useful information from the js console (shift-ctrl-j).
Re: Graph explorer initial load takes very long
Posted: Fri Oct 25, 2013 8:18 am
by WillemDH
Andy,
I'm having the issue on IE10, compat mode 7, 8, 9. made a bug request
http://tracker.nagios.com/view.php?id=457
Grtz
Re: Graph explorer initial load takes very long
Posted: Fri Oct 25, 2013 12:22 pm
by abrist
Thanks for the bug report. Were there any errors in the browser js console, or in /var/log/httpd/error_log when you browse to the page?
Re: Graph explorer initial load takes very long
Posted: Fri Mar 21, 2014 1:24 pm
by WillemDH
I can confirm this issue is resolved since one of the latest patches. Grap Explorer works like a charm.. Thread can be closed.