Date: Mon, 3 Nov 1997 03:37:05 +0200 (EET) From: Heikki Suonsivu <hsu@mail.clinet.fi> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4924: /etc/daily should use full hostname Message-ID: <199711030137.DAA03090@katiska.clinet.fi> Resent-Message-ID: <199711030140.RAA25442@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4924 >Category: bin >Synopsis: /etc/daily should use full hostname >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 2 17:40:01 PST 1997 >Last-Modified: >Originator: Heikki Suonsivu >Organization: Clinet, Espoo, Finland >Release: FreeBSD 2.2-STABLE i386 >Environment: FreeBSD (apparently any version?) >Description: /etc/daily sends daily mails with subject "$host daily run output", and $host comes from host=`hostname -s` This gives only one component of the host name. In large organisations there may be conflicting names like foo.department-a.com foo.department-b.com and thus differentiating between these two requires looking at mail headers. >How-To-Repeat: Manage network of large organization for some time. (Another matter is that FreeBSD daily/security scripts are horribly too noisy, most of them announcing no useful information, ie. nothing has happened. Don't tell me that it is intentional, noone can keep manually track of whether one of the 70 machines failed to send its spam tonight. Anyone have tools to summarize daily mails already ?) >Fix: I think most people have hostname set to full name, so using -s for hostname could be removed. *** etc/daily.orig Mon Nov 3 03:27:45 1997 --- etc/daily Mon Nov 3 03:28:02 1997 *************** *** 3,9 **** # @(#)daily 5.12 (Berkeley) 5/24/91 # PATH=/bin:/usr/bin:/sbin:/usr/sbin ! host=`hostname -s` echo "Subject: $host daily run output" bak=/var/backups --- 3,9 ---- # @(#)daily 5.12 (Berkeley) 5/24/91 # PATH=/bin:/usr/bin:/sbin:/usr/sbin ! host=`hostname` echo "Subject: $host daily run output" bak=/var/backups >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711030137.DAA03090>