nagios

package
v1.0.0-...-47f3d97 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 8 Imported by: 0

README

Nagios

The nagios data format parses the output of nagios plugins.

Configuration
[[inputs.exec]]
  ## Commands array
  commands = ["/usr/lib/nagios/plugins/check_load -w 5,6,7 -c 7,8,9"]

  ## Data format to consume.
  ## Each data format has its own unique set of configuration options, read
  ## more about them here:
  ##   https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  data_format = "nagios"

Documentation

Index

Constants

View Source
const (
	MaxFloat64 = 1.797693134862315708145274237317043567981e+308 // 2**1023 * (2**53 - 1) / 2**52
	MinFloat64 = 4.940656458412465441765687928682213723651e-324 // 1 / 2**(1023 - 1 + 52)
)

from math

Variables

View Source
var ErrBadThresholdFormat = errors.New("Bad threshold format")

Functions

This section is empty.

Types

type NagiosParser

type NagiosParser struct {
	MetricName  string
	DefaultTags map[string]string
}

func (*NagiosParser) Parse

func (p *NagiosParser) Parse(buf []byte) ([]telegraf.Metric, error)

func (*NagiosParser) ParseLine

func (p *NagiosParser) ParseLine(line string) (telegraf.Metric, error)

func (*NagiosParser) SetDefaultTags

func (p *NagiosParser) SetDefaultTags(tags map[string]string)

Jump to

Keyboard shortcuts

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