ignore usb-storage in process state check alerts
This commit is contained in:
parent
c0d12107b0
commit
5413e7a9a2
@ -192,7 +192,7 @@
|
|||||||
ps aufx | grep $dzpid | grep -v grep >${g_tmp}/proc-check-$dzpid.notify
|
ps aufx | grep $dzpid | grep -v grep >${g_tmp}/proc-check-$dzpid.notify
|
||||||
pstree $dzpid >>${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
|
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
|
fi
|
||||||
else
|
else
|
||||||
date >${g_tmp}/proc-check/$dzpid
|
date >${g_tmp}/proc-check/$dzpid
|
||||||
|
Loading…
Reference in New Issue
Block a user