icinga

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Icinga

type Icinga struct {
	ExitCode         int
	ExitWording      string
	PluginOutput     string
	LongPluginOutput string
	PerfData         string

	Warning  Threshold
	Critical Threshold
	// contains filtered or unexported fields
}

func NewIcinga

func NewIcinga(output, warning, critical string) *Icinga

func (*Icinga) AddPerfData

func (i *Icinga) AddPerfData(value float64, data string)

func (*Icinga) Evaluate

func (i *Icinga) Evaluate(value float64, problemMessagem, outputOK, outputWarning, outputCritical string)

func (*Icinga) GenerateOutput

func (i *Icinga) GenerateOutput(perfData bool)

func (*Icinga) GetStatus

func (i *Icinga) GetStatus() int

func (*Icinga) MultiEvaluate

func (i *Icinga) MultiEvaluate(value float64, problemMessage, outputOK, outputWarning, outputCritical string)

func (*Icinga) ParseToPerfData

func (i *Icinga) ParseToPerfData(data gjson.Result)

type Threshold

type Threshold struct {
	Raw    string
	Up     float64
	Down   float64
	Negate bool
}

Jump to

Keyboard shortcuts

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