snmpa_error(3erl)
π NAME π
snmpa_error β Functions for Reporting SNMP Errors. This is an Erlang module definition, bestie, the snmpa_error(3erl) manual page, and itβs lowkey here to make SNMP error reporting make sense. π«Ά
πΈ DESCRIPTION πΈ
okay so snmpa_error contains two callback functions, and they get called if an error occurs at different times during agent operation. Those callbacks then call the corresponding function in the configured error report module β thatβs the one that implements the actual report functionality. No cap. β¨
The toolkit ships two simple implementation(s): snmpa_error_logger, which is the default, and snmpa_error_io. The default one is giving main character energy, honestly π
.
The error report module is configured using the directive error_report_mod, see configuration parameters.
β¨ EXPORTS β¨
π config_err(Format, Args) -> void()
Types:
Format = string()
Args = list()
This function is called if an error occurs during the configuration phase β for example if a syntax error is found in a configuration file. Thatβs the pre-flight vibe check going wrong π.
Format and Args are as in io:format(Format, Args).
π¦ user_err(Format, Args) -> void()
Types:
Format = string()
Args = list()
This function is called if a user related error occurs at run-time β for example if a user defined instrumentation function returns erroneous. Runtime mess, fr fr π.
Format and Args are as in io:format(Format, Args).
cute footer sign-off: source/version is Ericsson AB + snmp 5.13.5, the page is snmpa_error(3erl), and the footerβs date spot is empty, so no fake date from me, 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