View Graphs not working
Moderators: Developers, Moderators
-
- Posts: 23
- Joined: Wed Mar 31, 2010 2:33 pm
- Location: Chicago, IL
View Graphs not working
I installed the newest Mactrack version via SVN and got it mostly working so far.
There were broken links on the view devices and view sites page (the icons next to each item). I had to fix these in the PHP code because they're relative path was different from all the other pages.
All those buttons work now, with the exception of the View Graphs button on the devices page. That button works, but it doesn't actually go to the device that I select, instead it goes to the first Cacti device I'm graphing. It appears as though it's not passing the correct cacti device to the database.
I did map the mactrack device to the correct cacti device. I triple checked this.
There were broken links on the view devices and view sites page (the icons next to each item). I had to fix these in the PHP code because they're relative path was different from all the other pages.
All those buttons work now, with the exception of the View Graphs button on the devices page. That button works, but it doesn't actually go to the device that I select, instead it goes to the first Cacti device I'm graphing. It appears as though it's not passing the correct cacti device to the database.
I did map the mactrack device to the correct cacti device. I triple checked this.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
First, submit a patch to bugs.cacti.net for the icons. Second, we should do a gotomeeting to review the graphs issue.
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?
-
- Posts: 23
- Joined: Wed Mar 31, 2010 2:33 pm
- Location: Chicago, IL
Bug fix
Larry:
See bug ID: 0001844 for the fix to the icons. I posted both the original version of the files and my changes for you to compare.
Let me know what I need to do to do the gotomeeting with you to show you the graphs issue.
Dave
See bug ID: 0001844 for the fix to the icons. I posted both the original version of the files and my changes for you to compare.
Let me know what I need to do to do the gotomeeting with you to show you the graphs issue.
Dave
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Dave,
You around?
Larry
You around?
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?
-
- Posts: 23
- Joined: Wed Mar 31, 2010 2:33 pm
- Location: Chicago, IL
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
It's going to be a bugger, except in the evenings....
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
A picture would help
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?
Here you go...you'll notice the Graphs tab doesn't have a device filter option so it displays all the graphs.
- Attachments
-
- MAC Address Tab with Device Filter circled.
- MAC Address Tab.JPG (41.55 KiB) Viewed 4494 times
-
- Interfaces Tab with Device Filter circled.
- Interfaces Tab.JPG (36.47 KiB) Viewed 4494 times
-
- Graphs Tab with NO Device Filter available. All graphs are displayed starting with the first one.
- Graphs Tab.JPG (44.79 KiB) Viewed 4494 times
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yeah. Interesting..... Please open bug and attach the images.
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?
Re: View Graphs not working
lambchopper, I had the same issue with the icons on a very fresh install. Turns out in cacti/include/global.php, I had set $config['url_path'] (second one in the below example) but not $url_path (first one in the below example):
I am guessing that both are required perhaps because one is older and one is newer, maybe someone can confirm?
Code: Select all
/* set URL path */
if (! isset($url_path)) {
$url_path = "/cacti/"; // FIRST ONE
}
$config['url_path'] = "/cacti/"; // SECOND ONE
define('URL_PATH', $url_path);
-
- Posts: 23
- Joined: Wed Mar 31, 2010 2:33 pm
- Location: Chicago, IL
Re: View Graphs not working
jwhitaker wrote:lambchopper, I had the same issue with the icons on a very fresh install. Turns out in cacti/include/global.php, I had set $config['url_path'] (second one in the below example) but not $url_path (first one in the below example):
I am guessing that both are required perhaps because one is older and one is newer, maybe someone can confirm?Code: Select all
/* set URL path */ if (! isset($url_path)) { $url_path = "/cacti/"; // FIRST ONE } $config['url_path'] = "/cacti/"; // SECOND ONE define('URL_PATH', $url_path);
this is what is in my Global.php:
Code: Select all
/* set URL path */
if (! isset($url_path)) {
$url_path = "";
}
/* $config['url_path'] = $url_path; */
$config['url_path'] = "/";
define('URL_PATH', $url_path);
is different in your code as opposed to mine. I do know that I documented what I changed in the Bug report that I have listed at the top. It's been a while so I don't entirely remember all the specifics.
Re: View Graphs not working
I am wondering what will happen if you make the change of:
so that both are set to have a slash - if I read the code correctly that is pointed out in the bug response, I think having something defined versus an empty string may make a difference. Of course, you'd have to unroll your changes to see if it fixes things for you.
Code: Select all
$url_path = "/";
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: View Graphs not working
Starting with PIA 2.8++, we no longer want you to make any changes to global.php. With the PIA, you simply need to make sure $url_path is set properly in config.php.
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?
Who is online
Users browsing this forum: No registered users and 1 guest