Added munin logging support.

This commit is contained in:
Hendrik van Wyk
2015-02-08 16:10:34 +02:00
parent 29d6e21b57
commit 2b63a81cec
5 changed files with 229 additions and 0 deletions

View File

@@ -46,5 +46,7 @@ func main() {
source := datasource.NewJSONSource(*url)
gui := webgui.NewWebGui(source, 10*time.Second, 100)
http.Handle("/", gui)
http.Handle("/munin", http.HandlerFunc(gui.ServeMuninHTTP))
http.Handle("/muninconfig", http.HandlerFunc(gui.ServeMuninConfigHTTP))
log.Fatal(http.ListenAndServe(":8080", nil))
}