Monitor script not working on UTM/Linux system

Monitor script not working on UTM/Linux system

Hi guys,
I have several UTMs that are linux based, and I got a bunch of scripts that need to be run on those.
Thus, I wrote a simple one, tested on a Debian (worked) via ssh/putty and via OpManager, but when testing on the UTM it worked  via ssh using putty , but via OpManager it didn't.


Note: on both I got the password/credentials test working.
Note2: I takes aprox. 20 seconds to return the error (However it is not by timeout):
Exit Code 4
Message Script_teste:Internal Server Error while processing this request.
 
Data Data is not found/invalid data format - Please refer the help card 'Output Format' part for assistance.
Raw Output

     

Here is the script:


Units
Execute From Local Server  Monitored Machine


=============BEGINNING =======================
#!/bin/bash

UTILIZATION=`df -h /var/log | tail -n 1 | tr -s " " | awk -F " " '{print $5}' | tr -d "%"`

echo Message: /var/log utilization "$ UTILIZATION"%
echo Data:
echo -e " Utilization\t$ UTILIZATION"
exit 0
=============END =======================

Thanks.

                  New to ADSelfService Plus?