企业级Linux日常自动巡检脚本

企业级Linux日常自动巡检脚本

Linux基础服务巡检脚本模板收集的一个没有自动化巡检工具的时候,的每日巡检工具, 测试了支持Redhat、Ubuntu能用,单少部分部分命令出错, 结果支持查看。

PS:可加入定时任务每天巡检:【* 8 * * * /bin/sh /root/scripts/check.sh &>/dev/null

巡检脚本

check.sh

#!/bin/bash

#---------------------------------------------------------------------
# Linux主机信息每日巡检,巡检日志结果保存到$RESULTFILE目录下  	     |
# 检查内容:							     |
# 	CPU检查		内存检查	磁盘检查	syslog检查   |
# 	服务检查	登录检查	网络检查	自启动检查   |
# 	监听检查	用户检查	密码检查	计划任务检查 |
# 	软件检查   	进程检查	JDK检查		Sudoers检查  |
# 	系统检查	SSH检查		NTP检查		防火墙检查   |
#--------------------------------------------------------------------|

IPADDR=$(ifconfig eth0|grep 'inet addr'|awk -F '[ :]' '{print $13}')
#环境变量PATH没设好,在cron里执行时有很多命令会找不到
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
source /etc/profile

[ $(id -u) -gt 0 ] && echo "请用root用户执行此脚本!" && exit 1
centosVersion=$(awk '{print $(NF-1)}' /etc/redhat-release)
VERSION="2017.08.22"

#日志相关
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
[ -f $PROGPATH ] && PROGPATH="."
LOGPATH="$PROGPATH/log"
[ -e $LOGPATH ] || mkdir $LOGPATH
RESULTFILE="$LOGPATH/HostDailyCheck-$IPADDR-`date +%Y%m%d`.txt"


#定义报表的全局变量
report_DateTime="" #日期 ok
report_Hostname="" #主机名 ok
report_OSRelease="" #发行版本 ok
report_Kernel="" #内核 ok
report_Language="" #语言/编码 ok
report_LastReboot="" #最近启动时间 ok
report_Uptime="" #运行时间(天) ok
report_CPUs="" #CPU数量 ok
report_CPUType="" #CPU类型 ok
report_Arch="" #CPU架构 ok
report_MemTotal="" #内存总容量(MB) ok
report_MemFree="" #内存剩余(MB) ok
report_MemUsedPercent="" #内存使用率% ok
report_DiskTotal="" #硬盘总容量(GB) ok
report_DiskFree="" #硬盘剩余(GB) ok
report_DiskUsedPercent="" #硬盘使用率% ok
report_InodeTotal="" #Inode总量 ok
report_InodeFree="" #Inode剩余 ok
report_InodeUsedPercent="" #Inode使用率 ok
report_IP="" #IP地址 ok
report_MAC="" #MAC地址 ok
report_Gateway="" #默认网关 ok
report_DNS="" #DNS ok
report_Listen="" #监听 ok
report_Selinux="" #Selinux ok
report_Firewall="" #防火墙 ok
report_USERs="" #用户 ok
report_USEREmptyPassword="" #空密码用户 ok
report_USERTheSameUID="" #相同ID的用户 ok 
report_PasswordExpiry="" #密码过期(天) ok
report_RootUser="" #root用户 ok
report_Sudoers="" #sudo授权 ok
report_SSHAuthorized="" #SSH信任主机 ok
report_SSHDProtocolVersion="" #SSH协议版本 ok
report_SSHDPermitRootLogin="" #允许root远程登录 ok
report_DefunctProsess="" #僵尸进程数量 ok
report_SelfInitiatedService="" #自启动服务数量 ok
report_SelfInitiatedProgram="" #自启动程序数量 ok
report_RuningService="" #运行中服务数 ok
report_Crontab="" #计划任务数 ok
report_Syslog="" #日志服务 ok
report_SNMP="" #SNMP OK
report_NTP="" #NTP ok
report_JDK="" #JDK版本 ok
function version(){
echo ""
echo ""
echo "系统巡检脚本:Version $VERSION"
}

function getCpuStatus(){
echo ""
echo ""
echo "############################ CPU检查 #############################"
Physical_CPUs=$(grep "physical id" /proc/cpuinfo| sort | uniq | wc -l)
Virt_CPUs=$(grep "processor" /proc/cpuinfo | wc -l)
CPU_Kernels=$(grep "cores" /proc/cpuinfo|uniq| awk -F ': ' '{print $2}')
CPU_Type=$(grep "model name" /proc/cpuinfo | awk -F ': ' '{print $2}' | sort | uniq)
CPU_Arch=$(uname -m)
echo "物理CPU个数:$Physical_CPUs"
echo "逻辑CPU个数:$Virt_CPUs"
echo "每CPU核心数:$CPU_Kernels"
echo " CPU型号:$CPU_Type"
echo " CPU架构:$CPU_Arch"
#报表信息
report_CPUs=$Virt_CPUs #CPU数量
report_CPUType=$CPU_Type #CPU类型
report_Arch=$CPU_Arch #CPU架构
}

function getMemStatus(){
echo ""
echo ""
echo "############################ 内存检查 ############################"
if [[ $centosVersion < 7 ]];then
free -mo
else
free -h
fi
#报表信息
MemTotal=$(grep MemTotal /proc/meminfo| awk '{print $2}') #KB
MemFree=$(grep MemFree /proc/meminfo| awk '{print $2}') #KB
let MemUsed=MemTotal-MemFree
MemPercent=$(awk "BEGIN {if($MemTotal==0){printf 100}else{printf \"%.2f\",$MemUsed*100/$MemTotal}}")
report_MemTotal="$((MemTotal/1024))""MB" #内存总容量(MB)
report_MemFree="$((MemFree/1024))""MB" #内存剩余(MB)
report_MemUsedPercent="$(awk "BEGIN {if($MemTotal==0){printf 100}else{printf \"%.2f\",$MemUsed*100/$MemTotal}}")""%" #内存使用率%
}

function getDiskStatus(){
echo ""
echo ""
echo "############################ 磁盘检查 ############################"
df -hiP | sed 's/Mounted on/Mounted/'> /tmp/inode
df -hTP | sed 's/Mounted on/Mounted/'> /tmp/disk 
join /tmp/disk /tmp/inode | awk '{print $1,$2,"|",$3,$4,$5,$6,"|",$8,$9,$10,$11,"|",$12}'| column -t
#报表信息
diskdata=$(df -TP | sed '1d' | awk '$2!="tmpfs"{print}') #KB
disktotal=$(echo "$diskdata" | awk '{total+=$3}END{print total}') #KB
diskused=$(echo "$diskdata" | awk '{total+=$4}END{print total}') #KB
diskfree=$((disktotal-diskused)) #KB
diskusedpercent=$(echo $disktotal $diskused | awk '{if($1==0){printf 100}else{printf "%.2f",$2*100/$1}}') 
inodedata=$(df -iTP | sed '1d' | awk '$2!="tmpfs"{print}')
inodetotal=$(echo "$inodedata" | awk '{total+=$3}END{print total}')
inodeused=$(echo "$inodedata" | awk '{total+=$4}END{print total}')
inodefree=$((inodetotal-inodeused))
inodeusedpercent=$(echo $inodetotal $inodeused | awk '{if($1==0){printf 100}else{printf "%.2f",$2*100/$1}}')
report_DiskTotal=$((disktotal/1024/1024))"GB" #硬盘总容量(GB)
report_DiskFree=$((diskfree/1024/1024))"GB" #硬盘剩余(GB)
report_DiskUsedPercent="$diskusedpercent""%" #硬盘使用率%
report_InodeTotal=$((inodetotal/1000))"K" #Inode总量
report_InodeFree=$((inodefree/1000))"K" #Inode剩余
report_InodeUsedPercent="$inodeusedpercent""%" #Inode使用率%

}

function getSystemStatus(){
echo ""
echo ""
echo "############################ 系统检查 ############################"
if [ -e /etc/sysconfig/i18n ];then
default_LANG="$(grep "LANG=" /etc/sysconfig/i18n | grep -v "^#" | awk -F '"' '{print $2}')"
else
default_LANG=$LANG
fi
export LANG="en_US.UTF-8"
Release=$(cat /etc/redhat-release 2>/dev/null)
Kernel=$(uname -r)
OS=$(uname -o)
Hostname=$(uname -n)
SELinux=$(/usr/sbin/sestatus | grep "SELinux status: " | awk '{print $3}')
LastReboot=$(who -b | awk '{print $3,$4}')
uptime=$(uptime | sed 's/.*up \([^,]*\), .*/\1/')
echo " 系统:$OS"
echo " 发行版本:$Release"
echo " 内核:$Kernel"
echo " 主机名:$Hostname"
echo " SELinux:$SELinux"
echo "语言/编码:$default_LANG"
echo " 当前时间:$(date +'%F %T')"
echo " 最后启动:$LastReboot"
echo " 运行时间:$uptime"
#报表信息
report_DateTime=$(date +"%F %T") #日期
report_Hostname="$Hostname" #主机名
report_OSRelease="$Release" #发行版本
report_Kernel="$Kernel" #内核
report_Language="$default_LANG" #语言/编码
report_LastReboot="$LastReboot" #最近启动时间
report_Uptime="$uptime" #运行时间(天)
report_Selinux="$SELinux"
export LANG="$default_LANG"

}

function getServiceStatus(){
echo ""
echo ""
echo "############################ 服务检查 ############################"
echo ""
if [[ $centosVersion > 7 ]];then
conf=$(systemctl list-unit-files --type=service --state=enabled --no-pager | grep "enabled")
process=$(systemctl list-units --type=service --state=running --no-pager | grep ".service")
#报表信息
report_SelfInitiatedService="$(echo "$conf" | wc -l)" #自启动服务数量
report_RuningService="$(echo "$process" | wc -l)" #运行中服务数量
else
conf=$(/sbin/chkconfig | grep -E ":on|:启用")
process=$(/sbin/service --status-all 2>/dev/null | grep -E "is running|正在运行")
#报表信息
report_SelfInitiatedService="$(echo "$conf" | wc -l)" #自启动服务数量
report_RuningService="$(echo "$process" | wc -l)" #运行中服务数量
fi
echo "服务配置"
echo "--------"
echo "$conf" | column -t
echo ""
echo "正在运行的服务"
echo "--------------"
echo "$process"

}


function getAutoStartStatus(){
echo ""
echo ""
echo "############################ 自启动检查 ##########################"
conf=$(grep -v "^#" /etc/rc.d/rc.local| sed '/^$/d')
echo "$conf"
#报表信息
report_SelfInitiatedProgram="$(echo $conf | wc -l)" #自启动程序数量
}

function getLoginStatus(){
echo ""
echo ""
echo "############################ 登录检查 ############################"
last | head
}

function getNetworkStatus(){
echo ""
echo ""
echo "############################ 网络检查 ############################"
if [[ $centosVersion < 7 ]];then
/sbin/ifconfig -a | grep -v packets | grep -v collisions | grep -v inet6
else
#ip a
for i in $(ip link | grep BROADCAST | awk -F: '{print $2}');do ip add show $i | grep -E "BROADCAST|global"| awk '{print $2}' | tr '\n' ' ' ;echo "" ;done
fi
GATEWAY=$(ip route | grep default | awk '{print $3}')
DNS=$(grep nameserver /etc/resolv.conf| grep -v "#" | awk '{print $2}' | tr '\n' ',' | sed 's/,$//')
echo ""
echo "网关:$GATEWAY "
echo " DNS:$DNS"
#报表信息
IP=$(ip -f inet addr | grep -v 127.0.0.1 | grep inet | awk '{print $NF,$2}' | tr '\n' ',' | sed 's/,$//')
MAC=$(ip link | grep -v "LOOPBACK\|loopback" | awk '{print $2}' | sed 'N;s/\n//' | tr '\n' ',' | sed 's/,$//')
report_IP="$IP" #IP地址
report_MAC=$MAC #MAC地址
report_Gateway="$GATEWAY" #默认网关
report_DNS="$DNS" #DNS
}

function getListenStatus(){
echo ""
echo ""
echo "############################ 监听检查 ############################"
TCPListen=$(ss -ntul | column -t)
echo "$TCPListen"
#报表信息
report_Listen="$(echo "$TCPListen"| sed '1d' | awk '/tcp/ {print $5}' | awk -F: '{print $NF}' | sort | uniq | wc -l)"
}

function getCronStatus(){
echo ""
echo ""
echo "############################ 计划任务检查 ########################"
Crontab=0
for shell in $(grep -v "/sbin/nologin" /etc/shells);do
for user in $(grep "$shell" /etc/passwd| awk -F: '{print $1}');do
crontab -l -u $user >/dev/null 2>&1
status=$?
if [ $status -eq 0 ];then
echo "$user"
echo "--------"
crontab -l -u $user
let Crontab=Crontab+$(crontab -l -u $user | wc -l)
echo ""
fi
done
done
#计划任务
find /etc/cron* -type f | xargs -i ls -l {} | column -t
let Crontab=Crontab+$(find /etc/cron* -type f | wc -l)
#报表信息
report_Crontab="$Crontab" #计划任务数
}
function getHowLongAgo(){
# 计算一个时间戳离现在有多久了
datetime="$*"
[ -z "$datetime" ] && echo "错误的参数:getHowLongAgo() $*"
Timestamp=$(date +%s -d "$datetime") #转化为时间戳
Now_Timestamp=$(date +%s)
Difference_Timestamp=$(($Now_Timestamp-$Timestamp))
days=0;hours=0;minutes=0;
sec_in_day=$((60*60*24));
sec_in_hour=$((60*60));
sec_in_minute=60
while (( $(($Difference_Timestamp-$sec_in_day)) > 1 ))
do
let Difference_Timestamp=Difference_Timestamp-sec_in_day
let days++
done
while (( $(($Difference_Timestamp-$sec_in_hour)) > 1 ))
do
let Difference_Timestamp=Difference_Timestamp-sec_in_hour
let hours++
done
echo "$days$hours 小时前"
}

function getUserLastLogin(){
# 获取用户最近一次登录的时间,含年份
# 很遗憾last命令不支持显示年份,只有"last -t YYYYMMDDHHMMSS"表示某个时间之间的登录,我
# 们只能用最笨的方法了,对比今天之前和今年元旦之前(或者去年之前和前年之前……)某个用户
# 登录次数,如果登录统计次数有变化,则说明最近一次登录是今年。
username=$1
: ${username:="`whoami`"}
thisYear=$(date +%Y)
oldesYear=$(last | tail -n1 | awk '{print $NF}')
while(( $thisYear >= $oldesYear));do
loginBeforeToday=$(last $username | grep $username | wc -l)
loginBeforeNewYearsDayOfThisYear=$(last $username -t $thisYear"0101000000" | grep $username | wc -l)
if [ $loginBeforeToday -eq 0 ];then
echo "从未登录过"
break
elif [ $loginBeforeToday -gt $loginBeforeNewYearsDayOfThisYear ];then
lastDateTime=$(last -i $username | head -n1 | awk '{for(i=4;i<(NF-2);i++)printf"%s ",$i}')" $thisYear" #格式如: Sat Nov 2 20:33 2015
lastDateTime=$(date "+%Y-%m-%d %H:%M:%S" -d "$lastDateTime")
echo "$lastDateTime"
break
else
thisYear=$((thisYear-1))
fi
done

}

function getUserStatus(){
echo ""
echo ""
echo "############################ 用户检查 ############################"
#/etc/passwd 最后修改时间
pwdfile="$(cat /etc/passwd)"
Modify=$(stat /etc/passwd | grep Modify | tr '.' ' ' | awk '{print $2,$3}')

echo "/etc/passwd 最后修改时间:$Modify ($(getHowLongAgo $Modify))"
echo ""
echo "特权用户"
echo "--------"
RootUser=""
for user in $(echo "$pwdfile" | awk -F: '{print $1}');do
if [ $(id -u $user) -eq 0 ];then
echo "$user"
RootUser="$RootUser,$user"
fi
done
echo ""
echo "用户列表"
echo "--------"
USERs=0
echo "$(
echo "用户名 UID GID HOME SHELL 最后一次登录"
for shell in $(grep -v "/sbin/nologin" /etc/shells);do
for username in $(grep "$shell" /etc/passwd| awk -F: '{print $1}');do
userLastLogin="$(getUserLastLogin $username)"
echo "$pwdfile" | grep -w "$username" |grep -w "$shell"| awk -F: -v lastlogin="$(echo "$userLastLogin" | tr ' ' '_')" '{print $1,$3,$4,$6,$7,lastlogin}'
done
let USERs=USERs+$(echo "$pwdfile" | grep "$shell"| wc -l)
done
)" | column -t
echo ""
echo "空密码用户"
echo "----------"
USEREmptyPassword=""
for shell in $(grep -v "/sbin/nologin" /etc/shells);do
for user in $(echo "$pwdfile" | grep "$shell" | cut -d: -f1);do
r=$(awk -F: '$2=="!!"{print $1}' /etc/shadow | grep -w $user)
if [ ! -z $r ];then
echo $r
USEREmptyPassword="$USEREmptyPassword,"$r
fi
done 
done
echo ""
echo "相同ID的用户"
echo "------------"
USERTheSameUID=""
UIDs=$(cut -d: -f3 /etc/passwd | sort | uniq -c | awk '$1>1{print $2}')
for uid in $UIDs;do
echo -n "$uid";
USERTheSameUID="$uid"
r=$(awk -F: 'ORS="";$3=='"$uid"'{print ":",$1}' /etc/passwd)
echo "$r"
echo ""
USERTheSameUID="$USERTheSameUID $r,"
done
#报表信息
report_USERs="$USERs" #用户
report_USEREmptyPassword=$(echo $USEREmptyPassword | sed 's/^,//') 
report_USERTheSameUID=$(echo $USERTheSameUID | sed 's/,$//') 
report_RootUser=$(echo $RootUser | sed 's/^,//') #特权用户
}


