Nms testEvent

From I Will Fear No Evil
Jump to navigation Jump to search

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.