diff --git a/etc/periodic/security/800.loginfail b/etc/periodic/security/800.loginfail index 5d61bb78ee74..6ebe228056e1 100755 --- a/etc/periodic/security/800.loginfail +++ b/etc/periodic/security/800.loginfail @@ -53,7 +53,7 @@ case "$daily_status_security_loginfail_enable" in [Yy][Ee][Ss]) echo "" echo "${host} login failures:" - n=$(catmsgs | grep -ia "^$yesterday.*[fF]ail" | + n=$(catmsgs | grep -ia "^$yesterday.*fail" | tee /dev/stderr | wc -l) [ $n -gt 0 ] && rc=1 || rc=0;; *) rc=0;;