snmpa_notification_filter(3erl)

snmpa_notification_filter3erl

Behaviour module for the snmp agent notification filters.

Overview

This module defines the behaviour of the agent notification filters. A snmpa_notification_filter compliant module must export the following functions:

*

handle_notification/2

The semantics of them and their exact signatures are explained below.

The purpose of notification filters is to allow for modification and/or suppression of a notification.

A misbehaving filter will be removed.

Exports

handle_notification(Notif, Data) -> Reply

Types:

Reply = send | {send, NewNotif} | dont_send
Notif = NewNotif = notification() | trap()
Data = term()

Handle a notification to be sent. The filter can either accept the notification as is, return send, modify the notification, return {send, NewNotif} or suppress the notification, return dont_send.

Data is supplied at filter registration time, see register_notification_filter.

Releases

10 releases since Debian 3.1 (Sarge); the text changed 9 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12

From erlang-manpages 1:25.2.3+dfsg-1+deb12u4 in Debian 12 (Bookworm). Parsed by carta from the page's man source.