Categorygithub.com/riton/nagiosplugin/v2
modulepackage
2.0.0
Repository: https://github.com/riton/nagiosplugin.git
Documentation: pkg.go.dev

# Functions

Exit is a standalone exit function for simple checks without multiple results or perfdata.
NewCheck returns an empty Check object.
NewCheckWithOptions returns an empty Check object with caller-specified behavioural modifications.
NewDefaultStatusPolicy returns a status policy that assigns relative severity in accordance with conventional Nagios plugin return codes.
No description provided by the author
NewOUWCStatusPolicy returns a status policy similar to that returned by NewDefaultStatusPolicy with one difference: the UNKNOWN check status is demoted in severity such that any WARNING or CRITICAL check status will take priority.
NewPerfDatum returns a PerfDatum object suitable to use in a check result.
NewSimpleRangeFromFloat returns a new range object based on the two float values that were supplied.
NewStatusPolicy returns a status policy that assigns relative severity in accordance with a user-configurable prioritised slice.
No description provided by the author
ParseRange returns a new range object and nil if the given range definition was valid, or nil and an error if it was invalid.
RenderPerfdata accepts a slice of PerfDatum objects and returns their concatenated string representations in a form suitable to append to the first line of check output.

# Constants

https://nagios-plugins.org/doc/guidelines.html#AEN78.
https://nagios-plugins.org/doc/guidelines.html#AEN78.
value may be a literal "U" instead this would indicate that the actual value couldn't be determined.
https://nagios-plugins.org/doc/guidelines.html#AEN78.
Version is the package version.
https://nagios-plugins.org/doc/guidelines.html#AEN78.

# Structs

Check represents the state of a Nagios check.
CheckOptions contains knobs that modify default Check behaviour.
PerfDatum represents one metric to be reported as part of a check result.
Range is a combination of a lower boundary, an upper boundary and a flag for inverted (@) range semantics.
Result encapsulates a machine-readable result code and a human-readable description of a problem.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
Status represents a plugin exit status.