From owner-freebsd-questions@freebsd.org Fri Oct 2 11:00:03 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 630BB42998F for ; Fri, 2 Oct 2020 11:00:03 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C2n822qs5z3gGQ for ; Fri, 2 Oct 2020 11:00:01 +0000 (UTC) (envelope-from kremels@kreme.com) From: "@lbutlr" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Monitor an app Message-Id: <65C3BE67-3389-4F8E-9975-7EC0714FB056@kreme.com> Date: Fri, 2 Oct 2020 04:59:59 -0600 To: FreeBSD X-Mailer: Apple Mail (2.3654.0.3.2.52) X-Spam-Status: No, score=3.1 required=5.0 tests=BAYES_00,HELO_MISC_IP, KHOP_HELO_FCRDNS,NO_FM_NAME_IP_HOSTN,RCVD_IN_PBL,RCVD_IN_SORBS_DUL, RDNS_DYNAMIC autolearn=no autolearn_force=no version=3.4.4 X-Spam-Report: * 3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL * [73.14.161.160 listed in zen.spamhaus.org] * 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP * address * [73.14.161.160 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.0 RDNS_DYNAMIC Delivered to internal network by host with * dynamic-looking rDNS * 0.3 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS * 0.1 HELO_MISC_IP Looking for more Dynamic IP Relays * 0.3 NO_FM_NAME_IP_HOSTN No From name + hostname using IP address X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.covisp.net X-Rspamd-Queue-Id: 4C2n822qs5z3gGQ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [-0.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.982]; FROM_HAS_DN(0.00)[]; MISSING_MIME_VERSION(2.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.961]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.57)[-0.574]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[65.121.55.42:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2020 11:00:03 -0000 Are there any tools that monitor apps or services and do sane things to = make sure that the series are running? Obviously, I can write a simple script that says something like "if = service status doesn't have a PID, then =E2=80=A6" but that's = simplistic and I don't want something that is simply going to restart a = failed service over and over every time it crashes. (But once or twice = when it crashes is good, with an escalation to maybe restart a different = series and a fall back from that to restart the machine=E2=80=A6 but = again, not restarting the machine a few seconds after boot because it = can't start the service.) I am not looking for something that says "hey, email is not working" (I = already have that but more subtly like "Hey, dovecot isn't running" or = "MySQL isn't running". Googling leads me to external monitoring of forward facing services = based on port scanning, I'm looking for something local to the machine. --=20 IT'S BECAUSE OF THE UNCERTAINTY PRINCIPLE. 'What's that?' I'M NOT SURE. --The Fifth Elephant