使用nmap提示被防火墙阻挡,实际没有启用防火墙
[root@eus_chinasoft_haproxy:/usr/local/aegis]# nmap 172.20.103.202 -p 7000
Starting Nmap 6.40 ( http://nmap.org ) at 2019-04-24 02:24 PDT
Nmap scan report for redis01 (172.20.103.202)Host is up (0.000044s latency).PORT STATE SERVICE7000/tcp filtered afs3-fileserverMAC Address: EE:FF:FF:FF:FF:FF (Unknown)Nmap done: 1 IP address (1 host up) scanned in 0.29 seconds
[root@eus_chinasoft_haproxy:/usr/local/zabbix_agents_3.2.0/scripts]# cat /usr/local/zabbix_agents_3.2.0/scripts/redis_server_status.sh#!/bin/bash # function:monitor redis port status from zabbix web_ip_discovery () { WEB_IP=($(cat /usr/local/zabbix_agents_3.2.0/scripts/redis_servers.txt|grep -v "^#")) printf '{\n' printf '\t"data":[\n' for((i=0;i<${#WEB_IP[@]};++i)) { num=$(echo $((${#WEB_IP[@]}-1))) if [ "$i" != ${num} ]; then printf "\t\t{ \n" printf "\t\t\t\"{#SITENAME}\":\"${WEB_IP[$i]}\"},\n" else printf "\t\t{ \n" printf "\t\t\t\"{#SITENAME}\":\"${WEB_IP[$num]}\"}]}\n" fi } } web_site_code () { ip=`echo $1|awk -F ':' '{print $1}'` port=`echo $1|awk -F ':' '{print $2}'` #echo $ip /usr/bin/nc -w 1 ${ip} ${port}