| Summary: | /etc/periodic/daily/440.status-mailq does not produce output when daily_status_mailq_shorten="YES" is specified | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | lambert <lambert> | ||||||
| Component: | misc | Assignee: | Brian Somers <brian> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Only Me | ||||||||
| Priority: | Normal | ||||||||
| Version: | 4.2-RELEASE | ||||||||
| Hardware: | Any | ||||||||
| OS: | Any | ||||||||
| Attachments: |
|
||||||||
|
Description
lambert
2000-12-22 17:30:01 UTC
On Fri, 22 Dec 2000 lambert@ssabsd.csw.net wrote: > *** periodic.conf.dist Fri Dec 15 12:47:52 2000 > --- periodic.conf Fri Dec 15 12:49:45 2000 > *************** > *** 106,111 **** > --- 106,114 ---- > # 440.status-mailq > daily_status_mailq_enable="YES" # Check mail status > daily_status_mailq_shorten="NO" # Shorten output > + daily_mailq_shorten_min=1 # Number of uniq addrs > + # in output must be > > + # this number > > # 450.status-security > daily_status_security_enable="YES" # Security check I like the idea of $daily_mailq_shorten_min being configurable, but the default should be 0, ie show all mailq entries, and maybe its name should be changed to something more conformist..? -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ On Fri, Dec 22, 2000 at 06:50:02PM -0800, Andy Farkas wrote:
> On Fri, 22 Dec 2000 lambert@ssabsd.csw.net wrote:
>
> > *** periodic.conf.dist Fri Dec 15 12:47:52 2000
> > --- periodic.conf Fri Dec 15 12:49:45 2000
> > ***************
> > *** 106,111 ****
> > --- 106,114 ----
> > # 440.status-mailq
> > daily_status_mailq_enable="YES" # Check mail status
> > daily_status_mailq_shorten="NO" # Shorten output
> > + daily_mailq_shorten_min=1 # Number of uniq addrs
> > + # in output must be >
> > + # this number
> >
> > # 450.status-security
> > daily_status_security_enable="YES" # Security check
>
> I like the idea of $daily_mailq_shorten_min being configurable, but the
> default should be 0, ie show all mailq entries, and maybe its name should
> be changed to something more conformist..?
The 'show all mailq entries' is already controlled by the above setting -
$daily_status_mailq_shorten. The _min setting only takes effect when
the other one is set to "YES", and then, 1 is the *current* default,
so this patch is not changing anything in the current setup.
G'luck,
Peter
--
I am the meaning of this sentence.
Ok, so this still hasn't seen action. I've left the job were it was
an issue for me and gotten a new job where it is again an issue.
Here is an updated patch against the current -STABLE version of
/etc/periodic/daily/444.status-mailq. I've left out the additional
control over how many entries have to be listed before a line is
printed as that may have been what kept the last patch from
being committed.
--- etc/periodic/daily/440.status-mailq.orig Mon May 6 16:45:05 2002
+++ etc/periodic/daily/440.status-mailq Mon May 6 16:47:16 2002
@@ -29,7 +29,8 @@
sort |
uniq -c |
sort -nr |
- awk '$1 > 1 {print $1, $2}');;
+ awk '$1 > 1 {print $1, $2}');
+ echo "$rc";;
*)
mailq;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
@@ -49,7 +50,8 @@
sort |
uniq -c |
sort -nr |
- awk '$1 > 1 {print $1, $2}');;
+ awk '$1 > 1 {print $1, $2}');
+ echo "$rc";;
*)
mailq -Ac;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
--
Scott Lambert KC5MLE
System Administrator scott@inch.com
Responsible Changed From-To: freebsd-bugs->brian Periodic script patch for Brian. State Changed From-To: open->closed Committed to -current. I'll MFC after 3 days if re@ ok it. |