Page 2 of 2

Re: Issue with capacity management graphs

Posted: Tue Jan 10, 2017 5:18 pm
by avandemore
Your output looks quite different than a stock install. Do you have any ideas why this might be?
Here's some output verified on 3 different systems running XI 5.4.0:

Code: Select all

# ls -laR /usr/local/nagiosxi/html/includes/components/capacityplanning
/usr/local/nagiosxi/html/includes/components/capacityplanning:
total 408
drwxr-x---.  6 nagios nagios   4096 Nov 14 16:38 .
drwxr-x---. 63 nagios nagios   4096 Jan  6 15:44 ..
drwxr-x---.  2 nagios nagios   4096 Nov 14 16:38 backend
-rwxr-x---.  1 nagios nagios 132593 Jan  6 15:44 capacityplanning.inc.php
-rwxr-x---.  1 nagios nagios 219129 Jan  6 15:44 capacityplanning.php
-rw-r-----.  1 nagios nagios   1368 Jan  6 15:44 CHANGES.txt
-rw-r-----.  1 nagios nagios   6403 Jan  6 15:44 cp-common.inc.php
-rw-r-----.  1 nagios nagios    774 Jan  6 15:44 cp-extrap.php
-rw-r-----.  1 nagios nagios   2879 Jan  6 15:44 cp-reference.php
-rw-r-----.  1 nagios nagios   5677 Jan  6 15:44 dashlet.inc.php
drwxr-x---.  2 nagios nagios   4096 Nov 14 16:38 images
drwxr-x---.  2 nagios nagios   4096 Dec 20 09:29 includes
-rw-r-----.  1 nagios nagios    939 Jan  6 15:44 make-dashlet.php
-rw-r-----.  1 nagios nagios   1166 Jan  6 15:44 sanity.sh
drwxr-x---.  2 nagios nagios   4096 Nov 14 16:38 templates
/usr/local/nagiosxi/html/includes/components/capacityplanning/backend:
total 48
drwxr-x---. 2 nagios nagios  4096 Nov 14 16:38 .
drwxr-x---. 6 nagios nagios  4096 Nov 14 16:38 ..
-rwxr-x---. 1 nagios nagios 11494 Jan  6 15:44 capacityplanning.py
-rwxr-x---. 1 nagios nagios  7370 Jan  6 15:44 forecast.py
-rwxr-x---. 1 nagios nagios  9378 Jan  6 15:44 rrddatastore.py
-rwxr-x---. 1 nagios nagios  3307 Jan  6 15:44 timeframe.py
-rwxr-x---. 1 nagios nagios  3823 Jan  6 15:44 XMLrep.py
/usr/local/nagiosxi/html/includes/components/capacityplanning/images:
total 24
drwxr-x---. 2 nagios nagios 4096 Nov 14 16:38 .
drwxr-x---. 6 nagios nagios 4096 Nov 14 16:38 ..
-rw-r-----. 1 nagios nagios  473 Jan  6 15:44 application_view_list.png
-rw-r-----. 1 nagios nagios  823 Jan  6 15:44 chart_curve_go.png
-rw-r-----. 1 nagios nagios  512 Jan  6 15:44 cog.png
-rw-r-----. 1 nagios nagios  655 Jan  6 15:44 cross.png
/usr/local/nagiosxi/html/includes/components/capacityplanning/includes:
total 108
drwxr-x---. 2 nagios nagios  4096 Dec 20 09:29 .
drwxr-x---. 6 nagios nagios  4096 Nov 14 16:38 ..
-rw-r-----. 1 nagios nagios  3981 Jan  6 15:44 capacityplanning.css
-rw-r-----. 1 nagios nagios     0 Jan  6 15:44 capacityplanning.js
-rw-r-----. 1 nagios nagios  9751 Nov 14 16:38 capacityreport.js
-rw-r-----  1 nagios nagios 20442 Jan  6 15:44 capacityreport.js.php
-rwxr-x---. 1 nagios nagios 64337 Jan  6 15:44 timepicker.js
/usr/local/nagiosxi/html/includes/components/capacityplanning/templates:
total 20
drwxr-x---. 2 nagios nagios 4096 Nov 14 16:38 .
drwxr-x---. 6 nagios nagios 4096 Nov 14 16:38 ..
-rw-r-----. 1 nagios nagios  992 Jan  6 15:44 capacityreport.inc.php
-rw-r-----. 1 nagios nagios 5050 Jan  6 15:44 capacityreporttemplate.inc.php

Re: Issue with capacity management graphs

Posted: Wed Jan 11, 2017 9:21 am
by perric
avandemore wrote:Your output looks quite different than a stock install. Do you have any ideas why this might be?
This was an XI 5.0 VI that was upgraded to 5.4.0. Only thing I can think that may have affected the permissions was the restore of an old system backup from our old dev system? We did that mainly to bring across the historical data.

I am surprised the file system sanity check wouldn't check/correct this - potentially an opportunity for improvement?

I'll manually review and correct my perms vs. the stock install perms and see if that does the trick

Thanks

Re: Issue with capacity management graphs

Posted: Wed Jan 11, 2017 9:32 am
by perric
Yep, permissions fixes did the trick. Several directories were missing group execute, and the python scripts under backend needed to be marked as group executable as well.

I notice I have extra python files in the capacityplanning directory - probably left over from older versions of Nagios. I wonder if the permissions got messed up in a similar way, or weren't covered in one of the upgrades.

Anyway, resolved now, you can close. Thanks so much for your help!

Re: Issue with capacity management graphs

Posted: Wed Jan 11, 2017 10:12 am
by rkennedy
Will do! /closed