Documentation
¶
Index ¶
- func Errorf(err error, msg string, format ...interface{}) error
- func NewReader(meta *reader.Meta, c conf.MapConf) (s reader.Reader, err error)
- type Field
- type NestedError
- type RTable
- type RTableRow
- type Reader
- func (s *Reader) Close() error
- func (s *Reader) Gather() (err error)
- func (s *Reader) Name() string
- func (s *Reader) ReadLine() (line string, err error)
- func (s *Reader) SetMode(mode string, v interface{}) error
- func (s *Reader) Source() string
- func (s *Reader) Start() error
- func (s *Reader) StoreData(data []map[string]interface{}) (err error)
- func (s *Reader) SyncMeta()
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NestedError ¶
func (NestedError) Error ¶
func (ne NestedError) Error() string
type Reader ¶
type Reader struct {
SnmpName string
Agents []string // agent address [ip:port]
Timeout time.Duration // 等待回复的时间
Interval time.Duration // 收集频率
Retries int
Version uint8 // 1, 2, 3
Community string // version 1&2 的参数
MaxRepetitions uint8 // version 2&3 的参数
ContextName string // version 3 参数
SecLevel string //"noAuthNoPriv", "authNoPriv", "authPriv"
SecName string
AuthProtocol string // "MD5", "SHA", "", 默认: ""
AuthPassword string
PrivProtocol string // "DES", "AES", "", 默认: ""
PrivPassword string
EngineID string
EngineBoots uint32
EngineTime uint32
Tables []Table
Fields []Field
ConnectionCache []snmpConnection
Meta *reader.Meta
Status int32
StopChan chan struct{}
DataChan chan interface{}
}
Reader holds the configuration for the plugin.
Click to show internal directories.
Click to hide internal directories.