zabbix

package
v0.0.0-...-767a547 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZABBIXKEYS = `` /* 4365-byte string literal not displayed */
View Source
var ZKEYS map[string]interface{}

Functions

func GetAnItemFromZabbix

func GetAnItemFromZabbix(host string, key string, timeout int64) (res interface{}, err error)

func GetPayloadSize

func GetPayloadSize(header []byte) (uint32, bool)

func MakeData

func MakeData(req string, data string, host string, compress bool) []byte

func MakePacket

func MakePacket(data string, isCompress bool) []byte

func MakeReq

func MakeReq(resp string, host string, compress bool) []byte

func MakeResp

func MakeResp(resp string, version string, compress bool) []byte

func OneWay

func OneWay(dst string, zpkt []byte, timeout uint64) []byte

func Parse

func Parse(data []byte) *gabs.Container

func ParseKey

func ParseKey(key string) (name string, args map[string]string)

func ParsePacket

func ParsePacket(header, data []byte) *gabs.Container

func ParseParamsInZabbixKey

func ParseParamsInZabbixKey(key string, params string) (args map[string]string, err error)

func ParseRaw

func ParseRaw(data []byte) []byte

func ThreeWay

func ThreeWay(dst string, zpkt []byte, zconfirmation []byte, timeout uint64) *gabs.Container

func TwoWay

func TwoWay(dst string, zpkt []byte, timeout uint64) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL