Zabbix常用的监控协议有:
snmp通过oid收集数据
zabbixagent:通过zabbix客户端收集数据
JMX:通过JavaGateway收集数据
有关简单检查类型例子如下:
简单检查一般用于被监控的主机上没安装代理,再监测主机状态以及端口状态时非常有用。
支持简单检查的监控有:
Key 名称
icmppingloss[<ip>,<count>,<interval>,<size>,<timeout>] Returns percentage of lost ICMP ping packets.
icmppingsec[<ip>,<count>,<interval>,<size>,<timeout>,<type>] Returns ICMP ping response time in seconds. Example: 0.02
icmpping[<ip>,<count>,<interval>,<size>,<timeout>] 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,<ip>,<port>] Check performance of service. 0 - service is down, sec - number of seconds spent on connection to the service. If <ip> is missing, IP or DNS name is taken from host definition. If <port> is missing, default service port is used.
net.tcp.service[service,<ip>,<port>] Check
1。检查主机的存活状态
icmpping[<target>,<packets>,<interval>,<size>,<timeout>] #检查主机是否可以ping通
返回值为0表示ping失败,返回值为1表示可以ping通
target:主机名或ip地址
packets:数据包的数量
interval:两个连续数据包发送的时间间隔,以毫秒为单位
size:包的大小,以字节为单位
timeout:超时时间,以毫秒为单位
2.检查服务的端口
net.tcp.service[service,<ip>,<port>] #检查服务是否运行
0表示服务是down,1表示服务运行
举例:
net.tcp.service[ftp,,45]
net.tcp.service[tcp,,3306]
3.检查服务的性能
net.tcp.service.perf[service,<ip>,<port>]
#返回值为0表示服务关闭,或者返回连接到服务所花费的时间。
举例:
net.tcp.service.perf[ssh]
ZABBIX 的详细介绍:请点这里
ZABBIX 的下载地址:请点这里
相关阅读:
CentOS 6.3下Zabbix安装部署
CentOS 6.3下Zabbix监控apache server-status