Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 8:40 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Graphs not updating after upgrade to 0.8.7a
PostPosted: Tue Jan 29, 2008 10:28 am 
Offline

Joined: Fri Mar 23, 2007 3:31 pm
Posts: 36
Here is what is in the log file:


01/29/2008 09:24:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:24:38 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:24:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:24:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:24:38 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:24:38 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:24:18 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:24:18 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:24:18 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:24:18 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:24:18 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:24:18 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:23:58 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:23:58 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:23:58 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:23:58 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:23:58 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:23:58 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:23:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:23:38 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:23:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:23:38 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:23:38 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:23:38 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:23:18 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:23:18 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:23:18 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:23:18 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:23:18 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:23:18 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:22:58 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:22:58 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:22:58 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:22:57 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:22:57 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:22:57 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:22:37 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/29/2008 09:22:37 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/29/2008 09:22:37 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='20'"
01/29/2008 09:22:37 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/29/2008 09:22:37 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='0'"
01/29/2008 09:22:37 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/29/2008 09:22:17 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"



I have tried the NAN debug guide but have not found an answer.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 11:34 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
That'S only GUI logging. Nothing shown from the poller. Crontab is ok? Which is your poller (cmd.php or spine?). What happens, if running
Code:
php -q poller.php --force --debug

Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 12:08 pm 
Offline

Joined: Fri Mar 23, 2007 3:31 pm
Posts: 36
[root@localhost html]# php -q poller.php --force --debug
01/29/2008 11:07:06 AM - SYSTEM STATS: Time:14.2344 Method:cmd.php Processes:10 Threads:N/A Hosts:59 HostsPerProcess:6 DataSources:600 RRDsProcessed:0
[root@localhost html]# PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/plugins/syslog/syslog_process.php on line 196


Here is the Crontab

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 4:13 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
Please make sure to setup cacti as given by http://docs.cacti.net/node/441, e.g. crontab. Second, the error message stems from the syslog plugin. For the moment, please deactivate it and retry the command above
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 9:55 am 
Offline

Joined: Fri Mar 23, 2007 3:31 pm
Posts: 36
php -q poller.php --force --debug
01/30/2008 08:53:59 AM - SYSTEM STATS: Time:14.2556 Method:cmd.php Processes:10 Threads:N/A Hosts:59 HostsPerProcess:6 DataSources:600 RRDsProcessed:0


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 11:43 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
That's all? Or did you suppress the first lines that I expected to appear? In this case, please use cacti debug mode as given by second link of my signature to get more information
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 31, 2008 3:02 pm 
Offline

Joined: Fri Mar 23, 2007 3:31 pm
Posts: 36
01/31/2008 02:01:52 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '3 00', Time Since Last: '111', Max Runtime '298', Poller Runs: '1'
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 0 15]
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 17 27]
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 28 34]
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 35 42]
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 43 48]
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 49 65]
01/31/2008 02:01:52 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 66 73]
01/31/2008 02:01:53 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 76 82]
01/31/2008 02:01:53 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 83 90]
01/31/2008 02:01:53 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/cmd.php 91 95]
Waiting on 10/10 pollers.
Waiting on 8/10 pollers.
Waiting on 6/10 pollers.
Waiting on 5/10 pollers.
Waiting on 4/10 pollers.
Waiting on 3/10 pollers.
Waiting on 2/10 pollers.
Waiting on 1/10 pollers.
01/31/2008 02:02:01 PM - SYSTEM STATS: Time:9.2393 Method:cmd.php Processes:10 T hreads:N/A Hosts:59 HostsPerProcess:6 DataSources:600 RRDsProcessed:0
Loop Time is: 9.2477400302887
Sleep Time is: 290.74878001213
Total Time is: 9.2512199878693
01/31/2008 02:02:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces s [CMD: /usr/bin/php, ARGS: -q /var/www/html/plugins/discovery/findhosts.php]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 31, 2008 3:16 pm 
Offline

Joined: Fri Mar 23, 2007 3:31 pm
Posts: 36
Here is what I get when running
php -q cmd.php 47 47





01/31/2008 02:15:21 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1017', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (421, 'hdd_used', '2008-01-31 14:15:21', '0')'
01/31/2008 02:15:21 PM - PHPSVR: Poller[0] DEBUG:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 01, 2008 7:13 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
Please run this SQL manually from mysql cli and post results. Surely, your filesysstem is not filled up and the database is not broken?
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 11, 2008 4:19 am 
Offline

Joined: Wed Oct 04, 2006 12:47 am
Posts: 19
After a upgrade to 0.8.7a, schedules of loading of channels are not drawn. In a file cacti-error.log the mistake:
[Fri Feb 8 17:46:14 2008] [error] PHP Warning: Division by zero in /etc/httpd/htdocs/sites/cacti/lib/api_poller.php on line 119
is given. Somebody can help me?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 11, 2008 2:26 pm 
Offline

Joined: Mon Feb 11, 2008 1:34 pm
Posts: 1
I had the same problem Poller[0] ERROR: A DB Exec Failed!, Error:'1017', SQL blablab.a.

I tried to run the same SQL as in log file into mysql client but the poller_ouput table was missing. I checked my filesystem and it was true :)

A normal cacti installation should have 145 files in /var/lib/mysql/cacti. On the broken cacti server I had only 143 files, two of them were missing and guess what... poller_output was the problem.

My lazy solution was to copy pooler_output.* from another server then run an delete all from poller_output SQL query... and it worked.

Recently I found that this problem was caused by an forced reset of my cacti machine.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 12, 2008 8:55 am 
Offline

Joined: Fri Mar 23, 2007 3:31 pm
Posts: 36
I found I had a time sync issue. This fixed my hard drive space graphing but the network graphing is still spotty.


Top
 Profile  
 
 Post subject: thx that has helped me!
PostPosted: Wed Mar 26, 2008 6:04 pm 
Offline

Joined: Wed Mar 26, 2008 6:01 pm
Posts: 1
[quote="nevrax"]

My lazy solution was to copy pooler_output.* from another server then run an [i]delete all from poller_output[/i] SQL query... and it worked.

[/quote]


Perfect solution for me as well ;)

thx!


Top
 Profile  
 
 Post subject: Same Problem
PostPosted: Sun Sep 14, 2008 6:57 pm 
Offline

Joined: Tue Jul 08, 2008 6:31 pm
Posts: 5
nevrax wrote:
I had the same problem Poller[0] ERROR: A DB Exec Failed!, Error:'1017', SQL blablab.a.

I tried to run the same SQL as in log file into mysql client but the poller_ouput table was missing. I checked my filesystem and it was true :)

A normal cacti installation should have 145 files in /var/lib/mysql/cacti. On the broken cacti server I had only 143 files, two of them were missing and guess what... poller_output was the problem.

My lazy solution was to copy pooler_output.* from another server then run an delete all from poller_output SQL query... and it worked.

Recently I found that this problem was caused by an forced reset of my cacti machine.


I have the same problem and I found that poller_output.frm is present in my server and my guess is poller_output.MYD and poller_output.MYI are missing. I dont know from where I can get these files to paste them on my server.

Any help is appreciated
Pali


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 12:39 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
Cacti does not deal with the MySQL files itself. It requires the table poller_output. If anything goes wrong, a "repair table" is the first solution. This turns out to be a more MySQL related issue, then
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 6 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:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group