From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 795A51396D9 for ; Mon, 16 Oct 2017 15:41:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0534C2BC0F9; Mon, 16 Oct 2017 15:41:43 +0000 (UTC) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 742032BC0F4 for ; Mon, 16 Oct 2017 15:41:42 +0000 (UTC) Received: by mail-wm0-x230.google.com with SMTP id m72so4693234wmc.1 for ; Mon, 16 Oct 2017 08:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:reply-to:subject:date:message-id:in-reply-to:references :mime-version; bh=tS/88LAPx7L2tBGfzbwqLTX+wD3xw0soeq/qbe0/Aoc=; b=KUuWNBtTYj5ckxE0rGJCYuWPmKNbMyjMsBNOv3XNkGFjNZ0qVJbRyUmz5cfdpF/E3A qa1VQU6Mtdv9z19gFr+vM+VCNTe81vngiNHpI7j52TWOz08ikhXKx9UC3Cgz1Fl9poCB a02F/RDKyYnqXjNNiIc5J+JGRgy0OORjVEzEmoVezqD2Qv+FncXt9RgB0DnLMHNqf2us P8QdtGv6GOmP/E2OPuQY+KuiVsRpToz0XGWXcNk2buR0tFaoalh4oRfStdby5cfRQ5GE ej9RIhbJJc27ReUH3AXAoc3C4WygggNp6Vc7aAGoJiyisGNoE+294o3xKtA7WUtMHTUW KSFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :in-reply-to:references:mime-version; bh=tS/88LAPx7L2tBGfzbwqLTX+wD3xw0soeq/qbe0/Aoc=; b=gNu3Lqcz2LRKK/AmGjg/kSN4s+jENHQ0sOPWtOCtD4o6ICJ3wd1SxUN4KpbBE1nP9Y XhltEngdVbjQmLunMbLncdDdx2hmAHMolz7m8W8rfVprikCyOGs9NIpzL/L1J//pT346 P5hQZDr835KrTOrYbcDshj1iug8yZ+EGT/dNgKFT+niFodmXH/GzqbAEnrMhaw390euZ fLwURkEq0ZHBVpNHY/245xK4sDbRTmT7MVwHtqr0ZDHX8jcOMvq16rEYjA/NyvuS2wjb 8mfE4LgwacRZU3Qsme4h23cfgm69nb7JPtIVpB0XMAK/b6HJKnjJkOLq6VzH+qYE8eoj rbMg== X-Gm-Message-State: AMCzsaWeGcrIxlVYGEura8BeMuF0V50yBPmtGtUFm+nhj79qjzsWHkW7 xVlahF//Zc+R0+13jg/ZvSNXPA== X-Google-Smtp-Source: ABhQp+SU3fepQnPG9LvAxARpwRJCrfW8Bc1laufeF5A2zzzDjBlJ4knKOgPhky6SllUdCLfRfMo18w== X-Received: by 10.28.193.76 with SMTP id r73mr1199763wmf.18.1508168500716; Mon, 16 Oct 2017 08:41:40 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id f27sm14805585wrf.63.2017.10.16.08.41.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 08:41:39 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: monit and friends. Date: Mon, 16 Oct 2017 16:41:42 +0100 Message-ID: <6623947.tej94tQTD2@dell_xps> In-Reply-To: References: <96762772-dd49-7464-da0c-c0a878a6e7de@gmail.com> <20171016150852.u6w6ekna7la4pxhb@matica.foolinux.mooo.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4607247.hKxQ4YaMsD"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: eebcd14d-f9d2-43b7-aea8-b7e17d864011 X-Archives-Hash: 78e78980fdbfa50fc5f39e6d9ac14d2d --nextPart4607247.hKxQ4YaMsD Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" On Monday, 16 October 2017 16:12:53 BST Alan McKinnon wrote: > On 16/10/2017 17:08, Ian Zimmerman wrote: > > On 2017-10-16 14:11, Alan McKinnon wrote: > >> My needs here are pretty simple: > >> local watchdog that checks if a program is running and restart it if > >> not. If that fails 3 times or so, alert me. > >> Maybe a few file/dir/fifo monitors as well. Not much else. > >> > >> I don't need any of monit's graphing features or M/monit, I have other > >> tools for that. And mostly don't even need it's http API either. > > > > supervisor (aka supervisord) > > > > http://supervisord.org/ > > > > python based, not sure if that's okay with you > > I forgot about supervisord. Like monit, it runs everywhere and might be > easier for the team-mates to understand and work with. > > Python is not a problem, all these hosts are ansible-managed anyway, so > they all have to run python-2.7 > > Good find, thanks! I've used Nagios in the past, but have not kept up with its development and the many plugins it provides. It could do any of the above tasks and much more. It can run scripts (perl, or bash) via daemons (nrpe) on the remote systems to restart applications, et al. The Nagios server possessed the ability to set up quite intelligent monitoring and alert hierarchies with multilayered comms structures to make sure you are not woken up at 2 a.m. by your boss, just because a ping failed to his home NAS. I also found the logs which can be also stored on SQL quite useful both in troubleshooting problems and in producing reports. It can monitor network connectivity, remote OS parameters and applications. Writing your own plugin/module to monitor quite specialised use cases is not particularly difficult either. I expect you may find Nagios more complicated to set up than monit, at least initially, but if you don't have the luxury of time to invest on setting up Nagios monit may be a better fit. I don't have in depth experience with other monitoring software to comment, so something else may suit better your specific needs. -- Regards, Mick --nextPart4607247.hKxQ4YaMsD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAlnk0zYACgkQ6WnU8jC9 5ddKDBAAhBC9DtLtBAXP86tBCwOW0//mJ3Eb0H87xkmvb1SFjOJlpLNgk5Iwdqwm 725PdCiaOD+7bPvZMhQPcL7OLXfoKLY5YnNaY4bqFDF5mtSBIiE3VpJ9agz9h3j7 n4D097Jjnv6/VGfdkz5aN1k0ghLumdN+KdHhuWWyGjuXaVXGIVtHIEYjPjiVEpeg pPZyEtxEcc8Mhj0FpCzJ/8COIT09mEZDXTrvHGckl8lYgcDd9/D7kGDDDlBo7sr4 WIl8u/E4RSaDh9TEv/bpeQtoS8Sxtmnbu/Iqp05OGRXdmfsAWQ1QNJ0LFoegb5qa Q421FOwhby9OgVUY3K8ugqXbjLu/1Kid8lvAxy/gND4RYorAUro4J707BOzqFLHs 0pMhg6b9pqGu/tfuF6Q4AR1YSQFzDy8ayO/b7hMJsFQB8RW4pTqGNKySJr7Bm+R9 cH79NWPgdDSsDAPWEcBiCWLUaxyGkSCgXnCgLOjpm9YMR5HC3TuCxR4hMh128F4S tZtURk+0AvVmqN3gI5PzvkuSgRd+INrsXNiQ93f8OWFXevS5X4XI1xBkFw+AjcUt 4gTTh0G2CWZWqFm0I/KDSAv4WJ4PaP0Nco1dQaeVF+FtTeeejgs1ied9ZG9TWGW8 4daXcZxPV4720HPVvocN7s+AGj1p9oKio3KMohtSVs4w5msS/Ks= =wNbv -----END PGP SIGNATURE----- --nextPart4607247.hKxQ4YaMsD--