Documentation
¶
Index ¶
- func Asn1BER2String(source g.Asn1BER) (res string)
- type Agent
- func (s *Agent) Collect(_ ilogtail.Collector) error
- func (s *Agent) Description() string
- func (s *Agent) GetTranslated() error
- func (s *Agent) Init(context ilogtail.Context) (int, error)
- func (s *Agent) Start(collector ilogtail.Collector) error
- func (s *Agent) Stop() error
- func (s *Agent) Wrapper(envTarget string) (*g.GoSNMP, error)
- type Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asn1BER2String ¶
Types ¶
type Agent ¶ added in v1.0.29
type Agent struct {
// Targets sets list of status target device ip
Targets []string
// Port sets local agent address
Port string
// Transport sets connection type TCP/UDP
Transport string
// Community sets authorize community for snmp v2
Community string
// Version sets SNMP version
Version int
// MaxRepetitions sets the GETBULK max-repetitions used by BulkWalk*
MaxRepetitions uint32
// Timeout is the timeout for one SNMP request/response.
Timeout int
// Retries sets the number of retries to attempt
Retries int
// ExponentialTimeout sets whether Double timeout in each retry
ExponentialTimeout bool
// Oids give the Object Identifier list for agent to collect
Oids []string
// Fields give the untranslated oids for agent to collect
Fields []string
// Tables give the table list for agent to collect
Tables []string
MaxTargetsLength int
MaxOidsLength int
MaxFieldsLength int
MaxTablesLength int
MaxSearchLength int
// Authentication information for SNMP v3
UserName string
AuthoritativeEngineID string
AuthenticationProtocol string
AuthenticationPassphrase string
PrivacyProtocol string
PrivacyPassphrase string
// contains filtered or unexported fields
}
Agent holds the configuration for a SNMP agent and will finally convert it into *g.GoSNMP agent.
func (*Agent) Description ¶ added in v1.0.29
func (*Agent) GetTranslated ¶ added in v1.0.29
GetTranslated translate all oids and fields into fieldContents
Click to show internal directories.
Click to hide internal directories.