使用zabbix自带的key进行系统的端口监控。
对于端口的监控,可以使用zabbix自带的key进行监控,只需要在server端配置就可以了。
1 监控端口说明
zabbix监控端口主要使用如下key:
net.tcp.listen[port] |
Checks if this port is in LISTEN state. 0 - it is not, 1 - it is in LISTEN state. 监控TCP端口是否监听 |
net.tcp.port[<ip>,port] |
Check, if it is possible to make TCP connection to the port number. 0 - cannot connect, 1 - can connect. IP address is optional. If ip is missing, 127.0.0.1 is used. Example: net.tcp.port[,80] 检查TCP端口是否可以正常连接。 |
2. 映射值得含义
为了接收到的值能更“人性化”的表示,可以使用包含数值和字符串表示之间映射的值映射。
值映射也能在Zabbix的前端和通过电子邮件/SMS/ja