From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gP4UIe7CTGZVcQAAe85BDQ:P1 (envelope-from ) for ; Tue, 21 May 2024 17:51:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gP4UIe7CTGZVcQAAe85BDQ (envelope-from ) for ; Tue, 21 May 2024 17:51:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=kYxauiV8; dkim=pass header.d=wolfsden.cz header.s=mail header.b=DYLxB3vI; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716306670; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jcld/IGlzrlgPqmcclmyAlVW1nAeyDr/DINMIr5j4EQ=; b=NzXIj8XY9z31mtmUhnOQ1T+fThF/D7+J+LjV/zjzcFr5Uk9clI75oUo5g0hXJEdqSu2/gr 6vDfW1uoaiNjMaFWEinFvPCJXzES4S4/B1Pqb9ZAz7axsxpet/z7+z8yhTxwAzNDWhFiJB uJv2cO+BWO3+uXn8uqjtT0chSnpLaK6noa6EncpnNzyxre73wQ8wh3H3ZqOXKSoL07tGbW g4KhAzJOJOkZ57rqk9NIcRz/Wk8w/+6e19pSaRxtfdTfxUfJFf/2s0zh1gvKz0JSKdz+rE Wnq7hxKp2se21WmPjkgiD9mY8CT7mdyNPO50fm3/KhnNdShuOxv8DwBzW8TH4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=kYxauiV8; dkim=pass header.d=wolfsden.cz header.s=mail header.b=DYLxB3vI; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716306670; a=rsa-sha256; cv=none; b=oKCLiuLU064H4++eP4iiUWy0nPk9rftREJSVsRp+c65d1Qnafu0RzIN0OIxUz0Tt0gKdYX +sdQtAIvoqE10kEG6Dj1kwOWyHi3aHnlmLsLsRq8NlCwEQGP3PF53br1DtGm6i42Ua3CJJ ZK3zRcKIrad0vkwgsBIBCOxaKgf5rFqqnYBN7y3D4csslsrPHTw4ou5eFCgpBOhdqsvA7x urs+fwzc8tOxfQ0l5ibbsPw/6I0a6TdFuMM5PpE6j9nL/flVgFl/2gTUNnzlbF3pATJOas k3rrwyJumtVPJlFilcF5DIft++csJerNue+CoCFSOYbnyRiZm0O+rnV3XsQDyg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC7006298D for ; Tue, 21 May 2024 17:51:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9RlA-0007N9-IN; Tue, 21 May 2024 11:50:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1s9Rl9-0007KP-2F for help-guix@gnu.org; Tue, 21 May 2024 11:50:39 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1s9Rl6-0007wD-MW for help-guix@gnu.org; Tue, 21 May 2024 11:50:38 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 987CA295036; Tue, 21 May 2024 15:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1716306629; bh=heikuMl6ip8HNjjBtfBjP4CotQcnbMsnDn9f5Pe881U=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kYxauiV8i9jlv93T2QECRjwc5kjBxOy0uSf3/iti6jK7swYOD7PoJ4/8x+4SaUQg6 LRfm59KGUMLXlz5XkDm79iiowxzClVqF76tQdpcnCGsKZA8jKK9fH0m7JyVlo1n62h V27uFOuu74QcJSkmLkP8O0QgqZKiMjfKeL/35Cqhm6FFAl1VUEa1qYUHZj8ixYYF6O l2pL1UFUmOh1eSsvkF93jStNK2nxNvFj7YK3beSyr9uf35iLmE4Md96pc3w4+jJw+5 3PgUZZppnzKffTmhpJa4tWy8NO18kmwQCzscucQeXXyinIelwRiK/miHmn6/H8g0fm FmB0epO9ftQaD0+ki5+qvMtFcQCWt7FZENqFFssiCcR49KG20DoabvHRrQHirkLrM1 RvwtCDGZDoWiHNAEoUdxUMKCWhcWQu2nSt+TUb2XDjtYw2biG0eY6CJFdoNNpfkBBw iWnQQm4GsoENBETaZSNb+eXtK/Spm4YP6Mv63ZHvXeoFFVBpikoWcTqt2c12p1syYa 6EF3Dq4zNkE4hpEwS/6Kg2zka2V0K4+0sP5eD33VwhNrc+zDAPGWdCS6dv9r/DneY4 twEDoYCFMJcTn9nLJ7q9lwCBh47SblvSkTqmj3rVwhvzy1sda2j+KkmHSe82y8kqZA XYWcWe+1pVmbpAwFdVZ/FwKs= Received: from localhost (unknown [81.17.16.73]) by wolfsden.cz (Postfix) with ESMTPSA id 70D2B294979; Tue, 21 May 2024 15:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1716306628; bh=heikuMl6ip8HNjjBtfBjP4CotQcnbMsnDn9f5Pe881U=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DYLxB3vIp6EvucMA1flAoHggcSfgfADgcF2ATf/d621bkjww6LSCEj8lw4seR08IB 5cgnncFlUeNjRSFQfRDON8OPkqW2X/Zu3IyYJpfPIXLObhfN9h102pwOBBZqux8nCV WxCskhCO/6fEnJSUterYrd67p6jEWjDYgTO4LR9bkuFQyEq8p/DVQlW3NISN4WgHJR IxSKtr43BV/yLCT9uaB/5eFQS3K2aKgQrq/bYzyyE7yoSlRl6pfS+U78jmIR/RMf+g tQybeAbFLivDePNDfz6N9ZD4rU7TgyI+OBq5KcIIeE1aqKRz82cHAkVIX9r8H65HDk wvRjnqrbGBPZJQEiew5OttWcCSt2qhvA17sSZM4+mIFG8dxsryjCCeFX/x8QBeMQ4z lrccFiXw3jeDOz4QeswFNU1es13tWNeerMLlyzoFIhw0dMf4o/BAOMO8r6ET/WDSaY cf/5zClg7rdhEAM1RuhHgSXosZ5qkfsQFryzpNLXAeEpZ1RWMe7K3ASde8lf86s2Uh QtSXErU3eiyqrs9TwYclbwa8a+9hBBc8oKi1oLlcIiiZEAv+ZXnyEmA7m+guGpOq6L MQN+s5COYhokrtYNAHjr1pljskpyesF44TLPfkExCv3oOoxDJWhkMHJzNZNNAF0FK1 zUSLnn3ZqnyHHRd1uGt8AHxY= Date: Tue, 21 May 2024 17:50:27 +0200 From: Tomas Volf <~@wolfsden.cz> To: Tristan Kohl Cc: help-guix@gnu.org Subject: Re: How to configure smartd and send notifications? Message-ID: Mail-Followup-To: Tristan Kohl , help-guix@gnu.org References: <4D873504-6540-477A-A2DB-DE293395CAFC.ref@ymail.com> <4D873504-6540-477A-A2DB-DE293395CAFC@ymail.com> <87seycu3df.fsf@lease-up.com> <87msokttht.fsf@lease-up.com> <0525BF4D-96C2-4F58-BB27-19A88DD8403E@ymail.com> <87jzjot5it.fsf@lease-up.com> <79C29ABD-8FFC-4930-A8E0-798ABF4EEB11@ymail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jNsf75HP40qQ9nPi" Content-Disposition: inline In-Reply-To: <79C29ABD-8FFC-4930-A8E0-798ABF4EEB11@ymail.com> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.50 X-Spam-Score: -10.50 X-Migadu-Queue-Id: EC7006298D X-Migadu-Scanner: mx13.migadu.com X-TUID: GtdxlVK/BfNu --jNsf75HP40qQ9nPi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2024-05-21 17:33:24 +0200, Tristan Kohl via wrote: > Hello Felix, > > my last message was not to critizise your help but rather my frustration with my own limited progress. I really appreciate the help! > > program-file at least results in a usable thing however since the script gets executed by smard I get the "command not found" in my logs. It seems like curl is not in PATH for smartd. Do I need to import something into the gexp? > > Also those env variables are defined by smartd during runtime depending on which drive produced the error. Therefore I need shell expansion/env variables and have to use system (without *) imho. > > This is the current state: > > (define-smartd-send-ntfy > (program-file "send-ntfy" > #~(system > (string-append "curl " "-H \"Title: $SMARTD_SUBJECT\" " ...)))) Ignoring the obvious quoting issues here (what Felix does with `getenv' seems much safer, and should produce the same result?), > > Note: when using system* the error is: > In execvp of curl: No such file or directory This should be solvable by using `file-append', so, basing on the system* variant, something like: #~(system* #$(file-append curl "/bin/curl") ) Should invoke curl by absolute path. (You need import (gnu packages curl) of course.) Hope this helps, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --jNsf75HP40qQ9nPi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmZMwsMACgkQL7/ufbZ/ wak4cg//SECjseFYsJz6dVn0l9FrZNjVo6Rk4R0q08FuqctgkDR3B/8oW4CDyv2l qpwvqIItnF6GMUytsLAFIXWmU+oWC6np4cI2TDgtZ848tlzMjWcbjNbfdWiS62on jFbsxzVYMFNcLhfWaRApGGJk4MA/sNJzCWihFMAWM6YeYTfDLSSKsIRWKmlVdHkC OPLNuLD9Rar7k2th1NcM5O3dnxmKJMpqJPNoSEwE2Jc1hyLCpDSxR5aLwbwdUw5Q NTWHNQ49Oih/1klT0a8prKPaMTsua2i+g5TU/kUrFsXHXw6F/KqAkEyc1DkmXuwt ci/YhnG/H7slpg/BWSX2Ftt97wtrys4eX8ij9dvES5Krwu69A3c4nlP5PVecvHJw Xy2g6YeDGJoxOPmNUhSPbOALWeh6BO+NhKoZ/Zvokgap1o6jgkfyDWwzA/+AVOvR mZDJBmFAYiSgmFp3aeoYqIwuMhm7TVP99YujQVhioPBQ51Msxl1aeTknPwweyjxT lJkFzvKSr9SPnwchaSR649kgTe4cx9na1OA17/GxsNThWpgOC1dDEATZolde26MH 8msC27/gXWlnHl3q3Cq6jOLn0AqsKazEgF5KSIna/L2iA4wF2UsocoYBOQOm0ZHt c8CW3I9xmJ8KzdE1n3tX7Ho5LFHsK9t3pMqIp8pzc5Y7vmQSdms= =jnu8 -----END PGP SIGNATURE----- --jNsf75HP40qQ9nPi--