Page 1 of 1
how to increase 50 graph per page to more
Posted: Sat Sep 05, 2015 6:02 am
by zaji_nms
Dear Expert
While viewing Performance Graphs from single Host , there is options at bottom as below
5 Per Page
10 Per Page
25 Per Page
50 Per Page
How to increase more? Which file has to edit to add these below more options.
100 Per Page
500 Per Page
1000 Per Page
Regards
Re: how to increase 50 graph per page to more
Posted: Tue Sep 08, 2015 9:21 am
by ssax
If you are using 2014R2.0 (taken from one of your posts) you can take the attached file, unzip it, and replace the file below:
Code: Select all
/usr/local/nagiosxi/html/perfgraphs/index.php
If that isn't the version you are using then let me know which version of XI you are using. You can grab it from the bottom left hand side of the web interface.
index.php.zip
Re: how to increase 50 graph per page to more
Posted: Wed Sep 30, 2015 3:33 am
by zaji_nms
Dear ssax
Thanks but we cannot replace as already we have done some changes to achieve below request we asked to Nagios.
only selected Performance Graph to be view from a HOST
https://support.nagios.com/forum/viewto ... 16&t=30746
me cracking my head and achieved above but if its going to next page, there issue, so I want by default 100 graph per page,
Please let me know which lines have to modify and please made available in next minor release.
Regards
Re: how to increase 50 graph per page to more
Posted: Wed Sep 30, 2015 11:03 am
by ssax
All you really need to do is edit that file and change these entries (there's 2 of them) from:
Code: Select all
$record_options = array('5', '10', '25', '50');
To:
Code: Select all
$record_options = array('5', '10', '25', '50', '100', '500', '1000');
Re: how to increase 50 graph per page to more
Posted: Fri Oct 02, 2015 7:34 am
by zaji_nms
Dear ssax
As I told , after cracking my head (me not Linux/PHP expert), found the file
/usr/local/nagiosxi/html/includes/utils-tables.inc.php
done the changes and solved my requirement.
Now we able to filter required Services graphs from the Host
Appreciate if you add the feature in next minor upgrade both things
1 . more page option : $record_options = array("5", "10", "25", "50" , "100" , "200");
2. view only the required service performance graph from the selected Host (attached done)
Regards
Re: how to increase 50 graph per page to more
Posted: Fri Oct 02, 2015 10:33 am
by lmiltchev
I created a feature request (TASK ID 6536) for adding this functionality. Thanks!