Skip to content

Commit

Permalink
Update 10-sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Oct 16, 2019
1 parent 1a2b1f3 commit d204538
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion menu/motd/10-sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ gcrypt=$(tail -n 1 /var/plexguide/gdcrypt.log)

wisword=$(/usr/games/fortune -as | sed "s/^/ /")

##security part
failledssh=$(cat /var/log/auth.log | grep -i "fail" | wc -l)
failledsshacc=$(head -n1 /var/log/auth.log | awk '{print $1, $2 ,$3 }')

W="\e[0;39m"
G="\e[1;32m"

Expand All @@ -59,6 +63,10 @@ $W Memory.........: $G$USED$W used , $G$FREE$W free, $G$TOTAL$W total $W
$W Network........: $G$IP_ADDRESS$W
$W Network-Card...: $G$NTCARD
$W Fail2ban
$W SSH.fails......: $G$failledssh
$W SSH.fails.since: $G$failledsshacc
$W Service Status
$W Docker..........: $W$DOCKER , v$G$DOCKER2
$W unionfs.........: $W$UNIONFS
Expand All @@ -75,4 +83,4 @@ $W TDrive | crypted : $G$tcrypt
$W %++++++++++ WISE WORD OF THE DAY ++++++++++%
$W $W$wisword
$W %++++++++++ WISE WORD OF THE DAY ++++++++++%"
$W %++++++++++ WISE WORD OF THE DAY ++++++++++%"

0 comments on commit d204538

Please sign in to comment.