nagios

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK       = 0
	Warning  = 1
	Critical = 2
	Unknown  = 3
)

Variables

This section is empty.

Functions

func CatchPanic

func CatchPanic()

func Exit

func Exit(rc int, output string, args ...interface{})

func ExitError

func ExitError(err error)

Types

type Overall

type Overall struct {
	OKs       int
	Warnings  int
	Criticals int
	Unknowns  int
	Summary   string
	Outputs   []string
}

func (*Overall) Add

func (o *Overall) Add(status int, output string)

func (*Overall) GetOutput

func (o *Overall) GetOutput() string

func (*Overall) GetStatus

func (o *Overall) GetStatus() int

func (*Overall) GetSummary

func (o *Overall) GetSummary() string

Jump to

Keyboard shortcuts

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