SNMP_NOTIFICATION_MIB(3erl)
π snmp_notification_mib β the Erlang module page (3erl, bestie)
okay so this is the manual page for snmp_notification_mib, straight out of the Erlang Module Definition section of the snmp manual, section 3erl. yes the title and the manual name are literally the same thing twice, that's just how manpages are, we don't question it π
β¨ NAME β¨
snmp_notification_mib β Instrumentation Functions for SNMP-NOTIFICATION-MIB
like, that's the whole name section. short and iconic. π
πΈ DESCRIPTION πΈ
The module snmp_notification_mib implements the instrumentation functions for the SNMP-NOTIFICATION-MIB, and functions for configuring the database.
The configuration files are described in the SNMP User's Manual.
that's it, that's the description. she's brief but she's booked and busy π
π¦ EXPORTS π¦
β configure(ConfDir) -> void()
Types:
ConfDir = string()
This function is called from the supervisor at system start-up. main character energy fr.
Inserts all data in the configuration files into the database and destroys all old rows with StorageType volatile. The rows created from the configuration file will have StorageType nonVolatile. so like, out with the old volatile ones, in with the shiny nonVolatile ones β¨
If an error is found in the configuration file, it is reported using the function config_err/2 of the error report module, and the function fails with reason configuration_error. π yep, it just gives up with that reason.
ConfDir is a string which points to the directory where the configuration files are found.
The configuration file read is: notify.conf.
lowkey important: it'snotify.confand onlynotify.conf, don't come for me with other filenames π
π reconfigure(ConfDir) -> void()
Types:
ConfDir = string()
Inserts all data in the configuration files into the database and destroys all old data, including the rows with StorageType nonVolatile. yes bestie, including. she is not playing around π
The rows created from the configuration file will have StorageType nonVolatile.
Thus, the data in the SNMP-NOTIFICATION-MIB, after this function has been called, is from the configuration files. like, fully from the config files, no leftovers, clean slate vibes π
If an error is found in the configuration file, it is reported using the function config_err/2 of the error report module, and the function fails with reason configuration_error.
ConfDir is a string which points to the directory where the configuration files are found.
The configuration file read is: notify.conf.
π₯ add_notify(Name, Tag, Type) -> Ret
Types:
Name = string()
Tag = string()
Type = trap | inform
Ret = {ok, Key} | {error, Reason}
Key = term()
Reason = term()
Adds a notify definition to the agent config. Equivalent to one line in the notify.conf file. one line!! that's the whole vibe, it's giving shortcut π«Ά
π delete_notify(Key) -> Ret
Types:
Key = term()
Ret = ok | {error, Reason}
Reason = term()
Delete a notify definition from the agent config. bye bye notify definition, you will not be missed (jk we love you) π
π sign-off π
this whole page is brought to you by Ericsson AB, shipped with snmp 5.13.5, and yes she's filed under snmp_notification_mib(3erl) because consistency is a love language. slay, periodt, go configure your notifications bestie ππ¦β¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms