Documentation
¶
Overview ¶
Package tools provides various functions for working with the monitors and alerts in the monitoring client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDir string = "/etc/monitor/"
Functions ¶
func Logger ¶
Function Logger takes monitor name and message as strings and writes them to a logfile.
func RaiseAlert ¶
RaiseAlert formats the alertString into an Gob encoded message and passes it to the monitoring server
Types ¶
type ConfigLine ¶
type ConfigLine struct {
Fields []string
}
func ReadConfig ¶
func ReadConfig(mn string) []ConfigLine
Function ReadConfig takes the monitor name and uses it to form a file name. It reads this file and splits the lines into fields and returns them in a []string
Click to show internal directories.
Click to hide internal directories.