Cannot Generate Graphs using Capacity Planning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cannot Generate Graphs using Capacity Planning

Post by scottwilkerson »

Can you show the output of the following?

Code: Select all

tail -100 /usr/local/nagiosxi/var/components/capacityplanning.log
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nym240
Posts: 11
Joined: Thu Feb 15, 2018 5:56 pm

Re: Cannot Generate Graphs using Capacity Planning

Post by nym240 »

Hi,

Sorry for the delayed response, here's the output:



[root@nagios ~]# tail -100 /usr/local/nagiosxi/var/components/capacityplanning.log
for chunk in self._iterencode_dict(o, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
for chunk in self._iterencode(value, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 304, in _iterencode
yield floatstr(o, self.allow_nan)
File "/usr/lib64/python2.6/json/encoder.py", line 47, in floatstr
raise ValueError(msg)
ValueError: Out of range float values are not JSON compliant: nan
Fri, 02 Aug 2019 11:10:52 ERROR Out of range float values are not JSON compliant: nan
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 301, in main
print json.dumps(info, allow_nan=False, sort_keys=o.json_sort, indent=o.json_indent)
File "/usr/lib64/python2.6/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib64/python2.6/json/encoder.py", line 367, in encode
chunks = list(self.iterencode(o))
File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
for chunk in self._iterencode_dict(o, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
for chunk in self._iterencode(value, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 304, in _iterencode
yield floatstr(o, self.allow_nan)
File "/usr/lib64/python2.6/json/encoder.py", line 47, in floatstr
raise ValueError(msg)
ValueError: Out of range float values are not JSON compliant: nan
Fri, 02 Aug 2019 11:10:53 ERROR Out of range float values are not JSON compliant: nan
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 301, in main
print json.dumps(info, allow_nan=False, sort_keys=o.json_sort, indent=o.json_indent)
File "/usr/lib64/python2.6/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib64/python2.6/json/encoder.py", line 367, in encode
chunks = list(self.iterencode(o))
File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
for chunk in self._iterencode_dict(o, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
for chunk in self._iterencode(value, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 304, in _iterencode
yield floatstr(o, self.allow_nan)
File "/usr/lib64/python2.6/json/encoder.py", line 47, in floatstr
raise ValueError(msg)
ValueError: Out of range float values are not JSON compliant: nan
Fri, 02 Aug 2019 11:10:55 ERROR Out of range float values are not JSON compliant: nan
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 301, in main
print json.dumps(info, allow_nan=False, sort_keys=o.json_sort, indent=o.json_indent)
File "/usr/lib64/python2.6/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib64/python2.6/json/encoder.py", line 367, in encode
chunks = list(self.iterencode(o))
File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
for chunk in self._iterencode_dict(o, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
for chunk in self._iterencode(value, markers):
File "/usr/lib64/python2.6/json/encoder.py", line 304, in _iterencode
yield floatstr(o, self.allow_nan)
File "/usr/lib64/python2.6/json/encoder.py", line 47, in floatstr
raise ValueError(msg)
ValueError: Out of range float values are not JSON compliant: nan
Fri, 02 Aug 2019 11:10:55 ERROR 'NoneType' object has no attribute 'set_period'
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 201, in main
observed.set_period(o.period)
AttributeError: 'NoneType' object has no attribute 'set_period'
Fri, 02 Aug 2019 11:10:55 ERROR 'NoneType' object has no attribute 'set_period'
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 201, in main
observed.set_period(o.period)
AttributeError: 'NoneType' object has no attribute 'set_period'
Fri, 02 Aug 2019 11:10:55 ERROR 'NoneType' object has no attribute 'set_period'
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 201, in main
observed.set_period(o.period)
AttributeError: 'NoneType' object has no attribute 'set_period'
Fri, 02 Aug 2019 11:10:55 ERROR 'NoneType' object has no attribute 'set_period'
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 201, in main
observed.set_period(o.period)
AttributeError: 'NoneType' object has no attribute 'set_period'
Fri, 02 Aug 2019 11:10:55 ERROR 'NoneType' object has no attribute 'set_period'
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 308, in <module>
main()
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanningCustom.py", line 201, in main
observed.set_period(o.period)
AttributeError: 'NoneType' object has no attribute 'set_period'
[root@nagios ~]#
bheden
Product Development Manager
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Cannot Generate Graphs using Capacity Planning

Post by bheden »

It looks like the data it's trying to process doesn't have enough data. Can we see the original graph you're attempting to plan capacity for?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
nym240
Posts: 11
Joined: Thu Feb 15, 2018 5:56 pm

Re: Cannot Generate Graphs using Capacity Planning

Post by nym240 »

Actually, it has enough data to process, but it seems that the capacity planning cannot parse those data.

You can check the attached document for the performance graph vs capacity planning.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Cannot Generate Graphs using Capacity Planning

Post by benjaminsmith »

Hello @nym240,

I have a few more questions.

1. What happens when you shorten the time period from 1 month to 1 week?

2. Are you experiencing this behavior across the board or only for host OCASAD1TOOAPRE1?

3. What error message are you getting when try to download the system profile? Can you post a screen shot of the message for us to review.

Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nym240
Posts: 11
Joined: Thu Feb 15, 2018 5:56 pm

Re: Cannot Generate Graphs using Capacity Planning

Post by nym240 »

Hi,

Please see answer below:

1. What happens when you shorten the time period from 1 month to 1 week? Same output from month period, changing the period doesn't effect on the output, still the same even if changing it

2. Are you experiencing this behavior across the board or only for host OCASAD1TOOAPRE1? Nope, all Host had the same issue.

3. What error message are you getting when try to download the system profile? Can you post a screen shot of the message for us to review. Please see file attached. messeage is " Failed to retrieve zip file!"
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Cannot Generate Graphs using Capacity Planning

Post by cdienger »

Generate a profile from the command line with:

Code: Select all

/usr/local/nagiosxi/scripts/components/getprofile.sh 54770
The profile will be saved to /usr/local/nagiosxi/var/components/profile.zip.

I'd also like to get the contents of the /usr/local/nagios/share/perfdata/OCASAD1T00APRE1/ directory.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nym240
Posts: 11
Joined: Thu Feb 15, 2018 5:56 pm

Re: Cannot Generate Graphs using Capacity Planning

Post by nym240 »

Hi,

Please see extracted profile and the files under OCASAD1T00APRE1


Thanks,
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Cannot Generate Graphs using Capacity Planning

Post by cdienger »

I can confirm the data is in the database and can generate capacity graphs from it. The profile didn't contain all the information I was looking for though. Please confirm the version of XI this is as well as the version of the capacity planning component:

Code: Select all

head /usr/local/nagiosxi/html/includes/components/capacityplanning/CHANGES.txt
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nym240
Posts: 11
Joined: Thu Feb 15, 2018 5:56 pm

Re: Cannot Generate Graphs using Capacity Planning

Post by nym240 »

Hi,
Please find below details.

PROD [root@nagios ~]# head /usr/local/nagiosxi/html/includes/components/capacityplanning/CHANGES.txt
2.2.1
==================
- Fixed table pager not respecting manually overriden report settings [TPS#8208] -BH

2.2.0 - 11/30/2015
==================
- Fixed time period and extrapolation method boxes to be in the main selection area -JO
- Fixed when disabled auto-running reports is from blanking out during page changes -JO

2.1.11 - 10/27/2015
PROD [root@nagios ~]#
Locked