GitXplorerGitXplorer
a

go-zabbix

public
74 stars
36 forks
1 issues

Commits

List of commits on branch master.
Unverified
3c6a95ec4fdc345b48c4e0e5f5c87d48d3fc40b5

Merge pull request #5 from tutti-ch/master

aadubkov committed 8 years ago
Unverified
cbd8b1e36bfd8274d88a04b273f61a7356389bd5

a test added

kkomkom committed 8 years ago
Unverified
0b1c5a07d0cd926b3abb6a87bb9bea2a509b3789

error handling added

kkomkom committed 8 years ago
Unverified
60d3deaeedd84ed5d9501ab41056a551fc29bcd4

Merge pull request #4 from blacked/refs#1-refactoring

aadubkov committed 10 years ago
Unverified
2a239bf2dda8a68f4244d3b9b7ee2c0d094650b2

Refactoring zabbix.go

committed 10 years ago
Unverified
a5c216792175f86dd4da18e7659d017243def041

Add README.md

committed 10 years ago

README

The README file for this repository.

go-zabbix

Golang package, implement zabbix sender protocol for send metrics to zabbix.

Example:

package main

import (
    "time"
    . "github.com/blacked/go-zabbix"
)

const (
    defaultHost  = `localhost`
    defaultPort  = 10051
)

func main() {
    var metrics []*Metric
    metrics = append(metrics, NewMetric("localhost", "cpu", "1.22", time.Now().Unix()))
    metrics = append(metrics, NewMetric("localhost", "status", "OK"))

    // Create instance of Packet class
    packet := NewPacket(metrics)

    // Send packet to zabbix
    z := NewSender(defaultHost, defaultPort)
    z.Send(packet)
}