Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NagiosStatus ¶
type NagiosStatus struct { Message string Value NagiosStatusVal }
A type representing a Nagios check status. The Value is a the exit code expected for the check and the Message is the specific output string.
func (*NagiosStatus) Aggregate ¶
func (status *NagiosStatus) Aggregate(otherStatuses []*NagiosStatus)
Take a bunch of NagiosStatus pointers and find the highest value, then combine all the messages. Things win in the order of highest to lowest.
type NagiosStatusVal ¶
type NagiosStatusVal int
const ( NAGIOS_OK NagiosStatusVal = iota NAGIOS_WARNING NAGIOS_CRITICAL NAGIOS_UNKNOWN )
The values with which a Nagios check can exit
Click to show internal directories.
Click to hide internal directories.