ignore usb-storage in process state check alerts

This commit is contained in:
olli 2022-10-12 20:11:05 +02:00
parent c0d12107b0
commit 5413e7a9a2

View File

@ -192,7 +192,7 @@
ps aufx | grep $dzpid | grep -v grep >${g_tmp}/proc-check-$dzpid.notify
pstree $dzpid >>${g_tmp}/proc-check-$dzpid.notify
cat ${g_tmp}/proc-check/$dzpid >>${g_tmp}/proc-check-$dzpid.notify
g_echo_error "$(cat ${g_tmp}/proc-check-$dzpid.notify)"
egrep -q "usb-storage" ${g_tmp}/proc-check-$dzpid.notify || g_echo_error "$(cat ${g_tmp}/proc-check-$dzpid.notify)"
fi
else
date >${g_tmp}/proc-check/$dzpid