Need help creating poller_item.MYD table

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
rtyrell
Posts: 7
Joined: Thu Dec 08, 2005 11:34 pm
Location: Overland Park, KS
Contact:

Need help creating poller_item.MYD table

Post by rtyrell »

Mysql crashed and somehow the poller_item.MYD file got deleted. I have the database schema but I am not that familiar with Mysql. Can anyone post the sytax required to recreate the poller_item table?

Thank you,

-Rick
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run the following query on the cacti database:

Code: Select all

CREATE TABLE poller_item (
  local_data_id mediumint(8) unsigned NOT NULL default '0',
  poller_id smallint(5) unsigned NOT NULL default '0',
  host_id mediumint(8) NOT NULL default '0',
  action tinyint(2) unsigned NOT NULL default '1',
  hostname varchar(250) NOT NULL default '',
  snmp_community varchar(100) NOT NULL default '',
  snmp_version tinyint(1) unsigned NOT NULL default '0',
  snmp_username varchar(50) NOT NULL default '',
  snmp_password varchar(50) NOT NULL default '',
  snmp_port mediumint(5) unsigned NOT NULL default '161',
  snmp_timeout mediumint(8) unsigned NOT NULL default '0',
  rrd_name varchar(19) NOT NULL default '',
  rrd_path varchar(255) NOT NULL default '',
  rrd_num tinyint(2) unsigned NOT NULL default '0',
  rrd_step mediumint(8) unsigned NOT NULL default '300',
  rrd_next_step mediumint(8) NOT NULL default '0',
  arg1 varchar(255) default NULL,
  arg2 varchar(255) default NULL,
  arg3 varchar(255) default NULL,
  PRIMARY KEY  (local_data_id,rrd_name),
  KEY local_data_id (local_data_id),
  KEY host_id (host_id)
) TYPE=MyISAM;
After the table is created, you need to repopulate it. This is done by running Utilities -> Clear Poller Cache in the web interface. This really doesn't clear it, it rebuilds it and shows the results.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
rtyrell
Posts: 7
Joined: Thu Dec 08, 2005 11:34 pm
Location: Overland Park, KS
Contact:

Thanks!

Post by rtyrell »

You guys rock....thanks again! Everthing is working now.

-Rick
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests