-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When poller runs, memory tables may not always be present #4396
Comments
I haven't seen this before
What version are you on?
Was it a fresh install or upgrade
I like the idea though
…On Thu., Sep. 9, 2021, 23:28 Jian Jin, ***@***.***> wrote:
Describe the bug
In cacti log, it reports that poller_output_boost_processes,
poller_output_realtime are missing on the database server
To Reproduce
Cannot reproduce
Additional context
We can make en enhancement in the poller.php to check those two tables'
existence (poller_output_boost_processes and poller_output_realtime).
Just like what we have done for table poller_output_boost as following
// catch the unlikely event that the poller_output_boost is missing
if (!db_table_exists('poller_output_boost')) {
db_execute('CREATE TABLE poller_output_boost LIKE poller_output');
db_execute('ALTER TABLE poller_output_boost ENGINE=InnoDB');
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4396>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGEXTCVTTGUI5MHHGJNATTUBF3NZANCNFSM5DYOTK6A>
.
|
Hi @bmfmancini , Let me make a PR then. |
@kim-fitness, I have not reviewed yet. Thanks for the contribution. |
I have merged this one. Thanks! |
Hello,
index 341f28d88..61aa1a892 100755
--- a/poller.php
+++ b/poller.php
@@ -212,11 +212,11 @@ if (!db_table_exists('poller_output_boost_processes')) {
// catch the unlikely event that the poller_output_realtime is missing
if (!db_table_exists('poller_output_realtime')) {
db_execute('CREATE TABLE poller_output_realtime (
- local_data_id mediumint(8) unsigned NOT NULL default '0',
- rrd_name varchar(19) NOT NULL default '',
- `time` timestamp NOT NULL default '0000-00-00 00:00:00',
+ local_data_id mediumint(8) unsigned NOT NULL default "0",
+ rrd_name varchar(19) NOT NULL default "",
+ `time` timestamp NOT NULL default "0000-00-00 00:00:00",
output text NOT NULL,
- poller_id varchar(256) NOT NULL default '1',
+ poller_id varchar(256) NOT NULL default "1",
PRIMARY KEY (local_data_id, rrd_name, time, poller_id),
KEY poller_id (poller_id(191)),
KEY `time` (`time`)) |
Thanks and upon further review, there are additional issues. |
Moving this to a common function. We still need discussion on when it's best to perform table maintenance for tables like the `poller_output` table, that when this table is InnoDB, it can become fragmented, though empty and that free space can not be released without an optimize operation, which for InnoDB tables can take some time.
Please review the latest commit and comment. Our Travis commit check has been down for a while and that allowed a few of these issues to creep in. There was another syntax error corrected just last week that slipped through the cracks too. |
Describe the bug
In cacti log, it reports that poller_output_boost_processes, poller_output_realtime are missing on the database server
To Reproduce
Cannot reproduce
Additional context
We can make en enhancement in the poller.php to check those two tables' existence (
poller_output_boost_processes
andpoller_output_realtime
). Just like what we have done for tablepoller_output_boost
as followingThe text was updated successfully, but these errors were encountered: