As seen in the screenshot you attached, a numeric value of some form or type must be returned as part of the output of the script. Message text is optional, but a numeric value is not. Here you can learn more about creating Nagios Script Monitors.
The script ran successfully. | 'CPU%'=75.2 'MemoryRemainingInKB'=600748