Date: Wed, 22 Feb 2017 15:28:46 -0800 From: Doug Hardie <doug@mail.sermon-archive.info> To: Matthew Seaman <matthew@freebsd.org> Cc: freebsd-questions@freebsd.org Subject: Re: Daily and Weekly Periodic Scripts Message-ID: <0DB0B402-4F0E-444D-A050-58E87687A7D5@mail.sermon-archive.info> In-Reply-To: <3483b77e-0836-fdf8-fd7e-32510de3c40b@freebsd.org> References: <18376E93-56AB-4D07-AC78-C66DE4ABFB11@lafn.org> <58AD5A9A.7070407@fjl.co.uk> <3483b77e-0836-fdf8-fd7e-32510de3c40b@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 22 February 2017, at 01:53, Matthew Seaman <matthew@freebsd.org> = wrote: >=20 > 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 >=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. >=20 > 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. I investigated teaching the scripts to output JSON, but that is a big = project. However, even when that is done, I still would need something = to parse it to find the problems. Thats not trivial either. I like the idea of moving those checks over to nagios which I am using = on all the machines anyway. I decided to start with the daily netstat = numbers. However, there are some things I don't understand about them = and a problem with disappearing addresses that I will send separately. = Thanks to all.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0DB0B402-4F0E-444D-A050-58E87687A7D5>