CMDPHP: Poller[0] ERROR: SQL Exec Failed (SOLVED)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
bwood
Posts: 6
Joined: Mon Jul 30, 2007 4:57 pm
Location: Houston, TX

CMDPHP: Poller[0] ERROR: SQL Exec Failed (SOLVED)

Post by bwood »

Hello,

I'm getting the following error in my Cacti Log File every couple of minutes:

CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from poller_command where poller_id=0"

Does anyone have any suggestions on how to fix this problem?
Last edited by bwood on Wed Aug 01, 2007 4:33 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sounds like a hosed database:

Code: Select all

mysql cacti
> repair table poller_output;
> quit
TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
bwood
Posts: 6
Joined: Mon Jul 30, 2007 4:57 pm
Location: Houston, TX

Post by bwood »

Thank you for your help, I ran your suggestion through mysql and got the following results:

Code: Select all

mysql> repair table poller_output;
+---------------------+--------+----------+----------------------------------------+
| Table               | Op     | Msg_type | Msg_text                               |
+---------------------+--------+----------+----------------------------------------+
| cacti.poller_output | repair | warning  | Number of rows changed from 815 to 813 |
| cacti.poller_output | repair | status   | OK                                     |
+---------------------+--------+----------+----------------------------------------+
2 rows in set (0.25 sec)

mysql> quit;
Bye
However, I am still receiving the error message in the cacti log. It seems arbitrary, but the fact that it's a big red ERROR bothers me. If anyone has any other suggestions on how to resolve it and make Cacti happy please let me know.

Code: Select all

07/31/2007 08:56:35 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from poller_command where poller_id=0"
07/31/2007 08:55:28 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from poller_command where poller_id=0"
07/31/2007 08:54:32 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from poller_command where poller_id=0"
07/31/2007 08:53:27 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from poller_command where poller_id=0"
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Oops: repair table poller_command; my bad...
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
bwood
Posts: 6
Joined: Mon Jul 30, 2007 4:57 pm
Location: Houston, TX

Post by bwood »

Here are the results of running the repair on the poller_command table:

Code: Select all

mysql> repair table poller_command;
+----------------------+--------+----------+--------------------------------------------+
| Table                | Op     | Msg_type | Msg_text                                   |
+----------------------+--------+----------+--------------------------------------------+
| cacti.poller_command | repair | info     | Wrong bytesec:   0-  0-  0 at 400; Skipped |
| cacti.poller_command | repair | warning  | Number of rows changed from 5 to 4         |
| cacti.poller_command | repair | status   | OK                                         |
+----------------------+--------+----------+--------------------------------------------+
3 rows in set (0.03 sec)

mysql> quit;
Bye
Thank you for your help, the errors are no longer appearing in my cacti log.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests