After upgrade to 0.8.8.d we face a problem in the threshold-views.
For example, if i have 5 pages of "thresholds", stay at page 1 and would like to switch to page 3. If I click on "3" (or any other number on the headline "showing rows x to y [1,2,3,4,5]") the view changes allways to threshold "log"s.
Same thing happenes when I look into "Hosts status".
Any idea how to fix ?
kind regards
B.L.
THOLD Thresholds / Log / Hosts status View
Moderators: Developers, Moderators
Re: THOLD Thresholds / Log / Hosts status View
I believe that was a bug in 0.8.8d, you should upgrade to 0.8.8f to fix it.
Re: THOLD Thresholds / Log / Hosts status View
In the release 0.8.8f the problem persists
My temporary workaround:
I used function get_page_list from release 0.8.8b
My temporary workaround:
I used function get_page_list from release 0.8.8b
Re: THOLD Thresholds / Log / Hosts status View
I just upgraded to 0.8.8f and the problem still exists.
I will have a closer look to the function (nested in lib/html_utility.php) wich Vadimka provided.
Since the functions parameter list differs from 0.8.8b I'm not sure, that a replacement/downgrade of that function works.
I will have a closer look to the function (nested in lib/html_utility.php) wich Vadimka provided.
Since the functions parameter list differs from 0.8.8b I'm not sure, that a replacement/downgrade of that function works.
Re: THOLD Thresholds / Log / Hosts status View
The problem seems to be a missing & within the url returned from that function.
E.g. Browser shows "...plugins/thold/thold_graph.php?tab=hoststatpage=9" and that leads to show the "logs"-tab instead of page 9 of tab "hoststat".
I've added an & within the else part at document.location='$url&$page_var='+pageNo+url_add :
This solves the problem from my point of view
E.g. Browser shows "...plugins/thold/thold_graph.php?tab=hoststatpage=9" and that leads to show the "logs"-tab instead of page 9 of tab "hoststat".
I've added an & within the else part at document.location='$url&$page_var='+pageNo+url_add :
Code: Select all
if ($return_to != '') {
$url_page_select .= "<script type='text/javascript'>function goto${page_var}(pageNo) { if (typeof url_graph === 'function') { var url_add=url_graph('') }else{ var url_add=''; }; $.get('${url}header=false&$page_var='+pageNo+url_add, function(data) { $('#$return_to').html(data);}); }</script>";
}else{
$url_page_select .= "<script type='text/javascript'>function goto${page_var}(pageNo) { if (typeof url_graph === 'function') { var url_add=url_graph('') }else{ var url_add=''; }; document.location='$url&$page_var='+pageNo+url_add }</script>";
}
return $url_page_select;
Re: THOLD Thresholds / Log / Hosts status View
Not replacement.blamm09 wrote:I just upgraded to 0.8.8f and the problem still exists.
I will have a closer look to the function (nested in lib/html_utility.php) wich Vadimka provided.
Since the functions parameter list differs from 0.8.8b I'm not sure, that a replacement/downgrade of that function works.
I added old function as get_page_list_old and use it in thold files.
Re: THOLD Thresholds / Log / Hosts status View
Ive been tracking down the same issue (having just updated to 8.8f) but from the mactrack plugin and have came to same conclusion as blamm09. Having found the issue I was then able to search the forum and found this post. As its a utility routine it will equally affect all plugins which use it (the bug is only apparent if the call appends aditional html code to the base url parameter)
I also noticed the cacti base code uses calls to html_nav_bar which wraps the call to get_page_list and does some other stuff (handles Next/Previous tags) which removes the need for the following block of code duplicated in each plugin file. I have modified all my mactrack .php files to use this function instead.
My thold lists never got to longer than 1 page which is probably why I came from mactrack, so I shall look at those files next.
I also noticed the cacti base code uses calls to html_nav_bar which wraps the call to get_page_list and does some other stuff (handles Next/Previous tags) which removes the need for the following block of code duplicated in each plugin file. I have modified all my mactrack .php files to use this function instead.
My thold lists never got to longer than 1 page which is probably why I came from mactrack, so I shall look at those files next.
Who is online
Users browsing this forum: No registered users and 2 guests