ROOTPLOIT
Server: Apache
System: Linux node6122.myfcloud.com 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User: bashacomputer (1004)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/nagios/plugins/check_mysql_processes
#!/bin/bash

PNUM=$(sudo mysql -e "SELECT COUNT(*) FROM information_schema.PROCESSLIST;" | awk '{print $1}' | sed -n 2p)

if [ "$PNUM" -ge 80 ]; then
   echo "CRITICAL: There are $PNUM processes. Probably stuck / sleeping."
   exit 2;
elif [ "$PNUM" -ge 60 ]; then
    echo "WARNING: There are $PNUM processes."
    exit 1;
else
    echo "OK"
fi