Hi All,
Running (patched) Cacti0.8.6g on FC4 against MySQL 4.1.11 and I'm getting the error "ERROR: SQL Exec Failed" from the poller. Checking the poller_output table though, you can see that the data IS going in, and the graphs reflect that. Odd thing is that this error isnt there when running poller.php from the command line, so I guess its environment related. Ive tried running poller through a shell wrapper to set a few things but no joy.
Anyone have any ideas whats causing this? Its not a show stopper but I can do without a load of these errors inthe logs for every single server at every single poller run....
01/15/2006 10:40:08 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id,rrd_name,time,output) values (112,'','2006-01-15 10:40:04','LastHourIn:2 LastHourOut:2 Queue:21 ConnectionIn:0 ConnectionOut:10')"
01/15/2006 10:40:08 AM - CMDPHP: Poller[0] Time: 3.9003 s, Theads: N/A, Hosts: 1
01/15/2006 10:40:08 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())"
cactihost:/var/www/html/cacti/lib# mysql cacti
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 22445 to server version: 4.1.11
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select * from poller_output;
+---------------+----------+---------------------+---------------------------------------------------------------------+
| local_data_id | rrd_name | time | output |
+---------------+----------+---------------------+---------------------------------------------------------------------+
| 110 | | 2006-01-15 10:40:04 | LastHourIn:2 LastHourOut:2 Queue:21 ConnectionIn:0 ConnectionOut:10 |
| 111 | | 2006-01-15 10:40:04 | LastHourIn:2 LastHourOut:2 Queue:21 ConnectionIn:0 ConnectionOut:10 |
| 112 | | 2006-01-15 10:40:04 | LastHourIn:2 LastHourOut:2 Queue:21 ConnectionIn:0 ConnectionOut:10 |
+---------------+----------+---------------------+---------------------------------------------------------------------+
3 rows in set (0.00 sec)
mysql> Bye
ERROR: SQL Exec Failed
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This problem could be indicative of having 2 Data Sources of the same type pointed at the same host.
TheWitness
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?
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?
Hmm. Not two datasources as such, but I have one script that runs and collects 5 values. This is in one data template. Then I have 3 graph templates graphing various combinations of those 5 values. This creates 3 different data sources, but all referring back to the one data input method.
I've just run it with two of the three disabled and get the same error.
I've just run it with two of the three disabled and get the same error.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Am I wrong?indicates an empty rrd_name (2nd parameter) which is weird. Perhaps this helps coming closer?
Reinhard
Code: Select all
01/15/2006 10:40:08 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id,rrd_name,time,output) values (112,'','2006-01-15 10:40:04','LastHourIn:2 LastHourOut:2 Queue:21 ConnectionIn:0 ConnectionOut:10')"
Reinhard
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
That is normal for MULTI OUTPUT scripts. It will get an error if you have 2 datasources of the same thing though.
TheWitness
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?
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?
SOLVED (ish)
Ok. Since the prospect of two pollers kept coming being mentioned I diabled the cron entry for it, and guess what. problem solved.
So now I'm just trying to figure out whats running the other poller...
So now I'm just trying to figure out whats running the other poller...
Who is online
Users browsing this forum: No registered users and 0 guests