zabbix

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decoder = &decoder.StreamDecoder{
	Type:        types.Type_NC_Zabbix,
	Name:        serviceZabbix,
	Description: "Zabbix is a network monitoring protocol for collecting metrics and monitoring infrastructure health",
	PostInit: func(d *decoder.StreamDecoder) error {
		var err error
		zabbixLog, _, err = logging.InitZapLogger(
			decoderconfig.Instance.Out,
			"zabbix",
			decoderconfig.Instance.Debug,
		)
		return err
	},
	CanDecode: func(client, server []byte) bool {
		if len(client) >= 5 && bytes.Equal(client[:5], zabbixMagic) {
			return true
		}
		if len(server) >= 5 && bytes.Equal(server[:5], zabbixMagic) {
			return true
		}
		return false
	},
	DeInit: func(sd *decoder.StreamDecoder) error {
		return zabbixLog.Sync()
	},
	Factory: &zabbixReader{},
	Typ:     core.TCP,
}

Decoder for protocol analysis and writing audit records to disk.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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