fast check script
This commit is contained in:
42
check.sh
Normal file
42
check.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
#! /bin/bash
|
||||
#
|
||||
set -e -u
|
||||
set -o pipefail
|
||||
|
||||
|
||||
exec 1> $(date -I)_$(hostname).report
|
||||
|
||||
echo $(hostname)
|
||||
|
||||
echo $(date -I)
|
||||
|
||||
echo UPDATES:
|
||||
|
||||
dnf --security check-update
|
||||
|
||||
echo CERTIFICATES:
|
||||
|
||||
certbot certificates
|
||||
|
||||
echo UPTIME:
|
||||
|
||||
uptime
|
||||
|
||||
echo SERVICE STATUS
|
||||
|
||||
systemctl --failed
|
||||
|
||||
|
||||
echo BACKUP LIST
|
||||
|
||||
burp -a l
|
||||
|
||||
|
||||
echo LAST USER
|
||||
|
||||
last | head
|
||||
|
||||
echo LOG Warnings:
|
||||
|
||||
journalctl --priority warning
|
||||
|
||||
Reference in New Issue
Block a user