View Graphs not working

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
lambchopper
Posts: 23
Joined: Wed Mar 31, 2010 2:33 pm
Location: Chicago, IL

View Graphs not working

Post by lambchopper »

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.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

First, submit a patch to bugs.cacti.net for the icons. Second, we should do a gotomeeting to review the graphs issue.

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?
lambchopper
Posts: 23
Joined: Wed Mar 31, 2010 2:33 pm
Location: Chicago, IL

Bug fix

Post by lambchopper »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Dave,

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?
lambchopper
Posts: 23
Joined: Wed Mar 31, 2010 2:33 pm
Location: Chicago, IL

Post by lambchopper »

Just getting ready to leave for the weekend. Next week sometime? I'm in Chicago so I'm in the office 9-5 M-F CST.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's going to be a bugger, except in the evenings....

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?
Wizzer
Posts: 13
Joined: Wed Aug 18, 2010 4:38 pm

Post by Wizzer »

I have the same problem. I don't see a device field on the Graphs page. All the graphs are on the page, but it doesn't appear to be filtered by device like the other tabs are.

Wizzer
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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?
Wizzer
Posts: 13
Joined: Wed Aug 18, 2010 4:38 pm

Post by Wizzer »

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 with Device Filter circled.
MAC Address Tab.JPG (41.55 KiB) Viewed 4494 times
Interfaces Tab with Device Filter circled.
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 with NO Device Filter available. All graphs are displayed starting with the first one.
Graphs Tab.JPG (44.79 KiB) Viewed 4494 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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?
jwhitaker
Posts: 17
Joined: Sat Sep 11, 2010 11:24 pm
Contact:

Re: View Graphs not working

Post by jwhitaker »

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):

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);
I am guessing that both are required perhaps because one is older and one is newer, maybe someone can confirm?
lambchopper
Posts: 23
Joined: Wed Mar 31, 2010 2:33 pm
Location: Chicago, IL

Re: View Graphs not working

Post by lambchopper »

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):

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);
I am guessing that both are required perhaps because one is older and one is newer, maybe someone can confirm?

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);
It looks like this line: $config['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.
jwhitaker
Posts: 17
Joined: Sat Sep 11, 2010 11:24 pm
Contact:

Re: View Graphs not working

Post by jwhitaker »

I am wondering what will happen if you make the change of:

Code: Select all

$url_path = "/";
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.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: View Graphs not working

Post by TheWitness »

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
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest