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_vps_memory.sh
#!/bin/bash
# Ref - 8698p7p0e - custom check for A2 VPS with higher limit
#

MEMUSAGE=$(free | awk '/Mem/{printf("RAM Usage: %d\n"), $3/$2*100}'| awk '{print $3}')

if [[ "${MEMUSAGE}" -ge 95 ]]; then
  echo "CRITICAL: Memory Usage at ${MEMUSAGE}%"
  exit 2
elif [[ "${MEMUSAGE}" -ge 85 ]]; then
  echo "WARNING: Memory Usage at ${MEMUSAGE}%"
  exit 1
else
  echo "OK: Memory Usage at ${MEMUSAGE}%"
  exit 0
fi