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_a2_mysql_tmp_size
#!/bin/bash

used=$(du -sk /var/db/mysql-tmp | awk '{print $1}')

if [[ $used -gt 1024000 ]]; then
  echo "mysql-tmp used=${used}K MySQL tmp is above 1 GB"
  exit 2
else
  echo "mysql-tmp used=${used}K MySQL tmp has enough space"
  exit 0
fi