mise en forme

This commit is contained in:
2024-02-07 13:54:22 +01:00
parent c05c9946d6
commit b40c0d4231

View File

@@ -1,42 +1,42 @@
#! /bin/bash #! /bin/bash
# #
set -e -u set -u
set -o pipefail set -o pipefail
exec 1> $(date -I)_$(hostname).report exec 1> $(date -I)_$(hostname).report
echo $(hostname) echo -ne "\n\n########## $(hostname) ##########\n"
echo $(date -I) echo -ne "\n\n########## RH UPDATES ########## \n"
test -x /usr/bin/yum && yum --security check-update
echo UPDATES: echo -ne "\n\n########## Debian UPDATES ########## \n"
test -x /usr/bin/apt-get && /usr/bin/apt-get --just-print upgrade | grep "^Inst.*-security.*" | cut -d ' ' -f 2 | sort
dnf --security check-update echo -ne "\n\n########## CERTIFICATES ##########\n"
echo CERTIFICATES: test -x /usr/bin/certbot && /usr/bin/certbot certificates
certbot certificates echo -ne "\n\n########## UPTIME ##########\n"
echo UPTIME:
uptime uptime
echo SERVICE STATUS echo -ne "\n\n########## SERVICE STATUS ##########\n"
systemctl --failed systemctl --failed
echo BACKUP LIST echo -ne "\n\n########## BACKUP LIST ##########\n"
burp -a l test -x /usr/sbin/burp && /usr/sbin/burp -a l
echo LAST USER echo -ne "\n\n########## LAST USER ##########\n"
last | head last | head
echo LOG Warnings: echo -ne "\n\########## LOG Warnings ##########\n"
journalctl --priority warning journalctl --priority warning --no-pager --since "1 month ago"