...
- OID of the objects
- The origin of the data:
- audit : data retrieved from the audit message
- env : data retrieved from an environment variable
- static : data entered statically in the configuration
- The value of data
- The destination in trap message
Configuration :
{
"link_audit_trap": {
"description":"Correspondence between audit and trap",
"type":"json",
"default":"",
"order":"1",
"displayName":"Link audit trap"
}
}
The content of the config.json file will be the default value of the link_audit_trap parameter.
Example for an audit :
{ "stateLink " : {
"oid" : "1.3.6.1.4.1.39059.1.1.1.1",
"1" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.1",
"dest": "nameGateway",
"origin" : "env",
"value":"hostname"
}
"2" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.2",
"dest": "nameService",
"origin" : "audit",
"value":"detail.nameService"
},
"3" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.3",
"dest": "nameEvent",
"origin" : "audit",
"value":"source"
},
"4" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.4",
"dest": "libelleVariable",
"origin" : "audit",
"value":"detail.nameLink"
},
"5" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.5",
"dest": "valueVariable",
"origin" : "audit",
"value":"detail.valueLink"
},
"6" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.6",
"dest": "severity",
"origin" : "audit",
"value":"severity"
},
"7" : {
"oid" :"1.3.6.1.4.1.39059.1.1.1.1.7",
"dest": "date",
"origin" : "audit",
"value":"timestamp"
}
}
}
The MIB to load on the SNMP server is PMC-MIB.txt.