nagios

package
v7.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 3 Imported by: 20

Documentation

Overview

Package nagios is used by Traffic Monitor for unknown reasons.

This may be moved internal to Traffic Monitor at some point, so its use is discouraged.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(status Status, msg string)

Exit causes the current running program to exit by calling os.Exit with the given Status as an exit code.

If the passed msg is not an empty string, it will be logged to stdout (NOT stderr, and directly using 'fmt.Printf', which may bypass logging configurations). Trailing newlines are ensured and not duplicated.

Types

type Status

type Status int

A Status is an exit code that can be passed to Exit.

const (
	Ok       Status = 0
	Warning  Status = 1
	Critical Status = 2
)

These are the different values allowed for a Status.

Note that many things consider any non-zero exit code to be indicative of an error causing the program to quit, despite any names seen here.

Jump to

Keyboard shortcuts

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