Graph explorer initial load takes very long

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Graph explorer initial load takes very long

Post 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
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Graph explorer initial load takes very long

Post 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:

Code: Select all

/usr/local/nagios/var/nagios.log
tail command:

Code: Select all

tail -f /var/log/httpd/error_log
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Graph explorer initial load takes very long

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Graph explorer initial load takes very long

Post 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... :x
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph explorer initial load takes very long

Post 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).
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
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Graph explorer initial load takes very long

Post 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
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph explorer initial load takes very long

Post 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?
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
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Graph explorer initial load takes very long

Post 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.
Nagios XI 5.8.1
https://outsideit.net
Locked