install go lang
go install bosun.org/cmd/bosun
nano dev.conf
smtpHost = mail.chibifire.com:25
emailFrom = [email protected]
template cpu {
body = `Alert definition:
Name: {{.Alert.Name}}
Crit: {{.Alert.Crit}}
Tags:{{range $k, $v := .Tags}}
{{$k}}: {{$v}}{{end}}
`
subject = cpu idle at {{.Alert.Vars.q | .E}} on {{.Tags.host}}
}
notification default {
email = [email protected]
next = default
timeout = 1h
}
brew install influxdb
influxdb -config=/usr/local/etc/influxdb.conf
brew install collectd
ln
tell conf to send to localhost
# Uncomment this:
LoadPlugin network
# Uncomment/update this:
<Plugin network>
Server "127.0.0.1" "8096"
</Plugin>