#!/bin/bash # ./check_ppp_users HOSTNAME SNMPCOMMUNITY SNMPVERSION HOSTNAME=$1 SNMPCOMMUNITY=$2 SNMPVERSION=$3 OID=1.3.6.1.4.1.9.10.19.1.3.1.1.3 VALUE=`snmpwalk -Oqv -c $SNMPCOMMUNITY -v $SNMPVERSION $HOSTNAME $OID > users_ppp.tmp` TOTAL=`cat users_ppp.tmp | wc -l` echo -n "Ok - Usuarios Conectados PPP: $TOTAL" rm -f users_ppp.tmp echo "" exit 0 by shell. --------- simoni:/usr/local/nagios/libexec# ./check_ppp_users 10.10.10.10 s3cr3t 2c Ok - Usuarios Conectados PPP: 184 and when i see nagios cgi web show me: --------------------------------------- Usuarios PPP OK 04-05-2007 13:58:22 0d 0h 3m 58s 1/5 Ok - Usuarios Conectados PPP: 0 WHY 0 if i get the number in bash?????