No Graphs

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

Moderators: Developers, Moderators

Post Reply
d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

No Graphs

Post by d0ors »

Hi

I have earlier done a successful installation on windows.

I was trying to set cacti running on linux fc4.

I followed the instructions in : Comprehensive Linux Install Guide by Lee Carter .

The crontab just wont work it seems ....rra files wont updates..and nothing comes up in the cacti.log files either..looks like a permission issue...but i cant put my finger where i went wrong...

Thanks

Details :-

crontab :

[b]*/5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1[/b]

folder permissions :-

rw-r--r-- 1 1000 users 15141 Jun 30 22:45 LICENSE
[b] 8 drwxr-xr-x 2 cactiuser users 4096 Sep 5 17:10 log[/b]
8 -rw-r--r-- 1 1000 users 1796 Jun 30 22:45 logout.php
16 -rw-r--r-- 1 1000 users 9247 Jun 30 22:45 poller.php
8 -rw-r--r-- 1 1000 users 72 Jun 30 22:45 README
8 drwxr-xr-x 5 1000 users 4096 Jun 30 22:45 resource
[b] 8 drwxr-xr-x 2 cactiuser users 4096 Sep 1 13:11 r[/b]ra
12 -rw-r--r-- 1 1000 users 6619 Jun 30 22:45 rra.php

rra files

104 -rw-r--r-- 1 cactiuser cacti 94664 Sep 1 13:40 bb_linksys_traffic_in_8.rrd
104 -rw-r--r-- 1 cactiuser cacti 94664 Sep 1 13:40 bb_linksys_traffic_in_9.rrd
104 -rw-r--r-- 1 cactiuser cacti 94664 Sep 1 13:40 localhost_hdd_free_10.rrd
104 -rw-r--r-- 1 cactiuser cacti 94664 Sep 1 13:40 localhost_hdd_free_11.rrd
104 -rw-r--r-- 1 cactiuser cacti 94664 Sep 1 13:40 localhost_hdd_free_12.rrd
148 -rw-r--r-- 1 cactiuser cacti 141488 Sep 1 13:40 localhost_load_1min_5.rrd
52 -rw-r--r-- 1 cactiuser cacti 47840 Sep 1 13:40 localhost_mem_buffers_3.rrd
52 -rw-r--r-- 1 cactiuser cacti 47840 Sep 1 13:40 localhost_mem_swap_4.rrd
52 -rw-r--r-- 1 cactiuser cacti 47840 Sep 1 13:40 localhost_proc_7.rrd
52 -rw-r--r-- 1 cactiuser cacti 47840 Sep 1 13:40 localhost_users_6.rrd
4 -rw-r--r-- 1 cactiuser users 0 Jun 30 22:45 .placeholder

manual run of cronjob :-

cactiuser@bbnms rra]$ /www/php/bin/php /www/htdocs/cacti/poller.php
09/05/2005 05:21:55 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /www/php/bin/php, ARGS: -q /www/htdocs/cacti/cmd.php 0 2]
Waiting on 1/1 pollers.
09/05/2005 05:21:56 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.48' [map 1min->load_1min]
09/05/2005 05:21:56 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.56' [map 5min->load_5min]
09/05/2005 05:21:56 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.43' [map 10min->load_15min]
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1125958915:6208
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1125958915:1015800
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1125958915:0.48:0.56:0.43
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_users_6.rrd --template users 1125958915:4
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_proc_7.rrd --template proc 1125958915:110
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_10.rrd --template hdd_free:hdd_used 1125958915:85917:9950
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_11.rrd --template hdd_free:hdd_used 1125958915:30629832:4199084
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_12.rrd --template hdd_free:hdd_used 1125958915:253536:0
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/bb_linksys_traffic_in_8.rrd --template traffic_out:traffic_in 1125958915:511140:19801760
09/05/2005 05:21:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/bb_linksys_traffic_in_9.rrd --template traffic_out:traffic_in 1125958915:4204:89102670
09/05/2005 05:21:56 PM - SYSTEM STATS: Time: 1.0553 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 15, RRDs Processed 10
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02

cron logs :-

Sep 5 17:25:01 bbnms crond[11315]: (root) CMD (cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1)
Sep 5 17:25:01 bbnms crond[11317]: (cactiuser) CMD (cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>
&1)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: No Graphs

Post by gandalf »

d0ors wrote:cron logs :-

Sep 5 17:25:01 bbnms crond[11315]: (root) CMD (cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1)
Sep 5 17:25:01 bbnms crond[11317]: (cactiuser) CMD (cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1)
d0ors,
you are running two poller processes. One of them is enough. It seems, that user "cactiuser" has a cron entry and root the other one. You'll want to delete one of them.

Reinhard
d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

Already deleted

Post by d0ors »

I had added a cron entry under the cactiuser profile as part of troubleshooting....it does not work anyways...even if there is just one cron job under root...i have removed the other entry..if i run the cron job manually it does seem to create the rrd files..but still no graphs..snmpwalk works manually..
zbose
Posts: 14
Joined: Tue Aug 02, 2005 4:46 pm

Post by zbose »

I think you don't want specify the user when you run the cronjob from a crontab.

Try:

*/5 * * * * /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1

In your cacti users crontab. Or, alternatively, put what you have already in your /etc/cron.d/ dir as a file.
d0ors
Posts: 10
Joined: Sat May 21, 2005 8:34 am

no graphs

Post by d0ors »

Letting cron run without specifying any user doesnt seem to help either.

Thanks
zbose
Posts: 14
Joined: Tue Aug 02, 2005 4:46 pm

Re: no graphs

Post by zbose »

d0ors wrote:Letting cron run without specifying any user doesnt seem to help either.

Thanks
Did you let it run w/o the specifying the user in the root crontab or the cactiuser cront tab?

Is your cacti log file reporting anything when the cron job runs?

Another thought, you could try redirecting the output to a text file to see if that sheds any light on what is happening:

*/5 * * * * /www/php/bin/php /www/htdocs/cacti/poller.php > /home/cactiuser/polleroutput 2>&1

-Justin
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests