Files
MCO/check.sh
2024-02-05 16:03:28 +01:00

43 lines
377 B
Bash

#! /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