how to increase 50 graph per page to more

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

how to increase 50 graph per page to more

Post 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
Zajil NMS
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: how to increase 50 graph per page to more

Post 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
You do not have the required permissions to view the files attached to this post.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: how to increase 50 graph per page to more

Post 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
Zajil NMS
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: how to increase 50 graph per page to more

Post 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');
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: how to increase 50 graph per page to more

Post 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
You do not have the required permissions to view the files attached to this post.
Zajil NMS
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: how to increase 50 graph per page to more

Post by lmiltchev »

I created a feature request (TASK ID 6536) for adding this functionality. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked