Path : /proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/root/var/lib/zabbix/ |
Current File : //proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/root/var/lib/zabbix/redis.sh |
#!/bin/bash IP=$1 if ! [[ $IP =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then IP=$(dig +short $IP | awk '{ print ; exit }') fi redis-cli -h $IP INFO | grep -w $2 | sed -e "s/^$2://"