From owner-freebsd-questions@freebsd.org Wed Feb 22 09:53:19 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB849CE8D72 for ; Wed, 22 Feb 2017 09:53:19 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C9C5B68 for ; Wed, 22 Feb 2017 09:53:19 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id DA1DE870A for ; Wed, 22 Feb 2017 09:53:15 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/DA1DE870A; dkim=none; dkim-atps=neutral Subject: Re: Daily and Weekly Periodic Scripts To: freebsd-questions@freebsd.org References: <18376E93-56AB-4D07-AC78-C66DE4ABFB11@lafn.org> <58AD5A9A.7070407@fjl.co.uk> From: Matthew Seaman Message-ID: <3483b77e-0836-fdf8-fd7e-32510de3c40b@freebsd.org> Date: Wed, 22 Feb 2017 09:53:09 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <58AD5A9A.7070407@fjl.co.uk> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IOB7UdVxfWtiAsClwR38dnUjLUSGVi1qU" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,RCVD_IN_RP_RNBL, RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 09:53:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IOB7UdVxfWtiAsClwR38dnUjLUSGVi1qU Content-Type: multipart/mixed; boundary="2ot76xANUav9tOP8w6QBJjsUplqNxp3CQ"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <3483b77e-0836-fdf8-fd7e-32510de3c40b@freebsd.org> Subject: Re: Daily and Weekly Periodic Scripts References: <18376E93-56AB-4D07-AC78-C66DE4ABFB11@lafn.org> <58AD5A9A.7070407@fjl.co.uk> In-Reply-To: <58AD5A9A.7070407@fjl.co.uk> --2ot76xANUav9tOP8w6QBJjsUplqNxp3CQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/22/17 09:32, Frank Leonhardt wrote: > For what it's worth, in a similar situation I simply have a cron > triggered script that greps certain files (or the output of certain > utilities) and fires off an email if it finds/doesn't find certain > things. Very simple and flexible, and it keeps nagging if I don't do > anything about it. I keep thinking of doing something more gala, but > over many years I've found this actually works for me. >=20 If anyone is looking for a project, teaching hte daily / weekly /monthly scripts to produce output in a machine parseable form, like JSON or UCL suitable for injecting into a system like logstash would be pretty useful= =2E As it is, the nightly email generated by FreeBSD don't scale well beyond a few dozen machines. If you're dealing with an installation of that size, you'ld be better off redirecting hte output to a log file on the server and then setting up appropriate monitoring to tell you about any problems as they occur -- eg. through nagios or icinga or the like. Cheers, Matthew --2ot76xANUav9tOP8w6QBJjsUplqNxp3CQ-- --IOB7UdVxfWtiAsClwR38dnUjLUSGVi1qU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlitX4UACgkQAFE/EOCp 5OdyJw//f2+EgRCPtq+VsjPJRZegY9c+l7gEWtotXTf42AuNc8FFO6ViKnLymUeB 5lKmmyFqta4XP8JEV82tqWfXAtxs9TmmSBrpDJXk0Qs62g3EnaJif6qSiw3zz6OY mS2Cbwm6pK1bIx2WwW8NrBn+RzNNrkht/Qws0YV+H0EtdUyDrBeVtHlSpCphkuLE QSEnJm6n5Umo1HBOTgZXCLiZGp75nhcDemZSwYpI5wrabH8U26hoDqe9nYGn5Unh MCTIFPE4i13GqmzqpXQU+j6y4jWHUJhqrtGXshKcsRPBQx7yZo0pg1ov/JDDRTLV 7pWr0iyJcutSu6EXqRQbkwT6zT9wmYWbgUWQ5Q3iAb9zckGq1Ff8MVoJST4W1F02 YSzX2kSxR9P+Z5B1nUDRdxmzCfZVY2lEZhXOkaNGTXtzl76iyLJJ0n6c4KvHvLs4 jigf/b+PwsOsomrji/5vMg7fMtZ14qSj7CAuVIzj16sWDFZH/P6L1v+83fLEhR3a UsdsC+JNLT48PllPmu6UsB3Ck3+OTP6QnVQ6cZoUO3xUc44QG1W0upB6sIOnjXO4 CFO0CxsSc5yjs/4M+OjuPXfWQVRv1lISiB5PBBcy7df8y4Lmymbf3jfYehEt8e3Y Fq6u4BG7/GmtUdon6O/pqvoUvSv9bT8gL08Rc8b2gm41Zxx0rNk= =vft8 -----END PGP SIGNATURE----- --IOB7UdVxfWtiAsClwR38dnUjLUSGVi1qU--