Problem with cacti and debian etch

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

Moderators: Developers, Moderators

Post Reply
m4ster
Posts: 11
Joined: Wed Jan 04, 2006 2:04 pm

Problem with cacti and debian etch

Post by m4ster »

Hi, i have a fresh installation

Debian Etch 4.1
cacti-0.8.6j
apache 2
mysql 5.0.32
php5


The system make good graphics from localhost, loged users, hdd, swap status etc, the poller is working fine.

Create a new device called cable with the ip X with template generic snmp enable host and create good the graphics in /var/www/graficas/rra but with root privileges for all, i change this folder to apache privileges and graphics are working ok.

When try to create new devices or graphics appear this error in debug mode

RRD Says /var/www/graficas/rra/nameofthedevice.rra
No such file or directory

I cant create new graphics. :(

But the 2 graphics, cable and localhost are working fine.

The cron is working ok.
*/5 * * * * php /var/www/graficas/poller.php > /dev/null 2>&1

The database is called graficas in include/config.php have user
root and password xxxxx

The apache privileges for all are
chown -R www-data:www-data /var/www/graficas/

Why the system create fine the 2 first graphics and can't create new graphics now??? and the setting are the same???

Any ideas to fix my problem??

Thax for all.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Problem with cacti and debian etch

Post by gandalf »

m4ster wrote:.../var/www/graficas/rra but with root privileges for all, i change this folder to apache privileges and graphics are working ok.
...
The cron is working ok.
*/5 * * * * php /var/www/graficas/poller.php > /dev/null 2>&1
...
How did you check that crond is working? Does ./log/cacti.log contain entries? Which user runs this crontab? This user must have write access to the ./rra folder!
Reinhard
m4ster
Posts: 11
Joined: Wed Jan 04, 2006 2:04 pm

Problem Solved

Post by m4ster »

Thanx Gandalf, i create a user cacti and chown -R cacti log/ rra/

and su cacti , run php poller.php with this user and not appear errors, in log/cacti.log, and create here the cron , and work fine.

Thanx all
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Does the poller running from cron add entries to ./log/cacti.log?
Reinhard
m4ster
Posts: 11
Joined: Wed Jan 04, 2006 2:04 pm

Working

Post by m4ster »

Now is working fine, thanx
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests