Thank you. I appreciate your patience while I wrap my head around this stuff.

On Sun, Feb 26, 2017 at 12:25 PM, Reuti <re...@staff.uni-marburg.de> wrote:
>
> 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?
Yes, use the -m and -M options already, but those haven't helped me
add more/less content to the body of the email.

So the specific one I'm asking about now is only for emails in case of
error, though it would be nice to customize what goes into any/all
emails.

>
> "-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

So I'm wondering if there is a way for my custom mailer script to
parse the job number from the subject line (GE 6.2u5p3: Job 66839
failed), and then use that to get more information. Kind of like using
`qstat -j 66839`, except the problem I see with that is that because
the job failed I'm guessing it will no longer be available to qstat.
Any way around this?

>
> 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.
Just so I understand, does all the information that is part of the
job's context get sent to outgoing mail to the user? Does that cover
all -m scenarios (i.e.,  beas), but not the case of a failed job where
an admin email is sent?


>
> -- 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