   `last_restart` int(11) default NULL,
   `average` int(11) default NULL,
   PRIMARY KEY  (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
-INSERT INTO `statistics` VALUES (1, '0', '0', '0', '0', '0', '0', '0', '0', '0');
-
-CREATE TABLE `traps` (
-`traps_id` INT NULL AUTO_INCREMENT PRIMARY KEY ,
-`traps_oid` VARCHAR( 255 ) NULL ,
-`traps_ip` VARCHAR( 255 ) NULL ,
-`traps_community` VARCHAR( 255 ) NULL ,
-`traps_infos` VARCHAR( 255 ) NULL
-) ENGINE = MYISAM ;
-
-ALTER TABLE `index_data` ADD INDEX ( `must_be_rebuild` );
-ALTER TABLE `index_data` ADD INDEX ( `trashed` );
-ALTER TABLE `index_data` ADD INDEX ( `host_name` );
-ALTER TABLE `index_data` ADD INDEX ( `service_description` );
-
-
+) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--

  KEY `service_index` (`service_id`),
  KEY `date_end_index` (`date_end`),
  KEY `date_start_index` (`date_start`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Structure de la table `log_snmptt`
--

CREATE TABLE IF NOT EXISTS `log_snmptt` (
  `trap_id` int(11) NOT NULL auto_increment,
  `trap_oid` text,
  `trap_ip` varchar(50) default NULL,
  `trap_community` varchar(50) default NULL,
  `trap_infos` text,
  PRIMARY KEY  (`trap_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Structure de la table `metrics`
--

CREATE TABLE IF NOT EXISTS `metrics` (
  `metric_id` int(11) NOT NULL auto_increment,
  `index_id` int(11) default NULL,
  `metric_name` varchar(255) default NULL,
  `unit_name` varchar(32) default NULL,
  `warn` float default NULL,
  `crit` float default NULL,
  `hidden` enum('0','1') default '0',
  `min` int(11) default NULL,
  `max` int(11) default NULL,
  `locked` enum('0','1') default NULL,
  PRIMARY KEY  (`metric_id`),
  KEY `index` (`index_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Structure de la table `statistics`
--

CREATE TABLE IF NOT EXISTS `statistics` (
  `id` int(11) NOT NULL auto_increment,
  `ctime` int(11) default NULL,
  `lineRead` int(11) default NULL,
