Author: Eoin Joy
For each trap rule, there are certain principles which they must follow for best practices and future maintenance purposes.
The Trap Rule Checklist aims to ensure that these principles are upheld each time a trap rule is worked on.
The Trap Rule Checklist is similar to the Report Checklist.
The Trap Rule Checklist however has not yet been formalised as the Report Checklist has.
The Trap Rule Checklist template can be found here: Google Docs Link.
The checklist has been written from the perspective of new rule creation, but the principles also apply to edits of existing rules.
Author: Colm Carew
Author: Yanjun Wang
As the Ticket Summary and some fields of SNMP Trap From will be used for parsing information in Ticketer Groovlet and matching bouncing Tickets, it's important to have them follow the same naming convention.
Ticket Summary:
SNMP Trap Form - ne_name:
Author: Andrey Shevyakov
Release: REL-3.5
Methods:
HashMap < String, String > ticketValues = new HashMap < String, String > ()
ticketValues.put("WORKFLOW", workflowName)
ticketValues.put("MARKET", ne.clusterName)
ticketValues.put("STATUS", "Alarm Received")
ticketValues.put("CREATOR", "monitor")
ticketValues.put("SUMMARY", summaryString)
ticketValues.put("VISIBILITY", ne.clusterName)
ticketValues.put("PRIORITY", "5")
HashMap < String, String > formValues = new HashMap < String, String > ()
formValues.put("FORM_NAME_PARAM", "SNMP Trap")
if (isHub) formValues.put("ne_name", ne.name)
if (!isHub) formValues.put("ne_name", parentNe.name + " - " + ne.name)
formValues.put("alarm_id", gtsw.getDomain().id + "")
formValues.put("trap_name", gtsw.getDomain().trapName)
formValues.put("trap_severity", gtsw.getDomain().alarmStatus)
formValues.put("trap_text", gtsw.getDomain().summary)
formValues.put("source", java.net.InetAddress.localHost.hostName.split("\\.")[0] ?: "")
formValues.put("context", gtsw.domain.alarmIdentifier)
formValues.put("received_date", trap.date)
formValues.put("received_time", new java.sql.Time(trap.date.time))