No data gathering at all (lastest Cacti, RH9, Apache 2.0.40)

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

Moderators: Developers, Moderators

Post Reply
TomChiverton

No data gathering at all (lastest Cacti, RH9, Apache 2.0.40)

Post by TomChiverton »

I've followed all the install instructions, including setting up a cron job, and even bounced cron, yet I don't see, to have any gathering taking place.
There are no errors I can see, and no RRDs either:
cacti]$ ls -la log rra
log:
total 8
drwxr-xr-x 2 cacti users 4096 Jul 14 06:36 .
drwxr-xr-x 11 root root 4096 Jul 15 08:18 ..
-rw-r--r-- 1 root root 0 Jul 14 06:36 rrd.log

rra:
total 8
drwxr-xr-x 2 cacti users 4096 Jul 15 14:10 .
drwxr-xr-x 11 root root 4096 Jul 15 08:18 ..
-rw-r--r-- 1 tom users 0 Jul 14 06:36 .placeholder

Anyone care to hazard a guess what may be up ?
The web interface is up and running fine.
TomChiverton
Posts: 4
Joined: Tue Jul 15, 2003 8:32 am

<pout>

Post by TomChiverton »

No, that's fine, I won't use Cacti, NaP :-/
wmelick
Posts: 34
Joined: Fri Apr 11, 2003 4:11 pm
Location: Wilmington, Delaware

Have you tried to run cmd.php manually?

Post by wmelick »

Some questions:

1) Have you defined polling hosts and data sources?

2) If you run cm.php (in the cacti directory) what does it report? You should see OIDs and data value (N:xxxxxx) updates to the rra's.
wmelick
Posts: 34
Joined: Fri Apr 11, 2003 4:11 pm
Location: Wilmington, Delaware

Oops that was cmd.php

Post by wmelick »

Sorry about that typo.....I meant cmd.php in the cacti dir.
TomChiverton
Posts: 4
Joined: Tue Jul 15, 2003 8:32 am

Re: Have you tried to run cmd.php manually?

Post by TomChiverton »

wmelick wrote:Some questions:

1) Have you defined polling hosts and data sources?

2) If you run cm.php (in the cacti directory) what does it report? You should see OIDs and data value (N:xxxxxx) updates to the rra's.
I was just now running php cmd.php and it's gone off and done loads of stuff. Very odd. Seems to have created the RRDs now.
I even get some graphs.

Really odd.

Ho hum

:goes off to play some more.
wmelick
Posts: 34
Joined: Fri Apr 11, 2003 4:11 pm
Location: Wilmington, Delaware

Yup

Post by wmelick »

Yes, cmd.php triggers a bunch of stuff including the creation of rrd's if they are not there.

The way I make my cron work is to create some cactiuser as a user account, become that user then do a 'crontab -e' and make the first line like:

*/5 * * * * /usr/bin/php /var/www/html/cacti/cmd.php > /dev/null 2>&1
TomChiverton
Posts: 4
Joined: Tue Jul 15, 2003 8:32 am

Re: Yup

Post by TomChiverton »

wmelick wrote:Yes, cmd.php triggers a bunch of stuff including the creation of rrd's if they are not there.

The way I make my cron work is to create some cactiuser as a user account, become that user then do a 'crontab -e' and make the first line like:

*/5 * * * * /usr/bin/php /var/www/html/cacti/cmd.php > /dev/null 2>&1
I had it in /etc/crontab
All seems to be fine now. Very very odd.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests