Of late I have been seeing a lot of the following errors:
Jul 16 16:55:31 MRHMONDR-DNSTL-01 Cacti[22416]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1552, 'traffic_in', '2020-07-16 16:55:30', '4191782758')'
Jul 16 16:55:31 MRHMONDR-DNSTL-01 Cacti[22416]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1552, 'traffic_out', '2020-07-16 16:55:30', '3486306232')'
Jul 16 16:55:31 MRHMONDR-DNSTL-01 Cacti[22416]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (1553, 'traffic_in', '2020-07-16 16:55:30', '2617349945')'
I saw some other topic with similar errors, where they were talking about parallel, conlflicting crontab entries. But there aren't such crontab entries in the servers. What else could be causing this issue? This causing the logs to full up fast to the tune of gigabytes and causing issues on the server.
Hundreds of poller_output errors with DB
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Hundreds of poller_output errors with DB
A 1062 error generally means two crontab entries are launching the poller. There are other cases, but you have not provided nearly enough information on your system.
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?
-
- Posts: 5
- Joined: Fri Jul 03, 2020 5:59 am
Re: Hundreds of poller_output errors with DB
What other information should I provide? Please let me know
TheWitness wrote: ↑Thu Jul 16, 2020 6:34 pm A 1062 error generally means two crontab entries are launching the poller. There are other cases, but you have not provided nearly enough information on your system.
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Hundreds of poller_output errors with DB
Well, if you don't have multiple processes running on the host launched from separate sources, and ps should show this, then you should run show process list on the database during poller operation and look for connections from other servers.
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?
-
- Posts: 5
- Joined: Fri Jul 03, 2020 5:59 am
Re: Hundreds of poller_output errors with DB
I currently see the errors in the logs and here is the list of processes that cacti user is running:
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/php -q /usr/share/cacti/script_server.php cmd
[sh] <defunct>
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
[php] <defunct>
[php] <defunct>
/usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f root
[sh] <defunct>
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
[php] <defunct>
/usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f root
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/php -q /usr/share/cacti/script_server.php cmd
/bin/sh -c /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
/usr/bin/php /usr/share/cacti/poller.php
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/rrdtool -
/usr/bin/php -q /usr/share/cacti/script_server.php cmd
Here is the errors in logs that I see repeating:
----------------------------------------------------------
Jul 21 14:02:17 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuIdle', '2020-07-21 14:02:13', '862684942')'
Jul 21 14:02:17 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuUser', '2020-07-21 14:02:13', '393178123')'
Jul 21 14:02:17 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuIrq', '2020-07-21 14:02:13', '0')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuNice', '2020-07-21 14:02:13', '127028')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuSyst', '2020-07-21 14:02:13', '52563371')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuSoft', '2020-07-21 14:02:13', '2496752')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuIowa', '2020-07-21 14:02:13', '185412')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (370, 'sysMultiHostCpuIdle', '2020-07-21 14:02:13', '1182101406')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (370, 'sysMultiHostCpuUser', '2020-07-21 14:02:13', '82363495')'
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/php -q /usr/share/cacti/script_server.php cmd
[sh] <defunct>
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
[php] <defunct>
[php] <defunct>
/usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f root
[sh] <defunct>
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
[php] <defunct>
/usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f root
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/php -q /usr/share/cacti/script_server.php cmd
/bin/sh -c /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
/usr/bin/php /usr/share/cacti/poller.php
/usr/bin/php -q /usr/share/cacti/cmd.php 0 149
/usr/bin/rrdtool -
/usr/bin/php -q /usr/share/cacti/script_server.php cmd
Here is the errors in logs that I see repeating:
----------------------------------------------------------
Jul 21 14:02:17 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuIdle', '2020-07-21 14:02:13', '862684942')'
Jul 21 14:02:17 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuUser', '2020-07-21 14:02:13', '393178123')'
Jul 21 14:02:17 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuIrq', '2020-07-21 14:02:13', '0')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuNice', '2020-07-21 14:02:13', '127028')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuSyst', '2020-07-21 14:02:13', '52563371')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuSoft', '2020-07-21 14:02:13', '2496752')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (369, 'sysMultiHostCpuIowa', '2020-07-21 14:02:13', '185412')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9873]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (370, 'sysMultiHostCpuIdle', '2020-07-21 14:02:13', '1182101406')'
Jul 21 14:02:18 MRHMONDR-DNSTL-01 Cacti[9872]: CMDPHP: ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (370, 'sysMultiHostCpuUser', '2020-07-21 14:02:13', '82363495')'
TheWitness wrote: ↑Tue Jul 21, 2020 7:31 am Well, if you don't have multiple processes running on the host launched from separate sources, and ps should show this, then you should run show process list on the database during poller operation and look for connections from other servers.
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Hundreds of poller_output errors with DB
Use spine. The default poller is for demos and not for production.
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?
-
- Posts: 5
- Joined: Fri Jul 03, 2020 5:59 am
Re: Hundreds of poller_output errors with DB
But I have other instances where this is running without issues, what else could be a problem here ?
TheWitness wrote: ↑Tue Jul 21, 2020 4:20 pm Use spine. The default poller is for demos and not for production.
Who is online
Users browsing this forum: No registered users and 5 guests