Having an issue getting PRTG to see the script in /var/prtg/scripts/prtg.sh The scripts works if executed via putty over ssh, when adding the sensor it also connects, but the file is not listed in the selection drop like it would if it was for a windows box.

#!/bin/bash
cd /Storage/0747/Current
FILE=./UP_ALERT_DO-NOT-DELETE.txt
if
    [ -f "$FILE" ]
then
    echo "0:200:File System Found."    # returncode 0 = put sensor in OK status
else
    echo "4:500:File System Not Found."    # returncode 4 = put sensor in DOWN status
fi
exit

Article Comments