github.com/atc0005/go-nagios (go): Package nagios provides common types, constants, package-level variables, performance data and methods for use with Nagios plugins.  This package provides common functionality for use by plugins used by Nagios (and similar) monitoring systems. The goal is to reduce code duplication for monitoring plugins written in the Go programming language.  See our GitHub repo (https://github.com/atc0005/go-nagios) for the latest code, to file an issue or submit improvements for review and potential inclusion into the project.  ExampleBasicPluginStructure demonstrates the basic structure for a monitoring plugin that uses this package.   ExampleEmitPerformanceData demonstrates providing multiple plugin performance data values explicitly.  NOTE: While this example illustrates providing a time metric, this metric is provided for you if using the nagios.NewPlugin constructor. If specifying this value ourselves, *our* value takes precedence and the default value is ignored.   ExampleEmitPerformanceDataViaDeferredAnonymousFunc demonstrates emitting plugin performance data provided via a deferred anonymous function.  NOTE: While this example illustrates providing a time metric, this metric is provided for you if using the nagios.NewPlugin constructor. If specifying this value ourselves, *our* value takes precedence and the default value is ignored.   ExampleHideSections demonstrates explicitly hiding or omitting the optional section headers for thresholds and errors.   ExampleOverrideSectionHeaders demonstrates overriding the default text with values that better fit our use case.   ExampleUseABrandingCallback demonstrates using a branding callback to emit custom branding details at plugin exit. This can be useful to brand plugin output so that it is easier to tell which plugin generated it.   Example_usingOnlyTheProvidedConstants is a simple example that illustrates using only the provided constants from this package. After you've imported this library, reference the exported data types as you would from any other package.  Example_usingOnlyTheProvidedExitCodeConstants is a simple example that illustrates using only the provided exit code constants from this package. After you've imported this library, reference the exported data types as you would from any other package.
Keywords: go|nagios