No subject


Sun Mar 11 03:57:02 CET 2012


* Added: NotificationSender interface to
  standardize sending notifications. The Mib
  class now has a "notify" method that should
  be used to send traps/notifications. By
  default, it uses a NotificationOriginator
  (which also implements the NotificationSender
  interfaces).
* Added: NotificationType interface as common
  interface for all trap/notification
  implementations.

> 3.3. How do I control trap destinations here ? Should I still use a
> global NotificationOriginator

Yes, but you also can implement your own NotificationOriginator subclass
and instruct Mib class to use it instead of the default.

> with calls to the, say,
> NotificationOriginator.add_v1_trap_destination() method ?

Please use the add_vX_trap_destination() functions only as example: A
second call to this function will either overwrite the previous call or
not add anything (as name and tag are the same).

Regards,
  Jochen





More information about the AGENTPP mailing list