Path : /proc/2/cwd/proc/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/cwd/proc/2/cwd/var/lib/zabbix/squid_deb_proxy.sh |
#!/bin/bash if [[ -z $(iptables -L OUTPUT -n | grep 8000) ]]; then echo "Cannot connect to pkgcache.ds.network: blocked by firewall" else status=$(curl -Is http://pkgcache.ds.network:8000 --max-time 5 | grep '400 Bad Request' | wc -l) if [[ $status -eq 0 ]]; then echo "Cannot connect to pkgcache.ds.network" else echo "Connect to pkgcache.ds.network: OK" fi fi