if [ $EXITCODE -eq 0 ]; then
echo "$OUTPUT" | grep -v CRITICAL
[ $? -eq 1 ] && EXITCODE=2
fi
but when the script runs i get this
../libexec/retrieve_custom_snmp: line 84: [: -eq: unary operator expected
"CRITICAL emcpowera has 2 dead, 2 alive"
can anyone help with this issue
What is $EXITCODE set to? How is it set?
EXITCODE=`$SNMPWALK -v 1 -c $COMMUNITY $HOST $STATUS`
[ $DEBUG -gt 0 ] && echo "Retrieve exit code is $EXITCODE" >> $DEBUGFILE
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list