Documentation ¶
Index ¶
- func Asn1BER2String(source g.Asn1BER) (res string)
- type Field
- type SNMPAgent
- func (s *SNMPAgent) Collect(_ ilogtail.Collector) error
- func (s *SNMPAgent) Description() string
- func (s *SNMPAgent) GetTranslated() error
- func (s *SNMPAgent) Init(context ilogtail.Context) (int, error)
- func (s *SNMPAgent) Start(collector ilogtail.Collector) error
- func (s *SNMPAgent) Stop() error
- func (s *SNMPAgent) Wrapper(envTarget string) (*g.GoSNMP, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asn1BER2String ¶
Types ¶
type SNMPAgent ¶
type SNMPAgent 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 }
SNMPAgent holds the configuration for a SNMP agent and will finally convert it into *g.GoSNMP agent.
func (*SNMPAgent) Description ¶
func (*SNMPAgent) GetTranslated ¶
GetTranslated translate all oids and fields into fieldContents
Click to show internal directories.
Click to hide internal directories.