<div dir="ltr"><div>Thank you Marcus, Ole and Samuel.</div><div><br></div><div>Regarding Samuel's answer, I added ifne from moreutils before mail to not have empty emails.</div><div><br></div><div>Regarding strigger, I don't know how to become the slurm user. "su slurm" complains "This account is currently not available.". The user "slurm" exists and is the SlurmUser.</div><div><br></div><div>Best,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 14, 2021 at 5:09 AM Ole Holm Nielsen <<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk">Ole.H.Nielsen@fysik.dtu.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/14/21 7:50 AM, Marcus Boden wrote:<br>
> Slurm provides the strigger[1] utility for that. You can set it up to <br>
> automatically send mails when nodes go into drain.<br>
<br>
I provide some Slurm triggers examples in<br>
<a href="https://github.com/OleHolmNielsen/Slurm_tools/tree/master/triggers" rel="noreferrer" target="_blank">https://github.com/OleHolmNielsen/Slurm_tools/tree/master/triggers</a><br>
<br>
> On 12.06.21 22:29, Rodrigo Santibáñez wrote:<br>
>> Hi SLURM users,<br>
>><br>
>> Does anyone have a cronjob or similar to monitor and warn via e-mail when a<br>
>> node is in draining/drain status?<br>
<br>
/Ole<br>
<br>
</blockquote></div>