function getPasswordStatus {
echo ""
echo ""
echo "############################ 密码检查 ############################"
pwdfile="$(cat /etc/passwd)"
echo ""
echo "密码过期检查"
echo "------------"
result=""
for shell in $(grep -v "/sbin/nologin" /etc/shells);do
for user in $(echo "$pwdfile" | grep "$shell" | cut -d: -f1);do
get_expiry_date=$(/usr/bin/chage -l $user | grep 'Password expires' | cut -d: -f2)
if [[ $get_expiry_date = ' never' || $get_expiry_date = 'never' ]];then
printf "%-15s 永不过期\n" $user
result="$result,$user:never"
else
password_expiry_date=$(date -d "$get_expiry_date" "+%s")
current_date=$(date "+%s")
diff=$(($password_expiry_date-$current_date))
let DAYS=$(($diff/(60*60*24)))
printf "%-15s %s天后过期\n" $user $DAYS
result="$result,$user:$DAYS days"
fi
done
done
report_PasswordExpiry=$(echo $result | sed 's/^,//')

echo ""
echo "密码策略检查"
echo "------------"
grep -v "#" /etc/login.defs | grep -E "PASS_MAX_DAYS|PASS_MIN_DAYS|PASS_MIN_LEN|PASS_WARN_AGE"


}

function getSudoersStatus(){
echo ""
echo ""
echo "############################ Sudoers检查 #########################"
conf=$(grep -v "^#" /etc/sudoers| grep -v "^Defaults" | sed '/^$/d')
echo "$conf"
echo ""
#报表信息
report_Sudoers="$(echo $conf | wc -l)"
}

function getInstalledStatus(){
echo ""
echo ""
echo "############################ 软件检查 ############################"
rpm -qa --last | head | column -t 
}

function getProcessStatus(){
echo ""
echo ""
echo "############################ 进程检查 ############################"
if [ $(ps -ef | grep defunct | grep -v grep | wc -l) -ge 1 ];then
echo ""
echo "僵尸进程";
echo "--------"
ps -ef | head -n1
ps -ef | grep defunct | grep -v grep
fi
echo ""
echo "内存占用TOP10"
echo "-------------"
echo -e "PID %MEM RSS COMMAND
$(ps aux | awk '{print $2, $4, $6, $11}' | sort -k3rn | head -n 10 )"| column -t 
echo ""
echo "CPU占用TOP10"
echo "------------"
top b -n1 | head -17 | tail -11
#报表信息
report_DefunctProsess="$(ps -ef | grep defunct | grep -v grep|wc -l)"
}

function getJDKStatus(){
echo ""
echo ""
echo "############################ JDK检查 #############################"
java -version 2>/dev/null
if [ $? -eq 0 ];then
java -version 2>&1
fi
echo "JAVA_HOME=\"$JAVA_HOME\""
#报表信息
report_JDK="$(java -version 2>&1 | grep version | awk '{print $1,$3}' | tr -d '"')"
}
function getSyslogStatus(){
echo ""
echo ""
echo "############################ syslog检查 ##########################"
echo "服务状态:$(getState rsyslog)"
echo ""
echo "/etc/rsyslog.conf"
echo "-----------------"
cat /etc/rsyslog.conf 2>/dev/null | grep -v "^#" | grep -v "^\\$" | sed '/^$/d' | column -t
#报表信息
report_Syslog="$(getState rsyslog)"
}
function getFirewallStatus(){
echo ""
echo ""
echo "############################ 防火墙检查 ##########################"
#防火墙状态,策略等
if [[ $centosVersion < 7 ]];then
/etc/init.d/iptables status >/dev/null 2>&1
status=$?
if [ $status -eq 0 ];then
s="active"
elif [ $status -eq 3 ];then
s="inactive"
elif [ $status -eq 4 ];then
s="permission denied"
else
s="unknown"
fi
else
s="$(getState iptables)"
fi
echo "iptables: $s"
echo ""
echo "/etc/sysconfig/iptables"
echo "-----------------------"
cat /etc/sysconfig/iptables 2>/dev/null
#报表信息
report_Firewall="$s"
}

function getSNMPStatus(){
#SNMP服务状态,配置等
echo ""
echo ""
echo "############################ SNMP检查 ############################"
status="$(getState snmpd)"
echo "服务状态:$status"
echo ""
if [ -e /etc/snmp/snmpd.conf ];then
echo "/etc/snmp/snmpd.conf"
echo "--------------------"
cat /etc/snmp/snmpd.conf 2>/dev/null | grep -v "^#" | sed '/^$/d'
fi
#报表信息
report_SNMP="$(getState snmpd)"
}



function getState(){
if [[ $centosVersion < 7 ]];then
if [ -e "/etc/init.d/$1" ];then
if [ `/etc/init.d/$1 status 2>/dev/null | grep -E "is running|正在运行" | wc -l` -ge 1 ];then
r="active"
else
r="inactive"
fi
else
r="unknown"
fi
else
#CentOS 7+
r="$(systemctl is-active $1 2>&1)"
fi
echo "$r"
}

function getSSHStatus(){
#SSHD服务状态,配置,受信任主机等
echo ""
echo ""
echo "############################ SSH检查 #############################"
#检查受信任主机
pwdfile="$(cat /etc/passwd)"
echo "服务状态:$(getState sshd)"
Protocol_Version=$(cat /etc/ssh/sshd_config | grep Protocol | awk '{print $2}')
echo "SSH协议版本:$Protocol_Version"
echo ""
echo "信任主机"
echo "--------"
authorized=0
for user in $(echo "$pwdfile" | grep /bin/bash | awk -F: '{print $1}');do
authorize_file=$(echo "$pwdfile" | grep -w $user | awk -F: '{printf $6"/.ssh/authorized_keys"}')
authorized_host=$(cat $authorize_file 2>/dev/null | awk '{print $3}' | tr '\n' ',' | sed 's/,$//')
if [ ! -z $authorized_host ];then
echo "$user 授权 \"$authorized_host\" 无密码访问"
fi
let authorized=authorized+$(cat $authorize_file 2>/dev/null | awk '{print $3}'|wc -l)
done

echo ""
echo "是否允许ROOT远程登录"
echo "--------------------"
config=$(cat /etc/ssh/sshd_config | grep PermitRootLogin)
firstChar=${config:0:1}
if [ $firstChar == "#" ];then
PermitRootLogin="yes" #默认是允许ROOT远程登录的
else
PermitRootLogin=$(echo $config | awk '{print $2}')
fi
echo "PermitRootLogin $PermitRootLogin"

echo ""
echo "/etc/ssh/sshd_config"
echo "--------------------"
cat /etc/ssh/sshd_config | grep -v "^#" | sed '/^$/d'

#报表信息
report_SSHAuthorized="$authorized" #SSH信任主机
report_SSHDProtocolVersion="$Protocol_Version" #SSH协议版本
report_SSHDPermitRootLogin="$PermitRootLogin" #允许root远程登录
}
function getNTPStatus(){
#NTP服务状态,当前时间,配置等
echo ""
echo ""
echo "############################ NTP检查 #############################"
if [ -e /etc/ntp.conf ];then
echo "服务状态:$(getState ntpd)"
echo ""
echo "/etc/ntp.conf"
echo "-------------"
cat /etc/ntp.conf 2>/dev/null | grep -v "^#" | sed '/^$/d'
fi
#报表信息
report_NTP="$(getState ntpd)"
}


function uploadHostDailyCheckReport(){
json="{
\"DateTime\":\"$report_DateTime\",
\"Hostname\":\"$report_Hostname\",
\"OSRelease\":\"$report_OSRelease\",
\"Kernel\":\"$report_Kernel\",
\"Language\":\"$report_Language\",
\"LastReboot\":\"$report_LastReboot\",
\"Uptime\":\"$report_Uptime\",
\"CPUs\":\"$report_CPUs\",
\"CPUType\":\"$report_CPUType\",
\"Arch\":\"$report_Arch\",
\"MemTotal\":\"$report_MemTotal\",
\"MemFree\":\"$report_MemFree\",
\"MemUsedPercent\":\"$report_MemUsedPercent\",
\"DiskTotal\":\"$report_DiskTotal\",
\"DiskFree\":\"$report_DiskFree\",
\"DiskUsedPercent\":\"$report_DiskUsedPercent\",
\"InodeTotal\":\"$report_InodeTotal\",
\"InodeFree\":\"$report_InodeFree\",
\"InodeUsedPercent\":\"$report_InodeUsedPercent\",
\"IP\":\"$report_IP\",
\"MAC\":\"$report_MAC\",
\"Gateway\":\"$report_Gateway\",
\"DNS\":\"$report_DNS\",
\"Listen\":\"$report_Listen\",
\"Selinux\":\"$report_Selinux\",
\"Firewall\":\"$report_Firewall\",
\"USERs\":\"$report_USERs\",
\"USEREmptyPassword\":\"$report_USEREmptyPassword\",
\"USERTheSameUID\":\"$report_USERTheSameUID\",
\"PasswordExpiry\":\"$report_PasswordExpiry\",
\"RootUser\":\"$report_RootUser\",
\"Sudoers\":\"$report_Sudoers\",
\"SSHAuthorized\":\"$report_SSHAuthorized\",
\"SSHDProtocolVersion\":\"$report_SSHDProtocolVersion\",
\"SSHDPermitRootLogin\":\"$report_SSHDPermitRootLogin\",
\"DefunctProsess\":\"$report_DefunctProsess\",
\"SelfInitiatedService\":\"$report_SelfInitiatedService\",
\"SelfInitiatedProgram\":\"$report_SelfInitiatedProgram\",
\"RuningService\":\"$report_RuningService\",
\"Crontab\":\"$report_Crontab\",
\"Syslog\":\"$report_Syslog\",
\"SNMP\":\"$report_SNMP\",
\"NTP\":\"$report_NTP\",
\"JDK\":\"$report_JDK\"
}"
#echo "$json" 
curl -l -H "Content-type: application/json" -X POST -d "$json" "$uploadHostDailyCheckReportApi" 2>/dev/null
}

function check(){
version
getSystemStatus
getCpuStatus
getMemStatus
getDiskStatus
getNetworkStatus
getListenStatus
getProcessStatus
getServiceStatus
getAutoStartStatus
getLoginStatus
getCronStatus
getUserStatus
getPasswordStatus
getSudoersStatus
getJDKStatus
getFirewallStatus
getSSHStatus
getSyslogStatus
getSNMPStatus
getNTPStatus
getInstalledStatus
}


#执行检查并保存检查结果
check > $RESULTFILE

echo "检查结果:$RESULTFILE"

执行结果

sh check.sh

cat log/HostDailyCheck--20220209.sh

系统巡检脚本:Version 2017.08.22


############################ 系统检查 ############################
 系统:GNU/Linux
 发行版本:CentOS Stream release 8
 内核:4.18.0-348.2.1.el8_5.x86_64
 主机名:k8s-node02
 SELinux:disabled
语言/编码:zh_CN.UTF-8
 当前时间:2022-02-09 09:43:15
 最后启动:Feb 7
 运行时间:1 day


############################ CPU检查 #############################
物理CPU个数:2
逻辑CPU个数:4
每CPU核心数:2
 CPU型号:11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
 CPU架构:x86_64


############################ 内存检查 ############################
              total        used        free      shared  buff/cache   available
Mem:          4.6Gi       2.0Gi       129Mi       124Mi       2.4Gi       2.2Gi
Swap:            0B          0B          0B


############################ 磁盘检查 ############################
文件系统                    类型      |  容量  已用  可用  已用%  |  Inode  已用(I)  可用(I)  已用(I)%  |  挂载点
devtmpfs                    devtmpfs  |  2.3G  0     2.3G  0%     |  586K   396      586K     1%        |  /dev
tmpfs                       tmpfs     |  2.4G  0     2.4G  0%     |  590K   1        590K     1%        |  /dev/shm
tmpfs                       tmpfs     |  2.4G  0     2.4G  0%     |  590K   1.3K     589K     1%        |  /run
tmpfs                       tmpfs     |  2.4G  0     2.4G  0%     |  590K   17       590K     1%        |  /sys/fs/cgroup
tmpfs                       tmpfs     |  2.4G  75M   2.3G  4%     |  590K   1        590K     1%        |  /dev/shm
tmpfs                       tmpfs     |  2.4G  75M   2.3G  4%     |  590K   1.3K     589K     1%        |  /run
tmpfs                       tmpfs     |  2.4G  75M   2.3G  4%     |  590K   17       590K     1%        |  /sys/fs/cgroup
tmpfs                       tmpfs     |  2.4G  0     2.4G  0%     |  590K   1        590K     1%        |  /dev/shm
tmpfs                       tmpfs     |  2.4G  0     2.4G  0%     |  590K   1.3K     589K     1%        |  /run
tmpfs                       tmpfs     |  2.4G  0     2.4G  0%     |  590K   17       590K     1%        |  /sys/fs/cgroup
/dev/nvme0n1p3       xfs       |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /
/dev/nvme0n1p1       xfs       |  251M  179M  73M   72%    |  128K   310      128K     1%        |  /boot
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  472M  0     472M  0%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  4.0K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  32K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /run/user/0
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/fe74e85a-3f96-4efa-a336-d8fca9378c05/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   5        590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/secret-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/3014e434-212c-4fc7-9b50-210c6bfb9dd0/volumes/kubernetes.io~secret/default-token-zcb9g
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/ingress-nginx-token-94t7x
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~secret/kuboard-loki-promtail-serviceaccount-token-rhc6b
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/6b4f9337-8f79-4a09-8af4-8e16832e67f9/volumes/kubernetes.io~secret/node-exporter-token-dj6h6
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   19       590K     1%        |  /var/lib/kubelet/pods/985f2ea2-fe9c-4dc2-a213-f5e965e9b410/volumes/kubernetes.io~secret/token-service-private-key
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/etcd-certs
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/d7b007a5-d8da-4082-9a3c-8e0dfa12f8e5/volumes/kubernetes.io~secret/webhook-cert
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/bc920a7a-c7ac-4daf-a651-5e1200c14b8f/volumes/kubernetes.io~secret/calico-node-token-b25dc
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a6acb6c4002b9638720f247ef6ebd2bd4f1806afdba63a627a994e031a18bc0e/merged
tmpfs                       tmpfs     |  2.4G  128K  2.4G  1%     |  590K   2        590K     1%        |  /var/lib/kubelet/pods/624414a6-33e4-4153-a66e-bdb82c310fc5/volumes/kubernetes.io~empty-dir/shm-volume
tmpfs                       tmpfs     |  2.4G  128K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/91f3dfc0-9076-4c37-b064-d7beb667a9d8/volumes/kubernetes.io~secret/prometheus-adapter-token-6ms5l
tmpfs                       tmpfs     |  2.4G  128K  2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4c16ec4a-989b-430c-946b-24e77e51c27c/volumes/kubernetes.io~secret/nfs-client-nfs-client-provisioner-token-7n2dj
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   2        590K     1%        |  /var/lib/kubelet/pods/624414a6-33e4-4153-a66e-bdb82c310fc5/volumes/kubernetes.io~empty-dir/shm-volume
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/91f3dfc0-9076-4c37-b064-d7beb667a9d8/volumes/kubernetes.io~secret/prometheus-adapter-token-6ms5l
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4c16ec4a-989b-430c-946b-24e77e51c27c/volumes/kubernetes.io~secret/nfs-client-nfs-client-provisioner-token-7n2dj
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   2        590K     1%        |  /var/lib/kubelet/pods/624414a6-33e4-4153-a66e-bdb82c310fc5/volumes/kubernetes.io~empty-dir/shm-volume
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/91f3dfc0-9076-4c37-b064-d7beb667a9d8/volumes/kubernetes.io~secret/prometheus-adapter-token-6ms5l
tmpfs                       tmpfs     |  2.4G  12K   2.4G  1%     |  590K   9        590K     1%        |  /var/lib/kubelet/pods/4c16ec4a-989b-430c-946b-24e77e51c27c/volumes/kubernetes.io~secret/nfs-client-nfs-client-provisioner-token-7n2dj
172.23.0.243:/datc0-5ea2-4bdc-b018-1136f175745a          nfs4      |  40G   27G   13G   68%    |  20M    587K     20M      3%        |  /var/lib/kubelet/pods/4008cc84-1cc5-4301-80eb-dba4f3f1beac/volumes/kubernetes.io~nfs/pvc-67b38ac0-5ea2-4bdc-b018-1136f175745a
172.23.0.243:/datdda4-469c-8225-e7cd4717e321               nfs4      |  40G   27G   13G   68%    |  20M    587K     20M      3%        |  /var/lib/kubelet/pods/d7011f9a-4cb9-4506-838d-265ed58d2f6c/volumes/kubernetes.io~nfs/pvc-b9e70967-dda4-469c-8225-e7cd4717e321
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/2216955d1c3ebc3c8bc86f9f15016e9854e1f9596567f86d82bc8284d2c5d1f1/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4c9123006e1f5f5ba1e4c6e0d1955ce273f4138905cff3b50bdbbd5e7e0e01c3/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/efe9a5990877074aa68947e87785d56cf7efb25171cb601f5ca1795c1ba1b7a4/mounts/shm
172.23.0.243:/dat               nfs4      |  40G   27G   13G   68%    |  20M    587K     20M      3%        |  /var/lib/kubelet/pods/4c16ec4a-989b-430c-946b-24e77e51c27c/volumes/kubernetes.io~nfs/nfs-client-root
172.23.0.243:/datc-ef3a18e8-b8d2-4005-a89c-195e0abb9c3b  nfs4      |  40G   27G   13G   68%    |  20M    587K     20M      3%        |  /var/lib/kubelet/pods/624414a6-33e4-4153-a66e-bdb82c310fc5/volumes/kubernetes.io~nfs/pvc-ef3a18e8-b8d2-4005-a89c-195e0abb9c3b
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/f211e1eef3f6f83cd6ebb1b206663ba4bd7f651657559f7e40f7a1b6160a878e/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/74c2442f8b787cbb277def27bebcd74bc29f4707bf630972cacc792a53113e83/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/3621369d3c9c2c94a889f195969158b4d86b28a04557a9af32e037474a10f559/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4e5ccc96b33b407449971e0988725f48602592ee2c8282d46c58c9f8223ec3ab/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/3621369d3c9c2c94a889f195969158b4d86b28a04557a9af32e037474a10f559/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4e5ccc96b33b407449971e0988725f48602592ee2c8282d46c58c9f8223ec3ab/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/31cf0af68dc76e011516d3545e637a0aa6b03855ee01221271b42166a1490f15/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/c379876bd4ae8f7bb4d88c6155961465f5849307bcaa8cb5736cfdf7490797dc/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/81e969a41043e0c8c8387aaf15d002cb6713d4740e5802581a784785502c2b0e/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/2820b85b8526cdf72831490cb6462ff5d3a65309fca2b2dd8ecf0e336998a71c/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/ecdfac8ce2ca34fbcab0d870f042f173a6ab215a8b2af2e982e8747863334f6f/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/e1b426834694983e116e5043e1879a8889a326017f10529444b43c37011ecc2a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/2820b85b8526cdf72831490cb6462ff5d3a65309fca2b2dd8ecf0e336998a71c/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/ecdfac8ce2ca34fbcab0d870f042f173a6ab215a8b2af2e982e8747863334f6f/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/e1b426834694983e116e5043e1879a8889a326017f10529444b43c37011ecc2a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/2820b85b8526cdf72831490cb6462ff5d3a65309fca2b2dd8ecf0e336998a71c/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/ecdfac8ce2ca34fbcab0d870f042f173a6ab215a8b2af2e982e8747863334f6f/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/e1b426834694983e116e5043e1879a8889a326017f10529444b43c37011ecc2a/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/5aac8ce1cace73322c9b890f40d00b2c11782dc2007e607880e3e61a013b40aa/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/55e00715b25a29643ba6aa46524172d4ab5517bb99046a9e371c92a8d56aa9e2/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/36860992feeee281613a91547958c170971cc1c2df6224d157f97bdf1b507ff0/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/55e00715b25a29643ba6aa46524172d4ab5517bb99046a9e371c92a8d56aa9e2/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/36860992feeee281613a91547958c170971cc1c2df6224d157f97bdf1b507ff0/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/8a97a789c3ec38bfe6af87212fac103472dfe1c360a848b2325f3061f232ba1d/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/cdac30b11012e9661d225f124cef42be1e5e56d0b4ddb6577968f43b5c7109f9/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/4a5f403d885090191bc023cb12bd8dde117969621061e54642ed88d0f3b82151/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/d81aff4b6c55881e301b5de07af3a60cae2fcf7e37f147b8d4aeaa5e2de82527/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/8b76b9ccdcffc6469d77351b1034c9297d0c0551e8477006673bace7d3641054/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/d81aff4b6c55881e301b5de07af3a60cae2fcf7e37f147b8d4aeaa5e2de82527/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/8b76b9ccdcffc6469d77351b1034c9297d0c0551e8477006673bace7d3641054/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/03e8c90f297f0442645a10de1350fbad0e9909630eeba3567084b7c9cf10a6de/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/9a1af61ea1ae7c63fe97acf036e3465174f5f1d06c0a2276c5670f7578144dcd/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/eb56debd33b604b94072d4015fc668d05cff2412c5bca81c1cce403b2e9fb235/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/d88400e32aa2bcbda11ceacab980f3088d86d65cd48f616fab1e8351d134602c/merged
shm                          tmpfs     |  64M   0     64M   0%     |  590K   1        590K     1%        |  /var/lib/docker/containers/73d3130236fce47892a492a830f7af840313ef13ad74a2a19e4031f46029143f/mounts/shm
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a4cc2d8591beaa429f91abd56e7bd4697e1c0209d4c9d4de9af0fab5c22caf6a/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/a86bbdcc0c3a307a4ed226871b73150e15e60e6e20ef822f3787d426690620e5/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/75d3c235912111a0f1cb864e500409caf84039183c5e962e9861c6b74afa3366/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4b50cc2d55c9a6e5fbcc47d5e9b2ff240d1af9a3dcdddd33d82f50dc68bc93e7/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/739d0eb2dcc0995ed2350fae89abe10808218bf404ab1583d49d20d379b35f79/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/4d3bab39cc45fd9f476641782e4550a009a37a9e11bd23350730ce4b91da2393/merged
overlay                      overlay   |  40G   9.9G  30G   25%    |  20M    194K     20M      1%        |  /var/lib/docker/overlay2/0666d67894b0758faf2424a38dca7a033926f980780a99222f2a0f992cbb1312/merged

############################ 网络检查 ############################
eth0: 172.23.0.247/24 
docker0: 172.17.0.1/16 
kube-ipvs0: 192.168.0.10/32 192.168.46.36/32 192.168.253.15/32 192.168.0.1/32 192.168.209.53/32 192.168.187.134/32 192.168.190.100/32 192.168.11.192/32 192.168.186.116/32 192.168.142.144/32 192.168.187.194/32 192.168.58.111/32 192.168.173.111/32 192.168.72.166/32 192.168.79.5/32 192.168.23.118/32 192.168.40.16/32 192.168.104.206/32 192.168.236.123/32 192.168.236.113/32 192.168.146.224/32 192.168.8.51/32 192.168.199.221/32 192.168.105.214/32 192.168.67.109/32 192.168.85.13/32 192.168.83.27/32 192.168.152.120/32 192.168.166.123/32 192.168.246.147/32 192.168.140.127/32 192.168.108.237/32 192.168.31.16/32 192.168.47.130/32 192.168.186.86/32 192.168.65.255/32 192.168.171.178/32 192.168.17.146/32 192.168.101.101/32 192.168.13.62/32 

网关:172.23.0.1 
 DNS:114.114.114.114,223.5.5.5,8.8.8.8


############################ 监听检查 ############################
Netid  State   Recv-Q  Send-Q  Local              Address:Port  Peer  Address:PortProcess
udp    UNCONN  0       0       0.0.0.0:111        0.0.0.0:*           
udp    UNCONN  0       0       0.0.0.0:57460      0.0.0.0:*           
udp    UNCONN  0       0       127.0.0.1:323      0.0.0.0:*           
udp    UNCONN  0       0       127.0.0.1:968      0.0.0.0:*           
udp    UNCONN  0       0       0.0.0.0:30081      0.0.0.0:*           
udp    UNCONN  0       0       0.0.0.0:35624      0.0.0.0:*           
udp    UNCONN  0       0       0.0.0.0:20048      0.0.0.0:*           
udp    UNCONN  0       0       [::]:111           [::]:*              
udp    UNCONN  0       0       [::1]:323          [::]:*              
udp    UNCONN  0       0       [::]:38265         [::]:*              
udp    UNCONN  0       0       [::]:52771         [::]:*              
udp    UNCONN  0       0       [::]:20048         [::]:*              
tcp    LISTEN  0       128     0.0.0.0:111        0.0.0.0:*           
tcp    LISTEN  0       128     0.0.0.0:20048      0.0.0.0:*           
tcp    LISTEN  0       8       0.0.0.0:179        0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30003      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30004      0.0.0.0:*           
tcp    LISTEN  0       16384   127.0.0.1:34645    0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30006      0.0.0.0:*           
tcp    LISTEN  0       128     0.0.0.0:22         0.0.0.0:*           
tcp    LISTEN  0       64      0.0.0.0:42615      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:31001      0.0.0.0:*           
tcp    LISTEN  0       128     0.0.0.0:50333      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30015      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30080      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:32705      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30081      0.0.0.0:*           
tcp    LISTEN  0       64      0.0.0.0:2049       0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30021      0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:30022      0.0.0.0:*           
tcp    LISTEN  0       16384   127.0.0.1:10248    0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:32489      0.0.0.0:*           
tcp    LISTEN  0       16384   127.0.0.1:10249    0.0.0.0:*           
tcp    LISTEN  0       16384   127.0.0.1:9099     0.0.0.0:*           
tcp    LISTEN  0       16384   172.23.0.247:9100  0.0.0.0:*           
tcp    LISTEN  0       16384   127.0.0.1:9100     0.0.0.0:*           
tcp    LISTEN  0       16384   0.0.0.0:31150      0.0.0.0:*           
tcp    LISTEN  0       16384   *:10255            *:*                 
tcp    LISTEN  0       64      [::]:42511         [::]:*              
tcp    LISTEN  0       128     [::]:111           [::]:*              
tcp    LISTEN  0       16384   *:10256            *:*                 
tcp    LISTEN  0       128     [::]:20048         [::]:*              
tcp    LISTEN  0       128     [::]:22            [::]:*              
tcp    LISTEN  0       64      [::]:2049          [::]:*              
tcp    LISTEN  0       128     [::]:50441         [::]:*              
tcp    LISTEN  0       16384   *:10250            *:*                 


############################ 进程检查 ############################

内存占用TOP10
-------------
PID   %MEM  RSS     COMMAND
6341  5.5   269156  java
5626  3.5   173344  /usr/bin/loki
2059  2.5   122544  /usr/local/bin/kubelet
1396  2.5   121844  /usr/bin/dockerd
5341  2.0   100932  /harbor/harbor_core
4172  1.9   92924   /usr/bin/promtail
5742  1.5   76284   calico-node
4928  1.4   68772   /adapter
5739  1.3   63556   calico-node
5746  1.3   63516   calico-node

CPU占用TOP10
------------
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
      1 root      20   0   91296  11312   8084 S   0.0   0.2   4:04.32 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.23 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq
     10 root      20   0       0      0      0 S   0.0   0.0   0:28.56 ksoftirqd/0
     11 root      20   0       0      0      0 I   0.0   0.0   1:24.99 rcu_sched
     12 root      rt   0       0      0      0 S   0.0   0.0   0:00.64 migration/0
     13 root      rt   0       0      0      0 S   0.0   0.0   0:00.06 watchdog/0


############################ 服务检查 ############################

服务配置
--------
auditd.service                          enabled
autovt@.service                         enabled
chronyd.service                         enabled
crond.service                           enabled
dbus-org.freedesktop.timedate1.service  enabled
docker.service                          enabled
getty@.service                          enabled
import-state.service                    enabled
irqbalance.service                      enabled
kdump.service                           enabled
kube-proxy.service                      enabled
kubelet.service                         enabled
loadmodules.service                     enabled
lvm2-monitor.service                    enabled
microcode.service                       enabled
nfs-server.service                      enabled
nis-domainname.service                  enabled
rpcbind.service                         enabled
rsyslog.service                         enabled
selinux-autorelabel-mark.service        enabled
sshd.service                            enabled
sssd.service                            enabled
syslog.service                          enabled
sysstat.service                         enabled
systemd-modules-load.service            enabled
timedatex.service                       enabled
tuned.service                           enabled
vgauthd.service                         enabled
vmtoolsd.service                        enabled

正在运行的服务
--------------
auditd.service           loaded active running Security Auditing Service                    
chronyd.service          loaded active running NTP client/server                            
containerd.service       loaded active running containerd container runtime                 
crond.service            loaded active running Command Scheduler                            
dbus.service             loaded active running D-Bus System Message Bus                     
docker.service           loaded active running Docker Application Container Engine          
getty@tty1.service       loaded active running Getty on tty1                                
gssproxy.service         loaded active running GSSAPI Proxy Daemon                          
irqbalance.service       loaded active running irqbalance daemon                            
kube-proxy.service       loaded active running Kubernetes Kube Proxy                        
kubelet.service          loaded active running Kubernetes Kubelet                           
nfs-idmapd.service       loaded active running NFSv4 ID-name mapping service                
nfs-mountd.service       loaded active running NFS Mount Daemon                             
nfsdcld.service          loaded active running NFSv4 Client Tracking Daemon                 
polkit.service           loaded active running Authorization Manager                        
rpc-statd.service        loaded active running NFS status monitor for NFSv2/3 locking.      
rpcbind.service          loaded active running RPC Bind                                     
rsyslog.service          loaded active running System Logging Service                       
sshd.service             loaded active running OpenSSH server daemon                        
sssd.service             loaded active running System Security Services Daemon              
systemd-journald.service loaded active running Journal Service                              
systemd-logind.service   loaded active running Login Service                                
systemd-udevd.service    loaded active running udev Kernel Device Manager                   
tuned.service            loaded active running Dynamic System Tuning Daemon                 
user@0.service           loaded active running User Manager for UID 0                       
vgauthd.service          loaded active running VGAuth Service for open-vm-tools             
vmtoolsd.service         loaded active running Service for virtual machines hosted on VMware


############################ 自启动检查 ##########################
touch /var/lock/subsys/local


############################ 登录检查 ############################
root     pts/1        172.23.0.241     Tue Feb  8 16:37 - 16:37  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:37 - 16:37  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:36 - 16:36  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:36 - 16:36  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:36 - 16:36  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:36 - 16:36  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:35 - 16:35  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:35 - 16:35  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:34 - 16:34  (00:00)
root     pts/1        172.23.0.241     Tue Feb  8 16:34 - 16:34  (00:00)


############################ 计划任务检查 ########################
-rw-r--r--.  1  root  root  128  10月  16  13:07  /etc/cron.d/0hourly
-rwxr-xr-x.  1  root  root  189  1月   4   2018   /etc/cron.daily/logrotate
-rw-r--r--.  1  root  root  0    10月  16  13:07  /etc/cron.deny
-rwxr-xr-x.  1  root  root  575  10月  16  13:07  /etc/cron.hourly/0anacron
-rw-r--r--.  1  root  root  451  1月   12  2021   /etc/crontab


############################ 用户检查 ############################
/etc/passwd 最后修改时间: (错误的参数:getHowLongAgo() 
0 天 9 小时前)

特权用户
--------
root

用户列表
--------
用户名  UID  GID  HOME   SHELL      最后一次登录
root    0    0    /root  /bin/bash  2022-02-08_16:37:00

空密码用户
----------

相同ID的用户
------------


############################ 密码检查 ############################

密码过期检查
------------
root            0天后过期

密码策略检查
------------
PASS_MAX_DAYS	99999
PASS_MIN_DAYS	0
PASS_MIN_LEN	5
PASS_WARN_AGE	7


############################ Sudoers检查 #########################
root	ALL=(ALL) 	ALL
%wheel	ALL=(ALL)	ALL



############################ JDK检查 #############################
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
JAVA_HOME=""


############################ 防火墙检查 ##########################
iptables: inactive

/etc/sysconfig/iptables
-----------------------


############################ SSH检查 #############################
服务状态:active
SSH协议版本:

信任主机
--------

是否允许ROOT远程登录
--------------------
PermitRootLogin yes

/etc/ssh/sshd_config
--------------------
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
SyslogFacility AUTHPRIV
PermitRootLogin yes
AuthorizedKeysFile	.ssh/authorized_keys
PasswordAuthentication yes
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS
Subsystem	sftp	/usr/libexec/openssh/sftp-server


############################ syslog检查 ##########################
服务状态:active

/etc/rsyslog.conf
-----------------
module(load="imuxsock"                    #                                          provides  support  for        local      system     logging  (e.g.  via      logger  command)
SysSock.Use="off")                        #                                          Turn      off      message    reception  via        local    log    socket;          
#                                         local                                      messages  are      retrieved  through    imjournal  now.                             
module(load="imjournal"                   #                                          provides  access   to         the        systemd    journal                          
StateFile="imjournal.state")              #                                          File      to       store      the        position   in       the    journal          
global(workDirectory="/var/lib/rsyslog")                                                                                                                                  
module(load="builtin:omfile"              Template="RSYSLOG_TraditionalFileFormat")                                                                                       
include(file="/etc/rsyslog.d/*.conf"      mode="optional")                                                                                                                
*.info;mail.none;authpriv.none;cron.none  /var/log/messages                                                                                                               
authpriv.*                                /var/log/secure                                                                                                                 
mail.*                                    -/var/log/maillog                                                                                                               
cron.*                                    /var/log/cron                                                                                                                   
*.emerg                                   :omusrmsg:*                                                                                                                     
uucp,news.crit                            /var/log/spooler                                                                                                                
local7.*                                  /var/log/boot.log                                                                                                               


############################ SNMP检查 ############################
服务状态:inactive



############################ NTP检查 #############################


############################ 软件检查 ############################
ansible-2.9.27-1.el8.noarch            2022年02月08日  星期二  15时50分04秒
sshpass-1.09-4.el8.x86_64              2022年02月08日  星期二  15时50分00秒
python3-pytz-2017.2-9.el8.noarch       2022年02月08日  星期二  15时50分00秒
python3-pynacl-1.3.0-5.el8.x86_64      2022年02月08日  星期二  15时50分00秒
python3-pyasn1-0.3.7-6.el8.noarch      2022年02月08日  星期二  15时50分00秒
python3-paramiko-2.4.3-1.el8.noarch    2022年02月08日  星期二  15时50分00秒
python3-markupsafe-0.23-19.el8.x86_64  2022年02月08日  星期二  15时50分00秒
python3-jmespath-0.9.0-11.el8.noarch   2022年02月08日  星期二  15时50分00秒
python3-jinja2-2.10.1-3.el8.noarch     2022年02月08日  星期二  15时50分00秒
python3-babel-2.5.1-7.el8.noarch       2022年02月08日  星期二  15时50分00秒
posted @ 2022-06-09 18:34  秋风お亦冷  阅读(148)  评论(0编辑  收藏  举报