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
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
Oct, 2012 - Permalink