Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NameToOid = make(map[string]string)
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
Name string
// OID (could be numbers or name)
Oid string
// Unit
Unit string
// SNMP getbulk max repetition
MaxRepetition uint8 `toml:"max_repetition"`
// SNMP Instance (default 0)
// (only used with GET request and if
// OID is a name from snmptranslate file)
Instance string
// contains filtered or unexported fields
}
type Host ¶
type Host struct {
Address string
Community string
// SNMP version. Default 2
Version int
// SNMP timeout, in seconds. 0 means no timeout
Timeout float64
// SNMP retries
Retries int
// Data to collect (list of Data names)
Collect []string
// easy get oids
GetOids []string
// contains filtered or unexported fields
}
func (*Host) HandleResponse ¶
func (h *Host) HandleResponse(oids map[string]Data, result *gosnmp.SnmpPacket, acc inputs.Accumulator) (string, error)
type Snmp ¶
Snmp is a snmp plugin
func (*Snmp) Description ¶
Description returns description of Zookeeper plugin
func (*Snmp) SampleConfig ¶
SampleConfig returns sample configuration message
Click to show internal directories.
Click to hide internal directories.