Skip to content

Proposal for notification by mail on failure restarts for XDAQ services

Hi Dainius,

As discussed a little earlier here is what I implemented. As I said I simply copied your systemd service that you use for notification to hotspot and also wrote a small script to send an email.

You can find my first pass implementation in {{{ ~mdobson/xdaq/notification/ }}} in P5.

You have the job control systemd service file which I edited the line “OnFailure=“ to add the extra service to call for mailing. You ave the extra mailing service bril.mail@.service You have a simple script to send an email: mailme.sh As discussed with Daiunius I would simply have a file per zone or per zone and per client/server including the mail addresses to mail, and in the script mailme.sh could be tested if empty and do nothing or send to the mail addresses in it.

I have put this test in place in a daq3val machine d3vrubu-c2e34-41-01 by adding the changed xaad service and the new one in: /etc/systemd/system/ And tested this works well.

Cheers Marc

Edited by Luciano Orsini
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information