JosefJezek
11/18/2013 - 11:19 AM

Zenoss Checks

Zenoss Checks

Zenoss Checks

Cisco VPN sessions count

check_ssh_cisco.sh ${here/manageIp} ${here/zCommandUsername} ${here/zCommandPassword} "show crypto session brief | include UA | VPN_NAME"

check_ssh_cisco.sh ${here/manageIp} ${here/zCommandUsername} ${here/zCommandPassword} "show webvpn session context CONTEXT_NAME | exclude WebVPN|Client_Login_Name"
#!/bin/sh

HOST=$1
USER=$2
PASS=$3
ARG=$4

result=$(sshpass -p $PASS ssh $USER@$HOST "$ARG" | wc -l)
echo "OK | count=$result"
exit 0