Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.4% on proxy.golang.org
Top 1.4% dependent packages on proxy.golang.org
Top 1.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/atc0005/go-nagios

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.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/atc0005/go-nagios
Keywords: go, nagios
License: MIT
Latest release: 4 months ago
First release: over 4 years ago
Namespace: github.com/atc0005
Dependent packages: 16
Dependent repositories: 9
Stars: 4 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 15 hours ago

    Loading...
    Readme
    Loading...