create data source - debian

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ola
Posts: 3
Joined: Thu Feb 10, 2005 6:59 am

create data source - debian

Post by ola »

Hi!

I have installed cacti (with apt-get). I have set up the database. I have imported the cacti.sql file.

when i run the following:

Code: Select all

$:/usr/bin/php /usr/share/cacti/cmd.php
I get the following:

Code: Select all

There are no items in your poller cache. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.
time: 0
any ideas what i have done wrong?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Install cacti from source located at www.cacti.net.

Package maintainers sometimes make changes to the way things work to "fit" the way the distributions does 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]
dp
Posts: 5
Joined: Tue Jan 25, 2005 10:28 am

Post by dp »

Or, he could have just gone to the Utilities screen and cleared the poller cache like it suggested...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That doesn't always work, but it's always worth a try. My suggestion still stands.
[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]
ola
Posts: 3
Joined: Thu Feb 10, 2005 6:59 am

Post by ola »

I have tried to clear the poller cache.. with no good result :(

your recommendation still stands to install cacti from source?

I'll try that later, must just find time for it :(
tanks a lot for the help!
nodens
Posts: 11
Joined: Sun Feb 06, 2005 2:49 pm

Post by nodens »

I would suggest filling a bug against the debian package, but I vaguely remember of the debian package using some wrappers here and there for php scripts in cact.

Actually, I did use the debian package, and it worked fine for me. I dind't remember having anything to do manually to get it to work (and especially no php call), as everything is taken into account by the package. The only drawback to using the debian package is that the version is a bit old, and the package has been orphaned by its maintainer due to lack of time. Someone is working on packaging the last version and taking the package over, but it happened only a few days ago, he will probably need a bit more time to do it.

Using the source is pretty straighforward, you could even tweak the config files to use the debian configuration and paths (I did that, and it works well so far).
ola
Posts: 3
Joined: Thu Feb 10, 2005 6:59 am

Post by ola »

tanks for replying!

I'll keep struggling with the deb-package and try to find what's the problem atleast ^_^
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests