Zabbix---6 监控 端口 连接数

例如监控80端口和22端口

一、zabbix客户端编写获取端口连接数脚本

[root@localhost sbin]# pwd
/usr/local/sbin
[root@localhost sbin]# cat port_num.sh 
#!/bin/bash

netstat -an | grep $1 | grep -c ESTABLISHED 
[root@localhost sbin]# 

猜你喜欢

转载自blog.csdn.net/qq_40907977/article/details/112560864