zabbix Simple-check


說明

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 的主機使用。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM