Server IP : 104.244.120.118  /  Your IP : 216.73.216.198
Web Server : Apache
System : Linux ded5817.inmotionhosting.com 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 14:34:46 UTC 2026 x86_64
User : persoanlinjuryla ( 1006)
PHP Version : 8.5.13
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0555) :  /../../opt/dedrads/python/../python/../python/../python/../suspended/../python/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../../opt/dedrads/python/../python/../python/../python/../suspended/../python/../check_user
#!/usr/bin/bash
# Shared RADS Tools, written by Erik Soroka (eriks@imhadmin.net, ext 834)
# This tool reports all pertinent data on a particular user for RA review.

CHECKUSER=$1

if [ -d /opt/sharedrads ]; then
    RADS_ROOT=/opt/sharedrads
else
    RADS_ROOT=/opt/dedrads
fi

#no user name received, no plaintext flag received
if [ -z $1 ]; then
	#no username argument received, lets show all server data
	echo ; $RADS_ROOT/check_server
	exit 0
fi

#no user received, but plaintext flag is present
if [ "$1" == "--plaintext" ]; then
	#no username argument received, lets show all server data
	echo ; $RADS_ROOT/check_server | sed -r "s:\x1B\[[0-9;]*[mK]::g"
	exit 0
fi


if [ "$2" == "--plaintext" ]; then
	RADSCOLORS=off
fi

echo

#load functions	+ banners
source $RADS_ROOT/radsfunctions.sh

if [ "$RADSCOLORS" == "off" ]; then
	radsbanner-nocolor
else
	radsbanner
fi

#SET A UNIQUE SESSION ID
SESSIONID=`date +%s`

if [ "$RADSCOLORS" == "off" ]; then

#check CPU
$RADS_ROOT/check_cpu $CHECKUSER $SESSIONID | sed -r "s:\x1B\[[0-9;]*[mK]::g"
#check dcpumon
$RADS_ROOT/check_dcpumon $CHECKUSER $SESSIONID | sed -r "s:\x1B\[[0-9;]*[mK]::g"
#check crons
$RADS_ROOT/check_crons $CHECKUSER $SESSIONID | sed -r "s:\x1B\[[0-9;]*[mK]::g"
#check mySQL slow queries
tail -10000 /var/log/slowqueries | $RADS_ROOT/mysql/slowqueryparser.py 2>&1 | awk "\$1 ~ /USER|$CHECKUSER/"
#check bandwidth
$RADS_ROOT/check_bandwidth $CHECKUSER $SESSIONID | sed -r "s:\x1B\[[0-9;]*[mK]::g"

else

#check CPU
$RADS_ROOT/check_cpu $CHECKUSER $SESSIONID
#check dcpumon
$RADS_ROOT/check_dcpumon $CHECKUSER $SESSIONID
#check crons
$RADS_ROOT/check_crons $CHECKUSER $SESSIONID
#check mySQL slow queries if on shared
[ -d /opt/sharedrads ] && tail -10000 /var/log/slowqueries | $RADS_ROOT/mysql/slowqueryparser.py 2>&1 | awk "\$1 ~ /USER|$CHECKUSER/"
#check bandwidth
$RADS_ROOT/check_bandwidth $CHECKUSER $SESSIONID

fi