Zabbix常用的监控协议有:
snmp通过oid收集数据
zabbixagent:通过zabbix客户端收集数据
JMX:通过JavaGateway收集数据
有关简单检查类型例子如下:
简单检查一般用于被监控的主机上没安装代理,再监测主机状态以及端口状态时非常有用。
支持简单检查的监控有:
[Shell] 纯文本查看 复制代码
Key 名称
icmppingloss[,,,,] Returns percentage of lost ICMP pingpackets.
icmppingsec[,,,,,] Returns ICMP ping response time inseconds. Example: 0.02
icmpping[,,,,] Checks if server is accessible by ICMP ping. 0 - ICMP ping fails. 1 - ICMP ping successful. One of zabbix_server processes performs ICMP pings once per PingerFrequency seconds.
net.tcp.service.perf[service,,] Check performance of service. 0 - service is down, sec - number of seconds spent on connection to the service. If is missing, IP or DNS name is taken from host definition. If is missing, default service port is used.
net.tcp.service[service,,] Check
1。检查主机的存活状态
icmpping[,,,,] #检查主机是否可以ping通
返回值为0表示ping失败,返回值为1表示可以ping通
target:主机名或ip地址
packets:数据包的数量
interval:两个连续数据包发送的时间间隔,以毫秒为单位
size:包的大小,以字节为单位
timeout:超时时间,以毫秒为单位
2.检查服务的端口
net.tcp.service[service,,] #检查服务是否运行
0表示服务是down,1表示服务运行
举例:
net.tcp.service[ftp,,45]
net.tcp.service[tcp,,3306]
3.检查服务的性能
net.tcp.service.perf[service,,]
#返回值为0表示服务关闭,或者返回连接到服务所花费的时间。
举例:
net.tcp.service.perf[ssh] [size=1em][backcolor=white !important][size=1em]
|
|