I think your slurm-user has /sbin/nologin as the the shell in /etc/passwd. Try `su -s /bin/bash slurm`.

Best,
Marcus

On 14.06.21 20:52, Rodrigo Santibáñez wrote:
Thank you Marcus, Ole and Samuel.

Regarding Samuel's answer, I added ifne from moreutils before mail to not
have empty emails.

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.

Best,

On Mon, Jun 14, 2021 at 5:09 AM Ole Holm Nielsen <ole.h.niel...@fysik.dtu.dk>
wrote:

On 6/14/21 7:50 AM, Marcus Boden wrote:
Slurm provides the strigger[1] utility for that. You can set it up to
automatically send mails when nodes go into drain.

I provide some Slurm triggers examples in
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/triggers

On 12.06.21 22:29, Rodrigo Santibáñez wrote:
Hi SLURM users,

Does anyone have a cronjob or similar to monitor and warn via e-mail
when a
node is in draining/drain status?

/Ole




--
Marcus Vincent Boden, M.Sc.
Arbeitsgruppe eScience, HPC-Team
Tel.:   +49 (0)551 201-2191, E-Mail: mbo...@gwdg.de
-------------------------------------------------------------------------
Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen (GWDG)
Am Faßberg 11, 37077 Göttingen, URL: https://www.gwdg.de

Support: Tel.: +49 551 201-1523, URL: https://www.gwdg.de/support
Sekretariat: Tel.: +49 551 201-1510, Fax: -2150, E-Mail: g...@gwdg.de

Geschäftsführer: Prof. Dr. Ramin Yahyapour
Aufsichtsratsvorsitzender: Prof. Dr. Norbert Lossau
Sitz der Gesellschaft: Göttingen
Registergericht: Göttingen, Handelsregister-Nr. B 598

Zertifiziert nach ISO 9001
-------------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to