Zabbix监控之简单检查
Zabbix常用的监控协议有:snmp通过oid收集数据
zabbixagent:通过zabbix客户端收集数据
JMX:通过JavaGateway收集数据
有关简单检查类型例子如下:
简单检查一般用于被监控的主机上没安装代理,再监测主机状态以及端口状态时非常有用。
支持简单检查的监控有:
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 Check performance of service. 0 - service is down, sec - number of seconds spent on connection to the service. Ifis missing, IP or DNS name is taken from host definition. Ifis missing, default service port is used.
net.tcp.service Check
1。检查主机的存活状态
icmpping[,,,,] #检查主机是否可以ping通
返回值为0表示ping失败,返回值为1表示可以ping通
target:主机名或ip地址
packets:数据包的数量
interval:两个连续数据包发送的时间间隔,以毫秒为单位
size:包的大小,以字节为单位
timeout:超时时间,以毫秒为单位
2.检查服务的端口
net.tcp.service#检查服务是否运行
0表示服务是down,1表示服务运行
举例:
net.tcp.service
net.tcp.service
3.检查服务的性能
net.tcp.service.perf
#返回值为0表示服务关闭,或者返回连接到服务所花费的时间。
举例:
net.tcp.service.perf
做爱做的事,交配交的人。 下雨了,别忘了打伞,湿身是小,淋病就麻烦啦*^_^* 流氓不可怕,就怕流氓有文化。 这是什么东东啊 写的真的很不错 不在放荡中变坏,就在沉默中变态!
页:
[1]