Backwards compatibility with existing checks should be provided by still supporting Warn.
For background, I am using a statement like this getattr(nagiosplugin.state, nagios_state_string, nagiosplugin.state.Unknown) to use an already existing Nagios state (nagios_state_string) in a custom Context class.
Hi,
I just stumbled across what I think is an inconsistency. Those states exist currently:
I think this module should rather support
Warning
instead ofWarn
to comply with the exact wording used in the plugin API spec: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/pluginapi.htmlBackwards compatibility with existing checks should be provided by still supporting
Warn
.For background, I am using a statement like this
getattr(nagiosplugin.state, nagios_state_string, nagiosplugin.state.Unknown)
to use an already existing Nagios state (nagios_state_string
) in a custom Context class.What do you think?