Help with cacti setup

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

Moderators: Developers, Moderators

Post Reply
[Snowman]
Posts: 5
Joined: Tue Apr 10, 2007 6:37 am

Help with cacti setup

Post by [Snowman] »

Hello im new to cacti and have a problem or 2.
I run it under Trustix 2.2
The rrd don't generate any graphs.

ERROR: opening '/home/httpd/html/cacti/rra/localhost_load_1min_5.rrd': No such file or directory

after reading many many hours i haven't found any answers yet.
Some say that its the crontab

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/bin:/usr/sbin
MAILTO=root
HOME=/

# Run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * root php /home/http/html/cacti/poller.php > /dev/null 2>&1

Or the php secure enable ?

I don't have a clue whats wrong so if someone could help me i would be a real happy man.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You probably need the full path to php in the crontab entry.

Code: Select all

which php
Above command will tell you the full path to php.
[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]
[Snowman]
Posts: 5
Joined: Tue Apr 10, 2007 6:37 am

Post by [Snowman] »

rony wrote:You probably need the full path to php in the crontab entry.

Code: Select all

which php
Above command will tell you the full path to php.
like this?

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/bin:/usr/sbin
MAILTO=root
HOME=/

# Run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * root /usr/bin/php /home/http/html/cacti/poller.php > /dev/null 2>&1
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yep, like that.

See if you the poller is running correctly now.

Also, you might want to watch the log/cacti.log in your Cacti directory.
[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]
[Snowman]
Posts: 5
Joined: Tue Apr 10, 2007 6:37 am

Post by [Snowman] »

rony wrote:Yep, like that.

See if you the poller is running correctly now.

Also, you might want to watch the log/cacti.log in your Cacti directory.
I still don't get any graphs and the log is still empty.
How can i check so the polling is working?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you tried running it manually to see if it's generating any errors. FYI, don't redirect the output to /dev/null.
[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]
[Snowman]
Posts: 5
Joined: Tue Apr 10, 2007 6:37 am

Post by [Snowman] »

rony wrote:Have you tried running it manually to see if it's generating any errors. FYI, don't redirect the output to /dev/null.
ok how do i running it manually?

php /home/html/http/cacti/polling.php ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yes sir.
[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]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

No, sir!
[Snowman] wrote:
rony wrote:Have you tried running it manually to see if it's generating any errors. FYI, don't redirect the output to /dev/null.
ok how do i running it manually?

php /home/html/http/cacti/polling.php ?
php -q /home/html/http/cacti/poller.php
Reinhard
:wink: :roll: :wink:
:D :D :D
[Snowman]
Posts: 5
Joined: Tue Apr 10, 2007 6:37 am

Post by [Snowman] »

nop that dosent work. :-?
and stil nothing in the log


SHELL=/bin/bash
PATH=/sbin:/bin:/usr/bin:/usr/sbin
MAILTO=root
HOME=/

# Run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * root /usr/bin/php /home/http/html/cacti/poller.php
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please login as cactiuser. Run

Code: Select all

php -q /home/html/http/cacti/poller.php 
from command line (assuming your cacti installation lives at /home/html/http/cacti which is quite unusual) and post the results (you should see some on STDOUT)
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests