To clarify, the script works fine. It returns the single line of text that I'm looking for. However, Zabbix shows absolutely nothing as the return value.

What is the script?

It's an SSH Expect Script. It logs into a Mikrotik RB951, and executes:

ut [/system...