From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id uAaWN/y+TGYWQQAAe85BDQ:P1 (envelope-from ) for ; Tue, 21 May 2024 17:34:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uAaWN/y+TGYWQQAAe85BDQ (envelope-from ) for ; Tue, 21 May 2024 17:34:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=ymail.com header.s=s2048 header.b=iD0gnWOa; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716305660; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TapNNdrNE3RG+ecjbAX8SoKksfcFH7R4C2xxI7lqY8c=; b=QjW5v2nFNnlxWDA+o+OcUCVSsPTlS6DxFCmNn7lkDtlwZiFPuU4ePSPvQMS6cTLoue2KnX 0+xCNUZSTf6DUvljVK//dBF0NVp1RrnVTXM9h5nuGe2CwNZ8mxBmDU4tE+Jnwdrn36oAoz lkMdDMRIc6xI2NwDax0bt+PNbTNGqUqmFUlRglaVwdXEMHPbrTEhM6PiSaFwnkd6UGPZn8 xZjEfFDKJgRyteJNDjNx64TDrglGmW7Jt/sirqTUYZv3UO6Jd52mjBUz+Ou0BGqjsuL2t5 u1EgG066+PI0MZHnaNUUhnsQrnOMUShy7EmMu2bW39OjRNAgyhyu2g5Ecxi/OQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716305660; a=rsa-sha256; cv=none; b=PDXSFnYpRBdR7MSkfEQOegVZPWSkgsV2yNcjEzw2isNSlAQypUBZfMdJIE4+Mmk32TYGZ5 Wr8zqDRoJaTW+JX1NA8OSCkFMYJxf3ly62Vxi87BmwFpsaP2DRBPSUe3yJFf+YGOE7vhiI mxtQcuvzTY1kPTcqkyB2YhZJheMA+CuuUjCLp+KxJv5oK3JMdGONw1Wea3ZxrzCnipF6uf kR5BA6nqjNUOBd+injHnT8mRL75lJdP/hFBchWry2lQIBZ0vbNymf7p5oWNUh4jf02YKks LZQ4UlVFybiuBbmyBIUjZ+ljuHCXtK+OWiojT/itabJTnkrJFDZ7tfdU3vblOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=ymail.com header.s=s2048 header.b=iD0gnWOa; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 EA2AC78A1 for ; Tue, 21 May 2024 17:34:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9RUu-0000ti-U8; Tue, 21 May 2024 11:33:52 -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 ) id 1s9RUt-0000t6-2P for help-guix@gnu.org; Tue, 21 May 2024 11:33:51 -0400 Received: from sonic304-22.consmr.mail.ir2.yahoo.com ([77.238.179.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9RUq-0004P9-Op for help-guix@gnu.org; Tue, 21 May 2024 11:33:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1716305622; bh=CZUuDL5aa/IVj3B9/oGAU/HW9lehQYZnjxzyNjsV96I=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=iD0gnWOadqiSoDFRJWaB7ZbR/XuUsfiBxnpzuoRMg3Zbi1XU2Oh1OvDJ9s7ptTiezV1tn01gOzZGiz3KO7a+AeXAIe7iShq30YPYvyrcvc1lrvpMsXUcon8IkZdIpMWcefso81QOyMAEB+fTY8KPEox0ppmnLvdWx7b06NRjycqfg4RubwvvUwcEfMh/Swu/lUvuPqREBw4fJUPqrGv3YRq/RuOqTPLie4sNQ4sQSkheRAlh0i2NOOpBFfGy1KR3yQ3eRhYW9+1u5ft1lMZ5224VRTl9zAmVS9hT4pJwj/HqKerY0+xESVu3Qek01iHCU7lqjFVm3ASmRdrW3kZf2g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716305622; bh=n9cubVca5Vs37FCuaQOT7uvvC58kqL3JnHWYWhRc6WH=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=iNoWlQ5l+Y5eGdtRlYf2ekRGiDG8wSpU7KixOrq/7OtwKgM85UfHrZeTzWv2bVrdKBbxpwTzGHm65h9z+x+yhTvAQV4zMk8sopeahD5A+W4DbbNOAENPlOg/N1RC0iboJh2N5+rx0holOpdPntKW/i1pCFoi+koIsN2x0fcrFl7P6/yl4aM0YdJF8oFmOCwNmRqxWhxsCHDYdb8N2v8VyQIQcbkfKJw16rjS3Tp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RR8c.CA J14mMKOtQiN9wG4l.usx90xdumo1CtivfTmCEY4C_Rclh1HoGP79CGLLLZnqC0Nktn0mJ7oM9ZFM b7iPA5RmaheQtucPNr._qjMAl.pHbjRdWnlQ2Q7MxOt2kyQVToaDigR4klJe8ok5KXp2v9OJBWWd 8JSYFgwA4WfTR6LYQloIFCElkzmyy34uG9j2C8C4KJ2tE4BrQ5j4NxPOKj7ppzIysAzf8aQ3e4Gs y8Ov6n7VyTfYIw6665VZVecRPF16lsXfUev9_CTme3MKtFyFi X-Sonic-MF: X-Sonic-ID: a1ca95e7-ae79-4b67-89ad-a43afd818006 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Tue, 21 May 2024 15:33:42 +0000 Received: by hermes--production-ir2-7b99fc9bb6-gzdcx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID cd00c0a6faec6bb42568f8d091340da5; Tue, 21 May 2024 15:33:40 +0000 (UTC) Date: Tue, 21 May 2024 17:33:24 +0200 To: help-guix@gnu.org Subject: Re: How to configure smartd and send notifications? In-Reply-To: <87jzjot5it.fsf@lease-up.com> 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> Message-ID: <79C29ABD-8FFC-4930-A8E0-798ABF4EEB11@ymail.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.22356 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=77.238.179.147; envelope-from=blobbyjj@ymail.com; helo=sonic304-22.consmr.mail.ir2.yahoo.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: , Reply-to: Tristan Kohl From: Tristan Kohl via 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: -2.86 X-Spam-Score: -2.86 X-Migadu-Queue-Id: EA2AC78A1 X-Migadu-Scanner: mx11.migadu.com X-TUID: mnI+dxYIG/Ls Hello Felix, my last message was not to critizise your help but rather my frustration w= ith my own limited progress=2E I really appreciate the help! program-file at least results in a usable thing however since the script g= ets executed by smard I get the "command not found" in my logs=2E It seems = like curl is not in PATH for smartd=2E Do I need to import something into t= he gexp? Also those env variables are defined by smartd during runtime depending on= which drive produced the error=2E Therefore I need shell expansion/env var= iables and have to use system (without *) imho=2E This is the current state: (define-smartd-send-ntfy (program-file "send-ntfy" #~(system (string-append "curl " "-H \"Title: $SMARTD_SUBJECT\" " =2E=2E=2E)))= ) Note: when using system* the error is: In execvp of curl: No such file or directory Thanks for bearing with me! Tristan On 21 May 2024 01:42:02 CEST, Felix Lechner wrote: >Hi Tristan, > >On Mon, May 20 2024, Tristan Kohl via wrote: > >> smartd then complains that the file is not executable=2E=2E=2E > >Sorry, it was a Monday morning for me=2E > >If you are comfortable using Guile---which I'm sure you almost are by >now--You can use 'program-file': > >Please have a look at any of these hooks on one of my systems=2E [1] > >An untested version of your script might look something like this, >although I probably got some of the quoting wrong---either in Scheme or >in your command=2E > >(define smartd-send-ntfy > (program-file "send-ntfy" > #~((let* ((subject (getenv "SMARTD_SUBJECT)) > (device (getenv "SMARTD_DEVICE)) > (failure-type (getenv "SMARTD_FAILTYPE)) > (timestamp (getenv "SMARTD_TFIRST")) > (message (getenv "SMARTD_MESSAGE"))) > (system* "curl" > "ntfy=2Esh/" > "-d" (string-join > `("curl" > "-Ls" > "-H" ,(string-append "Title: " subject) > "-d" ,subject > "-d" ,(string-append > "'" > (string-join (list "Device:" device > "Time:" timestamp > "Message:" message)) > "'")))))))) > >Kind regards >Felix > >[1] https://codeberg=2Eorg/lechner/system-config/src/commit/215fc20a29e55= 3fd8108ba737d557ecb98279540/host/wallace-server/operating-system=2Escm#L113= 4-L1168