snmptrap.sh cuts strings from traps up to a first space.
this happens because $address (a variable where it reads the string in) is manipulated like :
address=`echo $address|cut -f2 -d' '`
adding a dash to keep all parameters starting from the second like :
address=`echo $address|cut -f2- -d' '`
allows to receive a full string.
just posting this in case somebody else stumbles upon mysteriously cut strings
this happens because $address (a variable where it reads the string in) is manipulated like :
address=`echo $address|cut -f2 -d' '`
adding a dash to keep all parameters starting from the second like :
address=`echo $address|cut -f2- -d' '`
allows to receive a full string.
just posting this in case somebody else stumbles upon mysteriously cut strings