Path : /proc/2/root/proc/self/root/var/lib/zabbix/ |
Current File : //proc/2/root/proc/self/root/var/lib/zabbix/exabgp_state.sh |
#!/bin/bash IFS=$'\n' a=$(docker exec exaroute exabgpcli show neighbor summary 2>/dev/null| tail -n +2) for i in ${a} do peer=$(echo "$i"|awk '{print $1}') if [[ "$(echo $i|grep established| wc -l)" = 0 ]]; then result+="${peer}; " fi done echo "$result"