graphs_view.php broken in dual pane tree view
Moderators: Developers, Moderators
Here is some patchwork for your code
If you are having the pesky error that I have been referring to in this post. I have altered a section of code found in include/top_graph_header.php
The code block is as follows
$first_branch = find_first_folder_url();
if (!empty($first_branch)) {
if(!empty($_REQUEST["ret"])){
$mystring = "&ret=yes";
$first_branch = $first_branch . $mystring;
header("Location: $first_branch");
}
print "The first branch was not empty" .$first_branch;
}
All it does is keep track of whether or not it is looping by throwing a var in the querystring
Hope this helps
Jason
The code block is as follows
$first_branch = find_first_folder_url();
if (!empty($first_branch)) {
if(!empty($_REQUEST["ret"])){
$mystring = "&ret=yes";
$first_branch = $first_branch . $mystring;
header("Location: $first_branch");
}
print "The first branch was not empty" .$first_branch;
}
All it does is keep track of whether or not it is looping by throwing a var in the querystring
Hope this helps
Jason
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Does this problem only manifest itself when "Expand Hosts" is selected from "Graph Settings"?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Initial testing conclusions
I have replaced my code with the code in the distribution, and found that there was no difference when I enabled the expand hosts option.
I spoke too soon
There is an error message when the expand hosts option is enabled.
"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers."
real helpful error message don't you think. I haven't a clue what causes this, but the code I submitted earlier fixes this issue as well.
"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers."
real helpful error message don't you think. I haven't a clue what causes this, but the code I submitted earlier fixes this issue as well.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Sending myself a note to explore you patch.
Thanks for working on it!
Thanks for working on it!
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Tony,
Please crank out a patch. Need it deparately.
Larry
Please crank out a patch. Need it deparately.
Larry
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
jmjones,
Ok, well after review of the current code, the session variable
takes care of if the redirection happens again. This would lead me to believe that you maybe having a cookie or session problem. I only see one redirect when I sniff traffic when viewing the graph page initially. Btw, was using the database you sent me a while ago to test, so I have the same hosts.
Larry, this is not the solution to the issue with the graph page being slow, so I don't see a patch at this time.
Ok, well after review of the current code, the session variable
Code: Select all
$_SESSION["sess_has_viewed_graphs"]
Larry, this is not the solution to the issue with the graph page being slow, so I don't see a patch at this time.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Sorry man, still searching for the badness in the code....
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Hown can i solve this problem?
Hi people,,, i want to know if only changing the timeout on php.ini the dual pane will working correctly??...
Regards...
Regards...
Maybe, maybe not
This error is kind of tricky, changing the timeouts may help - they have for some. Tell what server makeup you have and you will get more help. I have been battling this problem in win 2k3, php4 and mysql4. My server is very fast and I think that has something to do with it. Does your server have multiple processors? Mine does.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
It helps, with largers installations.
It's just masking a larger issue that I'm trying to find the time to fix.
It's just masking a larger issue that I'm trying to find the time to fix.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
issueeeeeeeeeee...!!! :S
I have 2 differents severs in linux with cacti 8.6c(probe)
in one of the servers(ServerA) the dual pane work perfect..
And in the other server not work..
I take the same tar.gz for installation.
Server A:
Red Hat Linux Advanced Server
Apache/1.3.23
mysql Ver 11.15 Distrib 3.23.41, for redhat
2 - cpu - Intel PIII 1.2 GHz
Server B:
Fedora Core release 2
Apache/2.0.51
mysql Ver 11.18 Distrib 3.23.58, for redhat
2 - cpu - Intel(R) Xeon 2.4Ghz
in one of the servers(ServerA) the dual pane work perfect..
And in the other server not work..
I take the same tar.gz for installation.
Server A:
Red Hat Linux Advanced Server
Apache/1.3.23
mysql Ver 11.15 Distrib 3.23.41, for redhat
2 - cpu - Intel PIII 1.2 GHz
Server B:
Fedora Core release 2
Apache/2.0.51
mysql Ver 11.18 Distrib 3.23.58, for redhat
2 - cpu - Intel(R) Xeon 2.4Ghz
You are getting caught in a redirection error
Look at the code snippet I suggested above. If you are familiar with php, comment out the original code and insert the snippet from above. Let me know if that works for you. Also, someone else suggested that there may be an issue with the "Expand Hosts" option. You may want to try different variations of this option. Make sure that when you make a change that you close your browser out. This will make sure that all of the server variables will be "Nulled Out" and you can get an accurate idea of what changes did work and what changes didn't
As I say, I am still looking for a "Better Solution" to this problem, but to get that I need to find where the problem really is. Please share all the information that you discover so a proper patch can be created.
Roni and The Witness rule. They will save the day, I just know it--- Right???
As I say, I am still looking for a "Better Solution" to this problem, but to get that I need to find where the problem really is. Please share all the information that you discover so a proper patch can be created.
Roni and The Witness rule. They will save the day, I just know it--- Right???
Who is online
Users browsing this forum: No registered users and 0 guests