I suggest you delete the script and start again.
Use linux Nano or Vim instead of a windows text editor. The spacing+carrage returns in the file you made sound like they are in windows format.
My repair of the Rabbix queues worked perfectly... Zenoss is amazing!
Simon Jackson