What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

pb with return code ssh custom script

Votes:

0

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)

custom script ssh

Created on Oct 30, 2012 3:46:22 PM

Last change on Oct 30, 2012 6:47:25 PM by  Torsten Lindner [Paessler Support]



2 Replies

Votes:

0

Any idea ?

Created on Nov 7, 2012 3:17:21 PM



Votes:

0

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

Created on Nov 7, 2012 7:03:59 PM by  Konstantin Wolff [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.