Zabbix實現自動發現端口並監控

Zabbix實現自動發現端口並監控 1、新建客戶端需要的腳本 # vim discovertcpport.sh #!/bin/bash portarray=(`sudo netstat -tnlp|egrep -i "$1"|awk {'print $4'}|awk -F':' '{if ($NF~/^[0-9]*$/) print $NF}'|sort|uniq`) length=${#port
相關文章
相關標籤/搜索