Ok! Here you are!
Thanks!
# mysqldump -uuser -p -d cacti thold_data thold_template plugin_thold_template_contact plugin_thold_threshold_contact plugin_thold_contacts plugin_thold_log
Code: Select all
-- MySQL dump 10.11
--
-- Host: localhost Database: cacti
-- ------------------------------------------------------
-- Server version 5.0.32-Debian_7etch8-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `thold_data`
--
DROP TABLE IF EXISTS `thold_data`;
CREATE TABLE `thold_data` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(100) NOT NULL default '',
`rra_id` int(11) NOT NULL default '0',
`data_id` int(11) NOT NULL default '0',
`graph_id` int(11) NOT NULL default '0',
`graph_template` int(11) NOT NULL default '0',
`data_template` int(11) NOT NULL default '0',
`thold_hi` varchar(100) default NULL,
`thold_low` varchar(100) default NULL,
`thold_fail_trigger` int(10) unsigned default NULL,
`time_hi` varchar(100) default NULL,
`time_low` varchar(100) default NULL,
`time_fail_trigger` int(12) NOT NULL default '1',
`time_fail_length` int(12) NOT NULL default '1',
`thold_fail_count` int(11) NOT NULL default '0',
`thold_alert` int(1) NOT NULL default '0',
`thold_enabled` enum('on','off') NOT NULL default 'on',
`thold_type` int(3) NOT NULL default '0',
`bl_enabled` enum('on','off') NOT NULL default 'off',
`bl_ref_time` int(50) unsigned default NULL,
`bl_ref_time_range` int(10) unsigned default NULL,
`bl_pct_down` int(10) unsigned default NULL,
`bl_pct_up` int(10) unsigned default NULL,
`bl_fail_trigger` int(10) unsigned default NULL,
`bl_fail_count` int(11) unsigned default NULL,
`bl_alert` int(2) NOT NULL default '0',
`lastread` varchar(100) default NULL,
`oldvalue` varchar(100) NOT NULL default '',
`repeat_alert` int(10) unsigned default NULL,
`notify_extra` varchar(255) default NULL,
`data_type` int(3) NOT NULL default '0',
`host_id` int(10) default NULL,
`syslog_priority` int(2) default '3',
`cdef` int(11) NOT NULL default '0',
`percent_ds` varchar(64) NOT NULL default '0',
`template` int(11) NOT NULL default '0',
`template_enabled` char(3) NOT NULL default '',
`tcheck` int(1) NOT NULL default '0',
`exempt` char(3) NOT NULL default 'off',
`restored_alert` char(3) NOT NULL default 'off',
PRIMARY KEY (`id`),
KEY `rra_id` (`rra_id`),
KEY `template` (`template`),
KEY `template_enabled` (`template_enabled`),
KEY `data_id` (`data_id`),
KEY `thold_enabled` (`thold_enabled`),
KEY `tcheck` (`tcheck`),
KEY `graph_id` (`graph_id`),
KEY `graph_template` (`graph_template`),
KEY `data_template` (`data_template`)
) ENGINE=MyISAM AUTO_INCREMENT=786 DEFAULT CHARSET=latin1;
--
-- Table structure for table `thold_template`
--
DROP TABLE IF EXISTS `thold_template`;
CREATE TABLE `thold_template` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(100) NOT NULL default '',
`data_template_id` int(32) NOT NULL default '0',
`data_template_name` varchar(100) NOT NULL default '',
`data_source_id` int(10) NOT NULL default '0',
`data_source_name` varchar(100) NOT NULL default '',
`data_source_friendly` varchar(100) NOT NULL default '',
`thold_hi` varchar(100) default NULL,
`thold_low` varchar(100) default NULL,
`thold_fail_trigger` int(10) default '1',
`time_hi` varchar(100) default NULL,
`time_low` varchar(100) default NULL,
`time_fail_trigger` int(12) NOT NULL default '1',
`time_fail_length` int(12) NOT NULL default '1',
`thold_enabled` enum('on','off') NOT NULL default 'on',
`thold_type` int(3) NOT NULL default '0',
`bl_enabled` enum('on','off') NOT NULL default 'off',
`bl_ref_time` int(50) default NULL,
`bl_ref_time_range` int(10) default NULL,
`bl_pct_down` int(10) default NULL,
`bl_pct_up` int(10) default NULL,
`bl_fail_trigger` int(10) default NULL,
`bl_alert` int(2) default NULL,
`repeat_alert` int(10) NOT NULL default '12',
`notify_extra` varchar(255) NOT NULL default '',
`cdef` int(11) NOT NULL default '0',
`percent_ds` varchar(64) NOT NULL default '0',
`exempt` char(3) NOT NULL default 'off',
`restored_alert` char(3) NOT NULL default 'off',
UNIQUE KEY `data_source_id` (`data_source_id`),
KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COMMENT='Table of thresholds defaults for graphs';
--
-- Table structure for table `plugin_thold_template_contact`
--
DROP TABLE IF EXISTS `plugin_thold_template_contact`;
CREATE TABLE `plugin_thold_template_contact` (
`template_id` int(12) NOT NULL,
`contact_id` int(12) NOT NULL,
KEY `template_id` (`template_id`),
KEY `contact_id` (`contact_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Table of Tholds Template Contacts';
--
-- Table structure for table `plugin_thold_threshold_contact`
--
DROP TABLE IF EXISTS `plugin_thold_threshold_contact`;
CREATE TABLE `plugin_thold_threshold_contact` (
`thold_id` int(12) NOT NULL,
`contact_id` int(12) NOT NULL,
KEY `thold_id` (`thold_id`),
KEY `contact_id` (`contact_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Table of Tholds Threshold Contacts';
--
-- Table structure for table `plugin_thold_contacts`
--
DROP TABLE IF EXISTS `plugin_thold_contacts`;
CREATE TABLE `plugin_thold_contacts` (
`id` int(12) NOT NULL auto_increment,
`user_id` int(12) NOT NULL,
`type` varchar(32) NOT NULL,
`data` text NOT NULL,
PRIMARY KEY (`id`),
KEY `type` (`type`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=154 DEFAULT CHARSET=latin1;
--
-- Table structure for table `plugin_thold_log`
--
DROP TABLE IF EXISTS `plugin_thold_log`;
CREATE TABLE `plugin_thold_log` (
`id` int(10) NOT NULL auto_increment,
`time` int(32) NOT NULL,
`host_id` int(10) NOT NULL,
`graph_id` int(10) NOT NULL,
`threshold_id` int(10) NOT NULL,
`threshold_value` varchar(64) NOT NULL,
`current` varchar(64) NOT NULL,
`status` int(5) NOT NULL,
`type` int(5) NOT NULL,
`description` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `time` (`time`),
KEY `host_id` (`host_id`),
KEY `graph_id` (`graph_id`),
KEY `status` (`status`),
KEY `type` (`type`),
KEY `threshold_id` (`threshold_id`)
) ENGINE=MyISAM AUTO_INCREMENT=168 DEFAULT CHARSET=latin1;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2009-03-20 11:49:34
# cat thold.sql
Code: Select all
DROP TABLE IF EXISTS `thold_data`;
CREATE TABLE `thold_data` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(100) NOT NULL default '',
`rra_id` int(11) NOT NULL default '0',
`data_id` int(11) NOT NULL default '0',
`graph_id` int(11) NOT NULL default '0',
`graph_template` int(11) NOT NULL default '0',
`data_template` int(11) NOT NULL default '0',
`thold_hi` varchar(100) default NULL,
`thold_low` varchar(100) default NULL,
`thold_fail_trigger` int(10) unsigned default NULL,
`thold_fail_count` int(11) NOT NULL default '0',
`thold_alert` int(1) NOT NULL default '0',
`thold_enabled` enum('on','off') NOT NULL default 'on',
`bl_enabled` enum('on','off') NOT NULL default 'off',
`bl_ref_time` int(50) unsigned default NULL,
`bl_ref_time_range` int(10) unsigned default NULL,
`bl_pct_down` int(10) unsigned default NULL,
`bl_pct_up` int(10) unsigned default NULL,
`bl_fail_trigger` int(10) unsigned default NULL,
`bl_fail_count` int(11) unsigned default NULL,
`bl_alert` int(2) NOT NULL default '0',
`lastread` varchar(100) default NULL,
`oldvalue` varchar(100) NOT NULL default '',
`repeat_alert` int(10) unsigned default NULL,
`notify_extra` varchar(255) default NULL,
`host_id` int(10) default NULL,
`syslog_priority` int(2) default '3',
`data_type` int(3) NOT NULL default '0',
`cdef` int(11) NOT NULL default '0',
`percent_ds` varchar(64) NOT NULL,
`template` int(11) NOT NULL default '0',
`template_enabled` char(3) NOT NULL default '',
`tcheck` int(1) NOT NULL default '0',
`exempt` char(3) NOT NULL default 'off',
`restored_alert` char(3) NOT NULL default 'off',
PRIMARY KEY (`id`),
KEY `host_id` (`host_id`),
KEY `rra_id` (`rra_id`),
KEY `data_id` (`data_id`),
KEY `graph_id` (`graph_id`),
KEY `graph_template` (`graph_template`),
KEY `data_template` (`data_template`),
KEY `template` (`template`),
KEY `template_enabled` (`template_enabled`),
KEY `thold_enabled` (`thold_enabled`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS `thold_template`;
CREATE TABLE thold_template (
id int(11) NOT NULL auto_increment,
name varchar(100) NOT NULL default '',
data_template_id int(32) NOT NULL default '0',
data_template_name varchar(100) NOT NULL default '',
data_source_id int(10) NOT NULL default '0',
data_source_name varchar(100) NOT NULL default '',
data_source_friendly varchar(100) NOT NULL default '',
thold_hi varchar(100) default NULL,
thold_low varchar(100) default NULL,
thold_fail_trigger int(10) default '1',
thold_enabled enum('on','off') NOT NULL default 'on',
bl_enabled enum('on','off') NOT NULL default 'off',
bl_ref_time int(50) default NULL,
bl_ref_time_range int(10) default NULL,
bl_pct_down int(10) default NULL,
bl_pct_up int(10) default NULL,
bl_fail_trigger int(10) default NULL,
bl_alert int(2) default NULL,
repeat_alert int(10) NOT NULL default '12',
notify_extra varchar(255) NOT NULL default '',
data_type int(3) NOT NULL default '0',
cdef int(11) NOT NULL default '0',
percent_ds varchar(64) NOT NULL,
exempt char(3) NOT NULL default 'off',
restored_alert char(3) NOT NULL default 'off',
PRIMARY KEY (id),
KEY `data_template_id` (`data_template_id`),
KEY `data_source_id` (`data_source_id`)
) TYPE=MyISAM COMMENT='Table of thresholds defaults for graphs';
DROP TABLE IF EXISTS `plugin_thold_template_contact`;
CREATE TABLE plugin_thold_template_contact (
template_id int(12) NOT NULL,
contact_id int(12) NOT NULL,
KEY template_id (template_id),
KEY contact_id (contact_id)
) TYPE=MyISAM COMMENT='Table of Tholds Template Contacts';
DROP TABLE IF EXISTS `plugin_thold_threshold_contact`;
CREATE TABLE plugin_thold_threshold_contact (
thold_id int(12) NOT NULL,
contact_id int(12) NOT NULL,
KEY thold_id (thold_id),
KEY contact_id (contact_id)
) TYPE=MyISAM COMMENT='Table of Tholds Threshold Contacts';
DROP TABLE IF EXISTS `plugin_thold_contacts`;
CREATE TABLE plugin_thold_contacts (
`id` int(12) NOT NULL auto_increment,
`user_id` int(12) NOT NULL,
`type` varchar(32) NOT NULL,
`data` text NOT NULL,
PRIMARY KEY (`id`),
KEY `type` (`type`),
KEY `user_id` (`user_id`)
) TYPE=MyISAM;
CREATE TABLE `plugin_thold_log` (
`id` int(12) NOT NULL auto_increment,
`time` int(24) NOT NULL,
`host_id` int(10) NOT NULL,
`graph_id` int(10) NOT NULL,
`threshold_id` int(10) NOT NULL,
`threshold_value` varchar(64) NOT NULL,
`current` varchar(64) NOT NULL,
`status` int(5) NOT NULL,
`type` int(5) NOT NULL,
`description` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `time` (`time`),
KEY `host_id` (`host_id`),
KEY `graph_id` (`graph_id`),
KEY `threshold_id` (`threshold_id`),
KEY `status` (`status`),
KEY `type` (`type`)
) ENGINE=MyISAM COMMENT='Table of All Threshold Breaches';
REPLACE INTO user_auth_realm VALUES (18, 1);
REPLACE INTO user_auth_realm VALUES (19, 1);
REPLACE INTO settings VALUES ('alert_bl_past_default',86400);
REPLACE INTO settings VALUES ('alert_bl_timerange_def',10800);
REPLACE INTO settings VALUES ('alert_bl_percent_def',20);
REPLACE INTO settings VALUES ('alert_bl_trigger',3);