Path : /proc/2/task/2/root/var/lib/zabbix/ |
Current File : //proc/2/task/2/root/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