Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 577 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 577 Bytes

zagent

Zagent is a small/simple library for getting values from a zabbix agent running on a remote machine.

License

Zagent is licensed under the MIT license.

Installation

go get github.com/sfreiberg/zagent

Documentation

GoDoc

Example

package main

import (
	"github.com/sfreiberg/zagent"

	"fmt"
)

func main() {
	agent := zagent.NewAgent("127.0.0.1")

	res, err := agent.Query("agent.ping", 0)
	if err != nil {
		panic(err)
	}

	fmt.Printf("%s\n", res.Data)
}