Commit e74e3751 authored by nimrod's avatar nimrod
Browse files

Nagios package.

For now just the return codes for plugins.
parent 27ae1e18
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
package main

import (
	"git.shore.co.il/shore/mnpw/pkg/nagios"
	"os"
)

pkg/nagios/nagios.go

0 → 100644
+12 −0
Original line number Diff line number Diff line
package nagios

// Although exit codes can't be a negative, int is used to match
// ExitCode in *os.ProcessState.
type ReturnCode int

const (
	OK       ReturnCode = 0
	WARNING             = 1
	CRITICAL            = 2
	UNKNOWN             = 3
)