use of org.opennms.netmgt.model.events.EventBuilder in project opennms by OpenNMS.
the class ImpactProgagationRulesIT method createVpnPwDownEvent.
private Event createVpnPwDownEvent(int dbId, int nodeid, String ipaddr, String pwtype, String pwname) {
Event event = new EventBuilder("uei.opennms.org/vendor/Juniper/traps/jnxVpnPwDown", "Test").setNodeid(nodeid).setInterface(addr(ipaddr)).addParam("jnxVpnPwVpnType", pwtype).addParam("jnxVpnPwVpnName", pwname).getEvent();
event.setDbid(dbId);
return event;
}
use of org.opennms.netmgt.model.events.EventBuilder in project opennms by OpenNMS.
the class EventMappingRulesIT method createVpnIfDownEvent.
private Event createVpnIfDownEvent(int dbId, int nodeid, String ipaddr, String pwtype, String pwname) {
Event event = new EventBuilder("uei.opennms.org/vendor/Juniper/traps/jnxVpnIfDown", "Test").setNodeid(nodeid).setInterface(addr(ipaddr)).addParam("1.2.3.1", pwtype).addParam("1.2.3.2", pwname).getEvent();
event.setDbid(dbId);
return event;
}
use of org.opennms.netmgt.model.events.EventBuilder in project opennms by OpenNMS.
the class EventMappingRulesIT method createNodeDownEvent.
private Event createNodeDownEvent(int dbId, int nodeid) {
Event event = new EventBuilder("uei.opennms.org/nodes/nodeDown", "Test").setNodeid(nodeid).getEvent();
event.setDbid(dbId);
return event;
}
use of org.opennms.netmgt.model.events.EventBuilder in project opennms by OpenNMS.
the class EventMappingRulesIT method createMplsLspPathDownEvent.
// dependencies must be loaded when needed by propagation rules
// loaded deps needed by multiple events should not load more than once
// deps no longer needed by one event should remain loaded if need by others
// deps no longer needed by any event should be unloaded
// propagate outages to 'dependsOn' parents
// propagate outages to 'dependsOnAny' parents when ALL children are down
// resolve outages in 'dependsOn' parents when dependsOn children are resolved
// resolve outage in 'dependsOnAny' parents when ANY child is resolved
// map various events to outages and resolutions
// ignore duplicate cause events
// ignore duplicate resolution events
private Event createMplsLspPathDownEvent(int dbId, int nodeid, String ipaddr, String lspname) {
Event event = new EventBuilder("uei.opennms.org/vendor/Juniper/traps/mplsLspPathDown", "Test").setNodeid(nodeid).setInterface(addr(ipaddr)).addParam("1.2.3.1", lspname).getEvent();
event.setDbid(dbId);
return event;
}
use of org.opennms.netmgt.model.events.EventBuilder in project opennms by OpenNMS.
the class EventMappingRulesIT method createVpnIfUpEvent.
private Event createVpnIfUpEvent(int dbId, int nodeid, String ipaddr, String pwtype, String pwname) {
Event event = new EventBuilder("uei.opennms.org/vendor/Juniper/traps/jnxVpnIfUp", "Test").setNodeid(nodeid).setInterface(addr(ipaddr)).addParam("1.2.3.1", pwtype).addParam("1.2.3.2", pwname).getEvent();
event.setDbid(dbId);
return event;
}
Aggregations