[ SEA-GHOST MINI SHELL]
#!/bin/bash
warn="2"
crit="1"
freeIP=$(/scripts/rebuildippool | awk '{print $4}')
echo "$freeIP"
#if [ $freeIP -le $crit ]; then
# echo "2 IP_pool freeIP=$freeIP The system has $freeIP free IPs."
#elif [ $freeIP -le $warn ]; then
# echo "1 IP_pool freeIP=$freeIP The system has $freeIP free IPs."
#elif [ $freeIP -gt $warn ]; then
# echo "0 IP_pool freeIP=$freeIP The system has $freeIP free IPs."
#else
# echo "3 IP_pool freeIP=$freeIP Something goes wrong; debug: freeIP=$freeIP"
SEA-GHOST - SHELL CODING BY SEA-GHOST