Path : /proc/2/cwd/proc/self/root/proc/self/root/proc/2/task/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/cwd/proc/self/root/proc/self/root/proc/2/task/2/cwd/var/lib/zabbix/reservedips_main.sh |
#!/bin/bash ips=$(cat /etc/reservedips | grep -v "10\." | grep -v 169 | awk '{system("grep "$1" /var/cpanel/users/*")}') if [[ ! -z $ips ]]; then echo "ERROR: Some customers use main server ip: $ips" else echo "OK: None of the customers use main server ip" fi