Performance Graphs tab freezing browser
Performance Graphs tab freezing browser
XI 5.4.8, tested in Firefox 55.0.3 64 bit and Chrome 61.0.3163.100 (Official Build) (64-bit).
When I access the performance Graphs tab of a specific service check, the browser freezes and has to be restarted. This does NOT happen with all service performance graphs, and it does not happen when I access the graph symbol to bring up the pop up window with graphs from the host, showing all services.
I do not want to loose all the data in this specific graph, is there a way to "fix" the rrd or diagnose the issue to determine next steps?
When I access the performance Graphs tab of a specific service check, the browser freezes and has to be restarted. This does NOT happen with all service performance graphs, and it does not happen when I access the graph symbol to bring up the pop up window with graphs from the host, showing all services.
I do not want to loose all the data in this specific graph, is there a way to "fix" the rrd or diagnose the issue to determine next steps?
--
Griffin Wakem
Griffin Wakem
Re: Performance Graphs tab freezing browser
It could be some Apache and PHP settings causing the issue, try doing the following on the Nagios server.
Edit the /etc/php.ini file and change the following from
to
add this to the bottom of that file
Save the file
Then edit this file
add this to the bottom of that file
Save the file and restart Apache for the changes to take affect.
Then clear your browsers cache and see if that fixes the issue.
Edit the /etc/php.ini file and change the following from
Code: Select all
max_execution_time = 30
max_input_time = 60
memory_limit = 128MCode: Select all
max_execution_time = 60
max_input_time = 120
memory_limit = 512MCode: Select all
max_input_vars=5000Then edit this file
Code: Select all
/etc/httpd/conf/httpd.confCode: Select all
LimitRequestLine 100000Code: Select all
service httpd restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Performance Graphs tab freezing browser
It turns out I already had most of those settings adjusted at or above your recommended settings. I upped the memory_limit from 256M to 512M in the php.ini, and added LimitRequestLine 100000 to the bottom of the httpd.conf, and then cleared cache and restarted.
Unfortunately it still happened.
I used the firefox developer tools to attempt to diagnose where the slowdown was occurring, and it appears it's stalling out on the call to the gauge. Now, this check is dealing with byte size on a file on hpux, so the output is something like 2048141587, and I suspect that the gauge is having a liiiiiiiiittle issue handling that. Here is the call itself that makes the browser start asking if I want to stop the scripts running that are slowing things down:
Any idea on how best to handle this?
A interesting side note, I was watching my memory. By the time I closed the page after about 40 seconds or so, the used memory on my system had ballooned from the normal 3.5GB to 10.6GB. Killing the perfdata tab immediately returned my memory usage back to 3.5GB.
Unfortunately it still happened.
I used the firefox developer tools to attempt to diagnose where the slowdown was occurring, and it appears it's stalling out on the call to the gauge. Now, this check is dealing with byte size on a file on hpux, so the output is something like 2048141587, and I suspect that the gauge is having a liiiiiiiiittle issue handling that. Here is the call itself that makes the browser start asking if I want to stop the scripts running that are slowing things down:
Code: Select all
https://$SERVER/nagiosxi//includes/dashlets/gauges/getdata.php?host=$HOST&service=NRPE%20-%20DRY%20TRAN.DAT&ds=_triprod_dry_TRAN.DAT
A interesting side note, I was watching my memory. By the time I closed the page after about 40 seconds or so, the used memory on my system had ballooned from the normal 3.5GB to 10.6GB. Killing the perfdata tab immediately returned my memory usage back to 3.5GB.
--
Griffin Wakem
Griffin Wakem
Re: Performance Graphs tab freezing browser
It could be that the rrd file is corrupted on the system and the following process is a way to dump the rrd file and restore it back as an rrd file to see if that fixes it.
Run the following commands and replace the text between the < > with valid names.
Then see if you can view the Graph.
If not, can you post the .rrd and .xml file here so we can view them?
Run the following commands and replace the text between the < > with valid names.
Code: Select all
cd /usr/local/nagios/share/perfdata/<hostname>
rrdtool dump <original servicename>.rrd > temp.xml
mv <original service>.rrd backup.rrd
rrdtool restore temp.xml <original servicename>.rrdIf not, can you post the .rrd and .xml file here so we can view them?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Performance Graphs tab freezing browser
Unfortunately, that didn't do the trick. I verified the permissions on the file were good, but its displaying the same behavior. One thing I should note: when using the graph link next to the service itself, (when looking at the host with all services below the host, there is the red and blue lines that you can click to open the graph in a pop up window,) it doesn't freeze and you can adjust to view specific lengths of time with no issues. The RRD displays fine there. It's only when using the performance graphs tab does it freeze when attempting to pull the gauge unit.
--
Griffin Wakem
Griffin Wakem
Re: Performance Graphs tab freezing browser
I have attached the RRD and XML.
You do not have the required permissions to view the files attached to this post.
--
Griffin Wakem
Griffin Wakem
-
dwasswa
Re: Performance Graphs tab freezing browser
Hi @ gwakem,
Try running this command while you try viewing the graph and post the output.
Try running this command
Code: Select all
tail -f /var/log/httpd/*_logRe: Performance Graphs tab freezing browser
I have attached two files: one that shows the entirety of the output, which is busy as multiple people are hitting it, and a second one (the http_output_filtered.txt) that greps based on my workstation's IP.
You do not have the required permissions to view the files attached to this post.
--
Griffin Wakem
Griffin Wakem
-
dwasswa
Re: Performance Graphs tab freezing browser
Hi @gwakem,
Can you please run the following comands and post the output.
Can you please run the following comands and post the output.
Code: Select all
ls /usr/local/nagios/var/spool/perfdata/ | wc -l
ls /usr/local/nagios/var/spool/xidpe/ | wc -lRe: Performance Graphs tab freezing browser
Here you go:
Code: Select all
# ls /usr/local/nagios/var/spool/perfdata/ | wc -l
3
# ll /usr/local/nagios/var/spool/perfdata/
total 28K
drwxr-xr-x 2 nagios nagios 131 Oct 16 15:42 .
drwxr-xr-x 5 nagios nagios 52 Feb 18 2016 ..
-rw-r--r-- 1 nagios nagios 0 Feb 22 2016 1456142744.perfdata.host-PID-20394
-rw-r--r-- 1 nagios nagios 0 Feb 22 2016 1456142744.perfdata.service-PID-20395
-rw-r--r-- 1 nagios nagios 25K Mar 23 2016 1458754280.perfdata.host-PID-3348
# ls /usr/local/nagios/var/spool/xidpe/ | wc -l
0
--
Griffin Wakem
Griffin Wakem