fast check script

This commit is contained in:
2024-02-05 16:03:28 +01:00
parent 09e382464b
commit c05c9946d6

42
check.sh Normal file
View 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