Documentation ¶
Index ¶
- func CalcInheritStrategies(allTpls map[int]*model.Template, tids []int, ...) []model.Strategy
- func DigestBuiltinMetrics(items []*model.BuiltinMetric) string
- func Start()
- func Tpl2Strategies(strategies map[int]*model.Strategy) map[int][]*model.Strategy
- type Agent
- func (t *Agent) BuiltinMetrics(args *model.AgentHeartbeatRequest, reply *model.BuiltinMetricResponse) error
- func (t *Agent) MinePlugins(args model.AgentHeartbeatRequest, reply *model.AgentPluginsResponse) error
- func (t *Agent) ReportStatus(args *model.AgentReportRequest, reply *model.SimpleRpcResponse) error
- func (t *Agent) TrustableIps(args *model.NullRpcRequest, ips *string) error
- type Hbs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcInheritStrategies ¶
func DigestBuiltinMetrics ¶
func DigestBuiltinMetrics(items []*model.BuiltinMetric) string
Types ¶
type Agent ¶
type Agent int
func (*Agent) BuiltinMetrics ¶
func (t *Agent) BuiltinMetrics(args *model.AgentHeartbeatRequest, reply *model.BuiltinMetricResponse) error
agent按照server端的配置,按需采集的metric,比如net.port.listen port=22 或者 proc.num name=zabbix_agentd
func (*Agent) MinePlugins ¶
func (t *Agent) MinePlugins(args model.AgentHeartbeatRequest, reply *model.AgentPluginsResponse) error
func (*Agent) ReportStatus ¶
func (t *Agent) ReportStatus(args *model.AgentReportRequest, reply *model.SimpleRpcResponse) error
func (*Agent) TrustableIps ¶
func (t *Agent) TrustableIps(args *model.NullRpcRequest, ips *string) error
需要checksum一下来减少网络开销?其实白名单通常只会有一个或者没有,无需checksum
type Hbs ¶
type Hbs int
func (*Hbs) GetExpressions ¶
func (t *Hbs) GetExpressions(req model.NullRpcRequest, reply *model.ExpressionResponse) error
func (*Hbs) GetStrategies ¶
func (t *Hbs) GetStrategies(req model.NullRpcRequest, reply *model.StrategiesResponse) error
Click to show internal directories.
Click to hide internal directories.