Documentation
¶
Index ¶
- func Errorf(err error, msg string, format ...interface{}) error
- func NewReader(meta *reader.Meta, c conf.MapConf) (reader.Reader, error)
- type Field
- type NestedError
- type RTable
- type RTableRow
- type Reader
- func (r *Reader) Close() error
- func (r *Reader) Gather() error
- func (r *Reader) Name() string
- func (r *Reader) ReadData() (Data, int64, error)
- func (r *Reader) ReadLine() (string, error)
- func (r *Reader) SetMode(mode string, v interface{}) error
- func (r *Reader) Source() string
- func (r *Reader) Start() error
- func (r *Reader) StoreData(datas []Data) (err error)
- func (r *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
// contains filtered or unexported fields
}
Reader holds the configuration for the plugin.
Click to show internal directories.
Click to hide internal directories.