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

Change state of custom sensor on AIX

Votes:

0

Hello,
we maid a custom ssh script to test a process's memory :

-------------------------------
PROC=$1
GROUP=$2

if [ $PROC = j2ee_PD900 ]
then
CPU=`ps auxww | grep $PROC|grep $GROUP|grep -v grep | awk '{print $3}'`
else
CPU=`ps auxww | grep $PROC|grep -v grep | awk '{print $3}'`
fi
if [ $CPU -lt 10 ]
then
echo "$CPU:OK"
exit 0
elif [ $CPU -gt 25 ]
then
echo "$CPU:KO"
exit 1
fi
-------------------------

and we to the status down when $CPU > 25, status UP when $CPU < 10.

I don't find the way to do this.

any help ?

Thanks Jeff

aix prtg sensor ssh status

Created on Oct 10, 2012 12:39:07 PM

Last change on Oct 10, 2012 12:41:11 PM by  Konstantin Wolff [Paessler Support]



2 Replies

Accepted Answer

Votes:

0

Hi,
this has to be done in the sensor in PRTG. There please switch to the tab "Channels" and set the option "Limits" to "Enable Limits".
Now you are able to define upper/lower error/warning limits.
Best regards

Created on Oct 10, 2012 12:43:09 PM by  Konstantin Wolff [Paessler Support]



Votes:

0

Thank a lot it just we needed. best regards

Created on Oct 10, 2012 1:03:09 PM




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.