SNMP_NOTIFICATION_MIB(3erl)

πŸ“¦
version 25.3.2.8 Β· 4 versions
, in ubuntu noble

πŸ’… 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's notify.conf and only notify.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