Documentation ¶
Index ¶
Constants ¶
View Source
const ( //ModeSingle option in mode of metric ModeSingle = "single" //ModeWalk option in mode of metric ModeWalk = "walk" //ModeTable option in mode of metric ModeTable = "table" //nsSourceSNMP option in source of namespace element configuration NsSourceSNMP = "snmp" //nsSourceString option in source of namespace element configuration NsSourceString = "string" //nsSourceIndex option in source of namespace element configuration NsSourceIndex = "index" )
Variables ¶
View Source
var ( //AgentConfigParameters slice of agent configuration parameters SnmpAgentConfigParameters = []string{agentName, agentAddress, agentSnmpVersion, agentCommunity, agentNetwork, agentUserName, agentSecurityLevel, agentAuthPassword, agentAuthProtocol, agentPrivPassword, agentPrivProtocol, agentSecurityEngineId, agentContextEngineID, agentContextName, agentRetries, agentTimeout} )
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics []Metric
func GetMetricsConfig ¶
GetMetricsConfig reads and validates configuration of metrics
type SnmpAgent ¶
type SnmpAgent struct { Name string `mapstructure:"snmp_agent_name"` SnmpVersion string `mapstructure:"snmp_version"` Address string `mapstructure:"snmp_agent_address"` Community string `mapstructure:"community"` Network string `mapstructure:"network"` UserName string `mapstructure:"user_name"` SecurityLevel string `mapstructure:"security_level"` AuthPassword string `mapstructure:"auth_password"` AuthProtocol string `mapstructure:"auth_protocol"` PrivPassword string `mapstructure:"priv_password"` PrivProtocol string `mapstructure:"priv_protocol"` SecurityEngineId string `mapstructure:"security_engine_id"` ContextEngineId string `mapstructure:"context_engine_id"` ContextName string `mapstructure:"context_name"` Retries uint `mapstructure:"retries"` Timeout int `mapstructure:"timeout"` }
Click to show internal directories.
Click to hide internal directories.