summaryrefslogtreecommitdiff
path: root/dist/schema-snmptrapd.sql
diff options
context:
space:
mode:
Diffstat (limited to 'dist/schema-snmptrapd.sql')
-rw-r--r--dist/schema-snmptrapd.sql31
1 files changed, 31 insertions, 0 deletions
diff --git a/dist/schema-snmptrapd.sql b/dist/schema-snmptrapd.sql
new file mode 100644
index 0000000..f496f17
--- /dev/null
+++ b/dist/schema-snmptrapd.sql
@@ -0,0 +1,31 @@
+USE net_snmp;
+DROP TABLE IF EXISTS notifications;
+CREATE TABLE IF NOT EXISTS `notifications` (
+ `trap_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
+ `date_time` datetime NOT NULL,
+ `host` varchar(255) NOT NULL,
+ `auth` varchar(255) NOT NULL,
+ `type` ENUM('get','getnext','response','set','trap','getbulk','inform','trap2','report') NOT NULL,
+ `version` ENUM('v1','v2c', 'unsupported(v2u)','v3') NOT NULL,
+ `request_id` int(11) unsigned NOT NULL,
+ `snmpTrapOID` varchar(1024) NOT NULL,
+ `transport` varchar(255) NOT NULL,
+ `security_model` ENUM('snmpV1','snmpV2c','USM') NOT NULL,
+ `v3msgid` int(11) unsigned,
+ `v3security_level` ENUM('noAuthNoPriv','authNoPriv','authPriv'),
+ `v3context_name` varchar(32),
+ `v3context_engine` varchar(64),
+ `v3security_name` varchar(32),
+ `v3security_engine` varchar(64),
+ PRIMARY KEY (`trap_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+DROP TABLE IF EXISTS varbinds;
+CREATE TABLE IF NOT EXISTS `varbinds` (
+ `trap_id` int(11) unsigned NOT NULL default '0',
+ `oid` varchar(1024) NOT NULL,
+ `type` ENUM('boolean','integer','bit','octet','null','oid','ipaddress','counter','unsigned','timeticks','opaque','unused1','counter64','unused2') NOT NULL,
+ `value` blob NOT NULL,
+ KEY `trap_id` (`trap_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;