Capacity Planning Charts Missing, Planning Broken

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Capacity Planning Charts Missing, Planning Broken

Post by GldRush98 »

Didn't the Capacity Planning report used to draw charts?

It also seems like the analysis portion of it is broken and not actually putting out any prediction values.

Capacity Planning isn't something I use all the time so I'm not sure when this changed... but I know there used to be a graph that would graphically draw out and give you a decent predicted path of your growth/shrinkage.

I.E. here is a report for disk usage cap planning that is just giving me a text table with what seems to be broken data:
cap-planning-broke.png
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Capacity Planning Charts Missing, Planning Broken

Post by sreinhardt »

That definitely does not appear correct. You are 100% right there was a nice pretty graph that should be at the top. Are you seeing anything in your apache error logs? What browser, and version of XI are you using?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Capacity Planning Charts Missing, Planning Broken

Post by GldRush98 »

These 3 errors popped up in my log when I reloaded the Cap Planning page. Not sure if they're related or not...

Code: Select all

[Thu Oct 17 15:32:56 2013] [error] [client redacted] PHP Warning:  arsort() expects parameter 1 to be array, null given in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 517, referer: https://nagios.site.com/nagiosxi//includes/page-home-main.php?&=
[Thu Oct 17 15:32:56 2013] [error] [client redacted] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 518, referer: https://nagios.site.com/nagiosxi//includes/page-home-main.php?&=
[Thu Oct 17 15:32:56 2013] [error] [client redacted] PHP Notice:  Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: https://nagios.site.com/nagiosxi//includes/page-home-main.php?&=
Those might have been from someone else who had an operations screen up or something and unrelated to my reload... but those were the only things that popped up when I reloaded.

I am using Chrome 30. I just tried it in IE10 and it looks the same.

XI 2012R2.5
Last edited by GldRush98 on Thu Oct 17, 2013 3:45 pm, edited 2 times in total.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Capacity Planning Charts Missing, Planning Broken

Post by GldRush98 »

It looks like the div where the graphic is supposed to be is just empty? Weird...
cap-planning-broke2.png
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Capacity Planning Charts Missing, Planning Broken

Post by yancy »

GldRush98,

Can you verify the following exists:

Code: Select all

usr/local/nagiosxi/html/includes/components/highcharts/js/highcharts.js
-Yancy
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Capacity Planning Charts Missing, Planning Broken

Post by GldRush98 »

She's there:

-rw-r----- 1 nagios nagios 120K Oct 15 08:36 highcharts.js
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Capacity Planning Charts Missing, Planning Broken

Post by abrist »

What version of the capacity planning component are you running? (go to Admin --> Manage Components for version number)
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
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Capacity Planning Charts Missing, Planning Broken

Post by GldRush98 »

1.5
Capacity Planning Report
Provides data extrapolation and capacity planning capability. Requires host authorization to view report.
Version: 1.5 Author: Nagios Enterprises, LLC
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Capacity Planning Charts Missing, Planning Broken

Post by nscott »

Well since you've got the developer tools cracked open is there any errors showing up in the JS console? Are there any failures under the 'Network' tab of the Dev utils when you request the graph?

Also, you could take a gander at /usr/local/nagiosxi/var/components/capacityPlanning/capacityPlanning.log to see if thats got any indication of whats going on.
Nicholas Scott
Former Nagios employee
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Capacity Planning Charts Missing, Planning Broken

Post by GldRush98 »

nscott wrote:Well since you've got the developer tools cracked open is there any errors showing up in the JS console? Are there any failures under the 'Network' tab of the Dev utils when you request the graph?

Also, you could take a gander at /usr/local/nagiosxi/var/components/capacityPlanning/capacityPlanning.log to see if thats got any indication of whats going on.
No JS Console errors.
No network failures, all "200 OK".

The log file is completely empty

Code: Select all

-rw-r--r-- 1 apache nagios 0 Oct 24 16:30 /usr/local/nagiosxi/var/components/capacityplanning/capacityPlanning.log
I have also tried different browsers just to make sure it isn't browser related.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Locked