⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.120
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
xfsprogs
/
View File Name :
xfs_scrub_fail
#!/bin/bash # Email logs of failed xfs_scrub unit runs mailer=/usr/sbin/sendmail recipient="$1" test -z "${recipient}" && exit 0 mntpoint="$2" test -z "${mntpoint}" && exit 0 hostname="$(hostname -f 2>/dev/null)" test -z "${hostname}" && hostname="${HOSTNAME}" if [ ! -x "${mailer}" ]; then echo "${mailer}: Mailer program not found." exit 1 fi (cat << ENDL To: $1 From: <xfs_scrub@${hostname}> Subject: xfs_scrub failure on ${mntpoint} So sorry, the automatic xfs_scrub of ${mntpoint} on ${hostname} failed. A log of what happened follows: ENDL systemctl status --full --lines 4294967295 "xfs_scrub@${mntpoint}") | "${mailer}" -t -i