zabbix Simple-check

本文详细介绍了Zabbix中Simplecheck的使用方法,包括通过ICMP ping检测通讯状态、检查服务性能和可用性的各项功能。提供了具体示例,如设置目标IP、包数量、包大小等参数,帮助用户有效监控无法安装客户端的远程服务器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

说明

Simple check一般用于被监控的对象上无法安装客户端的情况,通过检测网络通讯状态及端口状态来监控对象的存活情况。

1、Simple check的几个KEY

icmpping[<target>,<packets>,<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.

使用PING命令检测通讯状态,返回0表示不通,返回1表示通过

icmppingloss[<target>,<packets>,<interval>,<size>,<timeout>]

Returns percentage of lost ICMP ping packets.

返回丢失包占的比例

icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mode>]

Returns ICMP ping response time in seconds. Example: 0.02

返回PING影响时间

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 if service is available. 0 - service is down, 1 - service is running. If <ip> is missing, IP or DNS name is taken from host definition. If <port> is missing, default service port is used.

检查服务是否运行

添加示例

1、icmpping[<target>,<packets>,<interval>,<size>,<timeout>]  

添加示例:  icmpping[192.168.1.1,4,1000,32,10000]    

对应项解析: 目标ip,包个数,相邻包时间间隔,每个包大小(bytes),超时时间(时间默认都是ms)

2、icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mode>]

添加示例:icmppingsec[<1.1.1.1,4,100,32,10000,avg]

对应项解析: 目标ip,包个数,相邻包时间间隔,每个包大小(bytes),超时时间(时间默认都是ms),模式分为max/min/avg 三种模式

3、net.tcp.service[service,<ip>,<port>]

添加示例:net.tcp.service[http,1.1.1.1,80]

对应项解析:服务,ip,端口

注意,书写格式中不能带有<>。选择信息类型。

 

模板创建

可以单独创建一个simple check 的模板,供所有的不能装agent 的主机使用。

 

转载于:https://www.cnblogs.com/fanggege/p/10303997.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值