<div dir="ltr"><div>Thanks, Marcus. You're right.</div><div><br></div><div>Best regards.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 14, 2021 at 10:32 PM Marcus Boden <<a href="mailto:mboden@gwdg.de">mboden@gwdg.de</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">I think your slurm-user has /sbin/nologin as the the shell in <br>
/etc/passwd. Try `su -s /bin/bash slurm`.<br>
<br>
Best,<br>
Marcus<br>
<br>
On 14.06.21 20:52, Rodrigo Santibáñez wrote:<br>
> Thank you Marcus, Ole and Samuel.<br>
> <br>
> Regarding Samuel's answer, I added ifne from moreutils before mail to not<br>
> have empty emails.<br>
> <br>
> Regarding strigger, I don't know how to become the slurm user. "su slurm"<br>
> complains "This account is currently not available.". The user "slurm"<br>
> exists and is the SlurmUser.<br>
> <br>
> Best,<br>
> <br>
> On Mon, Jun 14, 2021 at 5:09 AM Ole Holm Nielsen <<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a>><br>
> wrote:<br>
> <br>
>> 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<br>
>> when a<br>
>>>> node is in draining/drain status?<br>
>><br>
>> /Ole<br>
>><br>
>><br>
> <br>
<br>
-- <br>
Marcus Vincent Boden, M.Sc.<br>
Arbeitsgruppe eScience, HPC-Team<br>
Tel.: +49 (0)551 201-2191, E-Mail: <a href="mailto:mboden@gwdg.de" target="_blank">mboden@gwdg.de</a><br>
-------------------------------------------------------------------------<br>
Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen (GWDG)<br>
Am Faßberg 11, 37077 Göttingen, URL: <a href="https://www.gwdg.de" rel="noreferrer" target="_blank">https://www.gwdg.de</a><br>
<br>
Support: Tel.: +49 551 201-1523, URL: <a href="https://www.gwdg.de/support" rel="noreferrer" target="_blank">https://www.gwdg.de/support</a><br>
Sekretariat: Tel.: +49 551 201-1510, Fax: -2150, E-Mail: <a href="mailto:gwdg@gwdg.de" target="_blank">gwdg@gwdg.de</a><br>
<br>
Geschäftsführer: Prof. Dr. Ramin Yahyapour<br>
Aufsichtsratsvorsitzender: Prof. Dr. Norbert Lossau<br>
Sitz der Gesellschaft: Göttingen<br>
Registergericht: Göttingen, Handelsregister-Nr. B 598<br>
<br>
Zertifiziert nach ISO 9001<br>
-------------------------------------------------------------------------<br>
<br>
</blockquote></div>