Back
Type Name Operations
__pycache__ Open
account_review Open
autosuspend Open
check_software_mods Open
cms_tools Open
domainchecker Open
etc Open
extras Open
failsuspend Open
guds_modules Open
mailers Open
mitigatord Open
mysql Open
nlp_scripts Open
oldrads Open
ops Open
perl Open
python Open
suspended Open
temporary Open
README
account-review
alp.py
autossl_runner.sh
autosusprunner.sh
backup_scan.sh
blockip
check_apache
check_autossl
check_bandwidth
check_boxtrapper
check_cpu
check_crons
check_darkmailer.py
check_dcpumon
check_dns
check_domcount.sh
check_exim
check_hacks
check_imap
check_io
check_lve
check_mailchannels_dns
check_max_children
check_mem
check_misc
check_mysql
check_pacct
check_pop3
check_raid
check_server
check_size
check_software
check_spamd
check_traffic
check_user
check_zoneh
clean_exim.py
clean_moveuser
cms_counter.py
cms_creds
cms_dumpdb
cms_pw
cmspass.py
cpanel-api
cpumon
ctrl_alt_del
dcpumon.pl
disk_cleanup.py
dns-sync
docroot.py
du-tree
envinfo.py
exclude_rbl.py
exclude_sender
extract-vhost
find_warez
findbadscripts
fixwpcron.py
forensic.py
fraudhunter.py
generate_cpmove_tix
hostsfilemods
imap_io
killall911
lastcommcache.sh
legal_lock_down.sh
lil-cpanel
limit_bots
listacct
mail_sources.py
mailscan
mass_arp_fixer.py
mass_mysql_recover.py
megaclisas-status
modify-account
modsec_disable.py
move_generator.py
msp.pl
mysql_dstat
nlp
packandgo
pastebin
postmortem
procscrape
quarantine
quick_post
radsfunctions.sh
reap_fpm_orphans.sh
recent-cp
reclaim_suspensions
remote_dump
rescp.sh
reset_cpanel
reset_email
rotate_ip_addresses.py
rrdtooldisable.sh
rrdtoolenable.sh
sadatarunner.sh
send_customer_str
send_pp_email
server-load
setmaxemails
show-conns
software_report.py
sqltop
strmailer
suspend_domain
suspend_user
temp_apache_fix
unsuspend_user
unsusprunner.sh
update_spf
upgrade-check
vhost_data.py

File Transfer

Upload files to current directory

File Editor: check_dcpumon

#!/bin/bash CHECKUSER="$1" SESSIONID="$2" if [ -z "$1" ]; then echo echo "Usage: check_dcpumon [username]" echo exit 0 fi #load functions + banners if [ -f /opt/sharedrads/radsfunctions.sh ]; then # shellcheck disable=SC1091 source /opt/sharedrads/radsfunctions.sh else # shellcheck disable=SC1091 source /opt/dedrads/radsfunctions.sh fi if [ "$2" == "--plaintext" ]; then RADSCOLORS=off DETAILED=YES fi if [ -z "$2" ]; then SESSIONID=$(date +%s) DETAILED=YES fi #get the data from dcpumon, save it in a unique tmp session file NODATA=FALSE /usr/local/cpanel/bin/dcpumonview | grep "/$CHECKUSER/" > "/tmp/.$SESSIONID" || NODATA=TRUE if [ "$NODATA" == "FALSE" ]; then if [ "$RADSCOLORS" == "off" ]; then echo -e "\033[0m Displaying top utilization processes for user as recorded by cPanel and dcpumon \033[0m" else echo -e "\033[40;37;2m Displaying top utilization processes for user as recorded by cPanel and dcpumon \033[0m" fi if [ "$RADSCOLORS" == "off" ]; then echo -en "\033[0m" else echo -en "\033[30;1m" fi #strip html from 'dcpumonview' output cat "/tmp/.$SESSIONID" | sed 's/<[^>]*>/ /g' #clear colors echo -ne "\033[0m" fi #no session ID was received earlier, we were invoked directly, lets display add'l history: echo if [ "$DETAILED" == "YES" ]; then if [ "$RADSCOLORS" == "off" ]; then echo " Displaying usage history for user as recorded by cPanel and dcpumon " else echo -e "\033[40;37;2m Displaying usage history for user as recorded by cPanel and dcpumon \033[0m" fi if [ "$RADSCOLORS" == "off" ]; then echo -ne "\033[0m" else echo -ne "\033[34;1m" fi grep "$CHECKUSER" "/var/log/dcpumon/$(date +%Y)/$(date +%b)"/* | grep -v root | sed 's_/var/log/dcpumon/__'| \ awk -F= '{total=total+$2;printf "%s\t%1.1f\t%f\t%f\t\n",$1,$2,$3,$4}' | \ awk '{gsub(/\//," ",$0);gsub(/:/,": ",$0);print;}' | sort -fMk2 -nk3 #clear colors fi echo -ne "\033[0m" rm -f "/tmp/.$SESSIONID"