check

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: ISC Imports: 4 Imported by: 4

README

monitoringplugin

Library for building Nagios/Icinga/... style plugins written in go

First release.

Supported check methods (activeWriter):

  • Active-Check

Roadmap:

  • Passive-Check writer (commandfile)
  • Icinga-API writer

To get an idea on how it can be used, have a look at activecheck.go in the cmd directory.

Feedback, testing, using and contribution welcome.

Stay tuned

Documentation

Index

Constants

View Source
const VERSION = "v0.1.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Status s.Status
	// contains filtered or unexported fields
}

func New

func New() Check

func (*Check) Message

func (c *Check) Message(messageLine string)

Adds a message line to the result

func (*Check) Perfdata

func (c *Check) Perfdata(datapoint *p.PerformanceData)

Adds a performance datapoint

func (*Check) String

func (c *Check) String() string

String representation of Result

Directories

Path Synopsis
cmd
writers

Jump to

Keyboard shortcuts

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