aboutsummaryrefslogtreecommitdiffstats
path: root/data-formats/snmptrap_output_format.json
diff options
context:
space:
mode:
Diffstat (limited to 'data-formats/snmptrap_output_format.json')
-rw-r--r--data-formats/snmptrap_output_format.json167
1 files changed, 167 insertions, 0 deletions
diff --git a/data-formats/snmptrap_output_format.json b/data-formats/snmptrap_output_format.json
new file mode 100644
index 0000000..fbbe4ae
--- /dev/null
+++ b/data-formats/snmptrap_output_format.json
@@ -0,0 +1,167 @@
+{
+ "self": {
+ "name": "snmptrap_output",
+ "version": "1.3.0",
+ "description": "The output format for snmptrap, which is a SNMP trap that is loaded into a JSON structure"
+ },
+ "dataformatversion": "1.3.0",
+ "jsonschema": {
+ "anyOf": [{
+ "name": "SNMP Alert v1_0",
+ "version": "1.3.0",
+ "additionalProperties": false,
+ "properties": {
+ "cambria.partition": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ },
+ "agent address": {
+ "type": "string"
+ },
+ "agent name": {
+ "type": "string"
+ },
+ "time received": {
+ "type": "string"
+ },
+ "epoch_serno": {
+ "type": "string"
+ },
+ "protocol version": {
+ "type": "string",
+ "enum": [ "v1", "v2c", "unsupported(v2u)" ]
+ },
+ "community len": {
+ "type": "string"
+ },
+ "community": {
+ "type": "string"
+ },
+ "trap category": {
+ "type": "string"
+ },
+ "sysUptime": {
+ "type": "string"
+ },
+ "notify OID len": {
+ "type": "string"
+ },
+ "notify OID": {
+ "type": "string"
+ },
+ "varbinds": {
+ "type": "array",
+ "items": {
+ "$ref": "#varbind"
+ }
+ }
+ },
+ "required": ["cambria.partition", "uuid", "agent address", "agent name", "time received", "epoch_serno", "protocol version", "community len", "community", "trap category", "notify OID len", "notify OID", "varbinds"]
+ },
+ {"name": "SNMP Alert v3",
+ "version": "1.3.0",
+ "additionalProperties": false,
+ "properties": {
+ "cambria.partition": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ },
+ "agent address": {
+ "type": "string"
+ },
+ "agent name": {
+ "type": "string"
+ },
+ "time received": {
+ "type": "string"
+ },
+ "epoch_serno": {
+ "type": "string"
+ },
+ "protocol version": {
+ "type": "string",
+ "enum": [ "v3" ]
+ },
+ "community len": {
+ "type": "string"
+ },
+ "community": {
+ "type": "string"
+ },
+ "trap category": {
+ "type": "string"
+ },
+ "sysUptime": {
+ "type": "string"
+ },
+ "notify OID len": {
+ "type": "string"
+ },
+ "notify OID": {
+ "type": "string"
+ },
+ "msg id": {
+ "type": "string"
+ },
+ "security level": {
+ "type": "string",
+ "enum": [ "noAuthNoPriv", "authNoPriv", "authPriv" ]
+ },
+ "context name": {
+ "type": "string"
+ },
+ "security name": {
+ "type": "string"
+ },
+ "security engine": {
+ "type": "string"
+ },
+ "varbinds": {
+ "type": "array",
+ "items": {
+ "$ref": "#varbind"
+ }
+ }
+ },
+ "required": ["cambria.partition", "uuid", "agent address", "agent name", "time received", "epoch_serno", "protocol version", "community len", "community", "trap category", "notify OID len", "notify OID", "msg id", "security level", "context name", "security name", "security engine", "varbinds"]
+ }
+ ],
+ "definitions" : {
+ "varbind" : {
+ "id" : "#varbind",
+ "additionalProperties": false,
+ "properties" : {
+ "varbind_oid": {
+ "type": "string"
+ },
+ "varbind_type": {
+ "type": "string",
+ "enum": [ "boolean",
+ "integer",
+ "bit",
+ "octet",
+ "null",
+ "oid",
+ "ipaddress",
+ "counter",
+ "unsigned",
+ "timeticks",
+ "opaque",
+ "unused1",
+ "counter64",
+ "unused2"
+ ]
+ },
+ "varbind_value": {
+ "type": "string"
+ }
+ },
+ "required": ["varbind_oid", "varbind_type", "varbind_value"]
+ }
+ }
+ }
+}