Skip to content

dg-i/go-xymon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-xymon

A Xymon library for receiving Xymon messages and sending check results.

At the moment there's only a reader for the xymond_channel tool. The reader processes all known message types and works with every channel.

package main

import (
	"fmt"

	"github.com/dg-i/go-xymon/channels"
)

type Handler struct{}

func (h *Handler) MessageHandler(msg channels.Message) error {
	fmt.Printf("%+v", msg)
	return nil
}
func (h *Handler) ErrorHandler(err error) { fmt.Printf("%+v", err) }

func main() {
	channelReader := channels.NewReader(&Handler{})
	channelReader.Run()
}

About

Golang library for Xymon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages