go_monplug_utils

package module
v0.0.0-...-37501b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCheck

func ExecuteCheck(
	onTerminal func() (output string),
	check func() (output string, perfdata PerfdataCollection, errors map[string]error),
) (exit int)

Types

type OptionalNumber

type OptionalNumber struct {
	IsSet bool
	Value float64
}

func (*OptionalNumber) String

func (self *OptionalNumber) String() string

type OptionalThreshold

type OptionalThreshold struct {
	IsSet, Inverted bool
	Start, End      float64
}

func (*OptionalThreshold) Set

func (self *OptionalThreshold) Set(s string) error

func (*OptionalThreshold) String

func (self *OptionalThreshold) String() string

type Perfdata

type Perfdata struct {
	Label, UOM string
	Value      float64
	Warn, Crit OptionalThreshold
	Min, Max   OptionalNumber
}

func (*Perfdata) GetStatus

func (self *Perfdata) GetStatus() PerfdataStatus

func (*Perfdata) String

func (self *Perfdata) String() string

type PerfdataCollection

type PerfdataCollection []Perfdata

func (PerfdataCollection) String

func (self PerfdataCollection) String() string

type PerfdataStatus

type PerfdataStatus uint8
const Critical PerfdataStatus = 2
const Ok PerfdataStatus = 0
const Warning PerfdataStatus = 1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL