I've created an Application Monitor Template using the Linux/Unix Script Monitor.
According to the help, I report my application status via the exit code:
Creating a Linux/Unix Script Monitor

When my application is up and I return 0, everything is good and my application shows as Up.
If my script returns a 1 as in the above table, The application is shown as Down which is what I want:

But when I go to Application Details, an error message in red is displayed that indicates that there was a failure because the return code was non zero.
This also occurs if I return a 2, 3, or other non zero value. The app status correctly shows Warning, Critical or Unknown but I get a red error message in the details page.

How can I use the script return code to show Application status AND not have that error message? It confuses the operators.
This shows my script command line and script body for testing

thanks