Nms testEvent: Difference between revisions

From I Will Fear No Evil
Jump to navigation Jump to search
(Created page with "=== Event Replay === Notes on the replay of an event that was generated. Better support in UI to follow mapping paths. Right now replay is specific to snmptrap. This is going to be the most common use case, however right now the TFE is doing direct DB inserts. This needs to be API calls only so we have ONE path for mapping validation, etc. ==== flow ==== snmptrap >> snmptrap receiver >> PHP controller >> mapping search by raw OID >> translate >> PreTransform >> inse...")
 
Line 5: Line 5:


==== flow ====
==== flow ====
snmptrap >> snmptrap receiver >> PHP controller >> mapping search by raw OID >> translate >> PreTransform >> insert >> PostTransform
snmptrap >> snmptrap receiver >> PHP controller >> mapping search by raw OID >> translate >> PreTransform >> insert >> PostTransform >> update


Inside PHP controller todo:
Inside PHP controller todo:

Revision as of 10:49, 8 June 2023

Event Replay

Notes on the replay of an event that was generated.

Better support in UI to follow mapping paths. Right now replay is specific to snmptrap. This is going to be the most common use case, however right now the TFE is doing direct DB inserts. This needs to be API calls only so we have ONE path for mapping validation, etc.

flow

snmptrap >> snmptrap receiver >> PHP controller >> mapping search by raw OID >> translate >> PreTransform >> insert >> PostTransform >> update

Inside PHP controller todo:

  1. trap received
  2. apiCall for hostExist
  3. apiCall for Mapping
  4. run Pre translation
  5. apiCall create event
  6. run Post translation
  7. apiCall update event
  8. complete

the snmptrap.php is going to have to be rewritten to do this work via API calls. Nothing except the API should be talking to the database.