Re: Cannot Generate Graphs using Capacity Planning
Posted: Thu Aug 08, 2019 11:15 am
by scottwilkerson
Can you show the output of the following?
Code: Select all
tail -100 /usr/local/nagiosxi/var/components/capacityplanning.log
Re: Cannot Generate Graphs using Capacity Planning
Posted: Fri Aug 23, 2019 10:31 am
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 ~]#
Re: Cannot Generate Graphs using Capacity Planning
Posted: Fri Aug 23, 2019 11:22 am
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?
Re: Cannot Generate Graphs using Capacity Planning
Posted: Fri Aug 23, 2019 11:30 am
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.
Re: Cannot Generate Graphs using Capacity Planning
Posted: Fri Aug 23, 2019 3:40 pm
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.
Re: Cannot Generate Graphs using Capacity Planning
Posted: Fri Aug 30, 2019 5:21 pm
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!"
Re: Cannot Generate Graphs using Capacity Planning
Posted: Tue Sep 03, 2019 1:38 pm
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.
Re: Cannot Generate Graphs using Capacity Planning
Posted: Wed Sep 04, 2019 2:27 pm
by nym240
Hi,
Please see extracted profile and the files under OCASAD1T00APRE1
Thanks,
Re: Cannot Generate Graphs using Capacity Planning
Posted: Thu Sep 05, 2019 1:07 pm
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
Re: Cannot Generate Graphs using Capacity Planning
Posted: Thu Sep 05, 2019 1:15 pm
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 ~]#