net.tcp.port[,port] | |||
是否可以连接到指定的TCP端口 | 0 - cannot connect 1 - can connect | ip - IP地址(默认是 127.0.0.1) port - 端口 | 范例: net.tcp.port[,80] 检测web服务器端口是否运行中 老命名方式: check_port[*]简单的TCP性能检测: net.tcp.service.perf[tcp,,]不同的服务检测会有不同的响应数据 |
net.tcp.service[service,,] | |||
检测服务是否开启,并且端口可用 | 0 - 服务挂了 1 - 服务运行中 | service - 如下: ssh, ntp, ldap, smtp, ftp, http, pop, nntp,imap, tcp, https, telnet ip - IP地址 (默认127.0.0.1) port - 端口 (默认情况为标准端口号) | 示例key: net.tcp.service[ftp,,45] - 检测45端口上得FTP是否运行中 Zabbix 1.8.3 支持的版本请使用service.ntp 代替ntp. https 和telnet 服务从2.0和2.2开始支持 |
net.tcp.service.perf[service,,] | |||
检测服务器性能 | 0 - 服务挂了; seconds - 链接到服务器端口消耗的时间 | service - 如下:ssh, ntp, ldap, smtp, ftp, http, pop, nntp,imap, tcp, https, telnetip - IP地址 (默认127.0.0.1)port - 端口 (默认情况为标准端口号) | 示例key: net.tcp.service.perf[ssh] - 检测SSH服务器响应速度加密协议检测不被支持 (类似 IMAP端口 993或者POP端口995) .但是我们可以使用net.tcp.service.perf[tcp,,] 来检测他们.Windows agent不能检测LDAP和HTTPS. Note that the telnet check looks for a prompt (':' at the end). 老命名方式: check_service_perf[*]注意:that before Zabbix 1.8.3 version service.ntp should be used instead of ntp. Zabbix 2.0支持 https和telnet服务 |
net.udp.listen[port] | |||
检测UDP端口是否在监听 | 0 - it is not 1 - it is in LISTEN state | port - udp端口 | 范例: net.udp.listen[68] linux系统的Zabbix agent version 1.8.4开始支持 |