Got problems no idea whats going on...

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
yarii
Posts: 12
Joined: Wed Oct 07, 2009 1:12 pm

Got problems no idea whats going on...

Post by yarii »

Hi folks!

I've copied files and database from running machine with cacti....and simply ...Graphs don't work :-)

In the debug log there is nothing interesting no errors, all the things are in light colours.
I think permissions are ok ( drwxrwx--- 196 www-data www-data 4096 Jun 20 15:18 rra)
snmpwalk is getting data
Poller is running well without errors.
RRDTool is creating graphs ok but without newest data.

What to check and what to do?

I've got few hours out of my life...with that problem.

Debian + 0.8.7g + rrdtool 1.4.x
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Got problems no idea whats going on...

Post by paulgevers »

yarii wrote:Poller is running well without errors.
Do you mean, if you run it by hand, or is it actually starting every 5 minutes? I.e. did you copy the cron job?
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
yarii
Posts: 12
Joined: Wed Oct 07, 2009 1:12 pm

Re: Got problems no idea whats going on...

Post by yarii »

Spine is started by the cron.
I tried to run it by hand.

The same result.

I can start new openvz container and run the newest debian+cacti 0.8.8 and import db and rra....but it is turnarond,
But what if it wouldn't work?;-)

...Can I upgrade directly from 0.8.7g to 0.8.8a ?
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Got problems no idea whats going on...

Post by paulgevers »

I believe you can upgrade from any 0.8.7 release to 0.8.8(a)
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
yarii
Posts: 12
Joined: Wed Oct 07, 2009 1:12 pm

Re: Got problems no idea whats going on...

Post by yarii »

Will Your ppa work with my debian?
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Got problems no idea whats going on...

Post by paulgevers »

As the package has no versioned dependencies it should work, yes. Be warned, however, that spine is not packaged (and will not be guaranteed to work from one Ubuntu version to an other or to Debian).
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
yarii
Posts: 12
Joined: Wed Oct 07, 2009 1:12 pm

Re: Got problems no idea whats going on...

Post by yarii »

After clean install all things are OK but the monitor plugin is getting error...

Call to undefined function get_graph_tree_array() in /usr/local/share/cacti/plugins/monitor/monitor.php on line 814, referer: http://CACTI/cacti/plugins.php

The line 814 of monitor is
$tree_list = get_graph_tree_array();

that function is in lib/functions.php so why isn't it included?

grr

Should I do new post?
yarii
Posts: 12
Joined: Wed Oct 07, 2009 1:12 pm

Re: Got problems no idea whats going on...

Post by yarii »

It's working now the debian package contains plugins in /usr/local/share/cacti/plugins
I deleted alias to a plugindir and moved all plugins into /usr/share/cacti/plugins :)
HA!
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Got problems no idea whats going on...

Post by paulgevers »

yarii wrote:It's working now the debian package contains plugins in /usr/local/share/cacti/plugins
I deleted alias to a plugindir and moved all plugins into /usr/share/cacti/plugins :)
HA!
Can you please explain to me what is wrong with the softlink aproach? If it does not work, I need to get this fixed in Debian. Don't hesistate to file a bug against Debian explaining the situation there if you believe this is really wrong.

That said, I can hardly believe that this was really the source of your problem, unless of course the plugin really looks at the location of itself and determines the cacti path from there.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
yarii
Posts: 12
Joined: Wed Oct 07, 2009 1:12 pm

Re: Got problems no idea whats going on...

Post by yarii »

paulgevers wrote:
yarii wrote:It's working now the debian package contains plugins in /usr/local/share/cacti/plugins
I deleted alias to a plugindir and moved all plugins into /usr/share/cacti/plugins :)
HA!
Can you please explain to me what is wrong with the softlink aproach? If it does not work, I need to get this fixed in Debian. Don't hesistate to file a bug against Debian explaining the situation there if you believe this is really wrong.

That said, I can hardly believe that this was really the source of your problem, unless of course the plugin really looks at the location of itself and determines the cacti path from there.
I can't, because I don't know where is the error.

When was a softlink there was an error.
When was a real directory it is working. For me the case is closed.

The error was when I tried to load monitor plugin.
I pastled it earlier.

Maybe it is the error in this specified plugin.

I don't know how to debug.
If You want more informations please ask.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Got problems no idea whats going on...

Post by paulgevers »

I finally figured out what is going on. Some of the problems had already been predicted in the discussion of bug 2227. At least some, if not all, plug-ins look for include files in ../include/ which goes wrong if the plug-ins are located somewhere else. The possible solution to this issue is to create a soft-link from /usr/local/share/cacti/include to /usr/share/cacti/site/include.

I filled bug 681558 in Debian for this.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest