Cactiusers.org


It is currently Thu Sep 02, 2010 10:48 pm




Post new topic Reply to topic  [ 6 posts ] 
 pooler is runnig. folder permission ok. but graph is empty 
Author Message
New User

Joined: Mon Jun 29, 2009 11:37 pm
Posts: 3
Post pooler is runnig. folder permission ok. but graph is empty
I ensure my pooler is running.

Code:
tail -f /var/log/cacti/cacti.log

06/30/2009 04:00:03 AM - SYSTEM STATS: Time:2.0192 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
06/30/2009 04:05:04 AM - SYSTEM STATS: Time:2.0215 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
06/30/2009 04:10:03 AM - SYSTEM STATS: Time:2.0202 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:6 RRDsProcessed:0


I ensure my folders permission are OK.

Code:
yanchengclean:/tmp/cacti-0.8.7e# ls -al /var/log/cacti
total 192
drwxr-xr-x 2 cactiuser www-data   4096 Jun 30 03:48 .
drwxr-xr-x 8 root      root       4096 Jun 30 03:13 ..
-rw-r----- 1 cactiuser www-data 181856 Jun 30 04:55 cacti.log
-rw-r--r-- 1 cactiuser www-data      0 Jun 30 03:45 poller-error.log
-rw-r----- 1 cactiuser www-data      0 Jun 29 03:52 rrd.log
yanchengclean:/tmp/cacti-0.8.7e# ls -al /var/lib/cacti/rra
total 344
drwxrwx--- 2 cactiuser www-data   4096 Jun 30 03:50 .
drwxr-xr-x 3 cactiuser root       4096 Jun 29 03:43 ..
-rw-r--r-- 1 cactiuser www-data 141488 Jun 30 03:20 localhost_load_1min_5.rrd
-rw-r--r-- 1 cactiuser www-data  47840 Jun 30 03:20 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 cactiuser www-data  47840 Jun 30 03:20 localhost_mem_swap_4.rrd
-rw-r--r-- 1 cactiuser www-data  47840 Jun 30 03:20 localhost_proc_7.rrd
-rw-r--r-- 1 cactiuser www-data  47840 Jun 30 03:20 localhost_users_6.rrd
yanchengclean:/tmp/cacti-0.8.7e#


If you compare timestamp for localhost_load_1min_5.rrd and cacti.log, localhost_load_1min_5.rrd is not being updated at all.

May I know what else I need to look into it?

Thanks!


Tue Jun 30, 2009 12:12 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: pooler is runnig. folder permission ok. but graph is empty
Run your poller in medium mode, and see what result the script is returning to the Cacti log.


Tue Jun 30, 2009 2:27 am
New User

Joined: Mon Jun 29, 2009 11:37 pm
Posts: 3
Post Re: pooler is runnig. folder permission ok. but graph is empty
I turn the logging mode even to DEBUG:

Code:
cactiuser@yanchengclean:/$ php /usr/share/cacti/site/poller.php
07/01/2009 02:54:58 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/cmd.php 0 1]
Waiting on 1/1 pollers.
07/01/2009 02:55:00 AM - SYSTEM STATS: Time:2.0252 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:0
cactiuser@yanchengclean:/$


Is the poller running correctly? Is this what the output should be?


Tue Jun 30, 2009 10:08 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: pooler is runnig. folder permission ok. but graph is empty
check you cacti (from the interface or ./log/cacti.log) and see what result the script is returning. Running the poller manually is not going to show the results from cmd.php on the screen, you have to look at the log for that info.


Wed Jul 01, 2009 8:43 pm
New User

Joined: Mon Jun 29, 2009 11:37 pm
Posts: 3
Post Re: pooler is runnig. folder permission ok. but graph is empty
I try your advice :

Code:

yanchengclean:/# su cactiuser


cactiuser@yanchengclean:/$ php /usr/share/cacti/site/poller.php
07/02/2009 07:18:37 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/cmd.php 0 1]
Waiting on 1/1 pollers.
07/02/2009 07:18:39 AM - SYSTEM STATS: Time:2.0267 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:0


cactiuser@yanchengclean:/$ php -q /usr/share/cacti/site/poller.php --force
07/02/2009 07:18:48 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/cmd.php 0 1]
Waiting on 1/1 pollers.
07/02/2009 07:18:51 AM - SYSTEM STATS: Time:2.0248 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:0


cactiuser@yanchengclean:/$ vi /var/log/cacti/cacti.log


When I check the log file, I get the following message :

Code:
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_item"
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select id from host where disabled = '' order by id"
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('path_webroot','/usr/share/cacti/site')"
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "truncate table poller_time"
07/02/2009 07:18:37 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/cmd.php 0 1]
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from host where (disabled = '' and id >= 0 and id <= 1) ORDER by id"
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT * from poller_item WHERE (host_id >= 0 and host_id <= 1) ORDER by host_id"
07/02/2009 07:18:37 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "SELECT count(*) from poller_item WHERE (action=2 AND (host_id >= 0 and host_id <= 1))"
07/02/2009 07:18:38 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('date',NOW())"
07/02/2009 07:18:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
07/02/2009 07:18:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
07/02/2009 07:18:38 AM - CMDPHP: Poller[0] Host[1] SNMP: Host did not respond to SNMP
07/02/2009 07:18:38 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update host set  status = '1',  status_event_count = '479',  status_fail_date = '2009-06-30 03:25:02',  status_rec_date = '0000-00-00 00:00:00',  status_last_error = 'Host did not respond to SNMP',  min_time = '0.04000',  max_time = '0.06000',  cur_time = '0.04000',  avg_time = '0.05000',  total_polls = '481',  failed_polls = '479',  availability = '0.4158004158'  where hostname = '127.0.0.1'"


Seem like my SNMP server is not running properly? How can I start my SNMP server?


Thu Jul 02, 2009 3:08 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: pooler is runnig. folder permission ok. but graph is empty
Change it to MEDIUM instead of debug


Thu Jul 02, 2009 10:56 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: