Hi, if the error code is greater than 1 (warning level), i got error.

The SSH script's "returncode" has to be one of the following values: Value Description

0 OK

1 WARNING

2 System Error (e.g. a network/socket error)

3 Protocol Error (e.g. web server returns a 404)

4 Content Error (e.g. a web page does not contain a required word)

This is my script on AIX6.1 :

FS=$1

USEFS=`df -g  | awk '{print$7,$4}' |grep -v grep | grep $1 |awk '{print $2}'|awk -F'%' '{print $1}'`

if [ ${USEFS} -gt 50 ]

then 

echo "4:${USEFS}:KO"

else

        echo "0:${USEFS}:OK"

fi

---------------------

i have the fault code : (code: PE024)


Article Comments

Any idea ?


Nov, 2012 - Permalink

Hi,
the error code refers to the return value you are sending to PRTG. Your script is going into the if-condition and then exiting the script with code 4. This causes PRTG to show error PE024.
So you might want to check your script resp. the if-condition.
Best regards


Nov, 2012 - Permalink