Am 26.02.2017 um 22:42 schrieb Mishkin Derakhshan:

> Okay thanks. It would be nice to get at least the same information
> from as a non-admin email (i.e., user, queue, start/end time).
> Another bit of useful information for both admin and non-admin in my
> case would be the job name.

Did you have a look at the "-m" and "-M" option to `qsub`, or are you referring 
only to emails send in case of an error?

"-M" accepts more than one receiver, or you could hardcode in a mail wrapper to 
send the same email in addition to the admin user all the time or add 
additional information:

#!/bin/bash
tee >(mail -s "$2" "$3") >(mail -s "$2" another_user) | mail -s "$2" sge_admin
{ echo Custom header; cat; echo Custom footer } | tee >(mail -s "$2" "$3") 
>(mail -s "$2" another_user) | mail -s "$2" sge_admin

and define it in:

$ qconf -sconf
…
mailer                       /usr/sge/cluster/mailer.sh

I even add some information of the job's context (`qsub -ac …`) to the outgoing 
mail to the user, e.g. the list of used nodes of a parallel job.

-- Reuti


> 
> 
> On Sat, Feb 25, 2017 at 12:36 AM, Reuti <re...@staff.uni-marburg.de> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Hi,
>> 
>> Am 25.02.2017 um 00:57 schrieb Mishkin Derakhshan:
>> 
>>> Hi,
>>> Is there a way to configure or customize what gets sent by the mailer.
>>> 
>>> For example, I will sometimes get an email from an error that will
>>> look like this:
>>> 
>>>> Job 64411 caused action: Queue "redacte...@redacted.com" set to ERROR
>>>> User        = mishkin
>>>> Queue       = redacte...@redacted.com
>>>> Start Time  = <unknown>
>>>> End Time    = <unknown>
>>>> failed assumedly before job:can't create directory active_jobs/64411.1: 
>>>> Permission denied
>>> 
>>> And other times, I will get an (admin) mail where all that will be in
>>> the body of email is:
>>>> Shepherd pe_hostfile:
>>>> nrx3-vm15.neurorx.com 1 nrx3.lon...@nrx3-vm15.neurorx.com UNDEFINED
>>> 
>>> Is there a place to set/see what info will be sent to the mailer?
>> 
>> The admin mails are just send, there is no option to define when they are 
>> send or what they contain.
>> 
>> Do you want to get more information or additional entries?
>> 
>> - -- Reuti
>> -----BEGIN PGP SIGNATURE-----
>> Comment: GPGTools - https://gpgtools.org
>> 
>> iEYEARECAAYFAlixXjIACgkQo/GbGkBRnRoY4ACfSrSkg6OWKA2hq+aXkKvcq/8k
>> C1YAn1sL+orNXxIem2HV9hzToVhBEEc3
>> =KiOj
>> -----END PGP SIGNATURE-----


_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to