Hi, I noticed this morning that CollEc's MariaDB had been down for five days. Consequently, the app did not produce any results during that time. It looks like the entire system took a hit five days ago. Usually, that is not a problem. The Docker containers are set to restart automatically. While the ShinyProxy container did restart, the MariaDB container was damaged to an extent that Docker could not restart it. Large organizations construct their IT infrastructure based on Docker. So the system is built to be robust and it takes serious events in the host system to cause critical errors preventing automatic restarts. And even when that happens, I can usually set it up again with a few lines of code. To do that, I have to notice that something is wrong in the first place. As I only check CollEc infrequently these days, I would like set up a notification system that sends an e-mail alert following critical errors. In particular, I would like to use the system outlined in this post: https://dummylabs.com/post/2018-08-15-monit/. It uses Monit to send e-mail alerts. Monit needs to be connected to an e-mail account / mail server. Is there a mail server on Helos that I can connect it to? Kind regards, Christian Christian Düben Research Associate Chair of Macroeconomics Hamburg University Von-Melle-Park 5, Room 3102 20146 Hamburg Germany +49 40 42838 1898 christian.dueben@uni-hamburg.de<mailto:christian.dueben@uni-hamburg.de> http://www.christian-dueben.com
Düben, Christian writes
It looks like the entire system took a hit five days ago. Usually, that is not a problem. The Docker containers are set to restart automatically. While the ShinyProxy container did restart, the MariaDB container was damaged to an extent that Docker could not restart it.
But this should not have happen.
As I only check CollEc infrequently these days, I would like set up a notification system that sends an e-mail alert following critical errors. In particular, I would like to use the system outlined in this post: https://dummylabs.com/post/2018-08-15-monit/. It uses Monit to send e-mail alerts. Monit needs to be connected to an e-mail account / mail server. Is there a mail server on Helos that I can connect it to?
Sure it runs exim and it can send mail. I suspect that monit will be able to send mail from localhost. -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
There is an issue with sending e-mails via Exim. By default, Exim tries to send e-mails from @helos. With Monit this prints "<monit@helos>: Sender address rejected: need fully-qualified address" in the Exim logs. With "echo "This is message body" | mail -s "This is Subject" christian.dueben@uni-hamburg.de", it prints "<root@helos>: Sender address rejected: need fully-qualified address". Do you know how to configure Exim so that it sends e-mails from a valid address? Christian Düben Research Associate Chair of Macroeconomics Hamburg University Von-Melle-Park 5, Room 3102 20146 Hamburg Germany +49 40 42838 1898 christian.dueben@uni-hamburg.de http://www.christian-dueben.com -----Original Message----- From: Thomas Krichel <krichel@openlib.org> Sent: Donnerstag, 25. Februar 2021 16:57 To: Düben, Christian <Christian.Dueben@uni-hamburg.de> Cc: CollEc Run <collec-run@lists.openlib.org> Subject: Re: [CollEc] Monit Düben, Christian writes
It looks like the entire system took a hit five days ago. Usually, that is not a problem. The Docker containers are set to restart automatically. While the ShinyProxy container did restart, the MariaDB container was damaged to an extent that Docker could not restart it.
But this should not have happen.
As I only check CollEc infrequently these days, I would like set up a notification system that sends an e-mail alert following critical errors. In particular, I would like to use the system outlined in this post: https://dummylabs.com/post/2018-08-15-monit/. It uses Monit to send e-mail alerts. Monit needs to be connected to an e-mail account / mail server. Is there a mail server on Helos that I can connect it to?
Sure it runs exim and it can send mail. I suspect that monit will be able to send mail from localhost. -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
Düben, Christian writes
Exim tries to send e-mails from @helos.
Yeah, that's what it was in /etc/mailname. I have changed this to collec.repec.org, and made an SPF entry in the DNS collec IN TXT "v=spf1 ip4:95.216.245.19 2a01:4f9:2b:276c::2 -all" -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
The problem persists. Is there anything else I need to change? Christian Düben Research Associate Chair of Macroeconomics Hamburg University Von-Melle-Park 5, Room 3102 20146 Hamburg Germany +49 40 42838 1898 christian.dueben@uni-hamburg.de http://www.christian-dueben.com -----Original Message----- From: Thomas Krichel <krichel@openlib.org> Sent: Freitag, 26. Februar 2021 16:43 To: Düben, Christian <Christian.Dueben@uni-hamburg.de> Cc: CollEc Run <collec-run@lists.openlib.org> Subject: Re: [CollEc] Monit Düben, Christian writes
Exim tries to send e-mails from @helos.
Yeah, that's what it was in /etc/mailname. I have changed this to collec.repec.org, and made an SPF entry in the DNS collec IN TXT "v=spf1 ip4:95.216.245.19 2a01:4f9:2b:276c::2 -all" -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
I now received two e-mails from the system. Christian Düben Research Associate Chair of Macroeconomics Hamburg University Von-Melle-Park 5, Room 3102 20146 Hamburg Germany +49 40 42838 1898 christian.dueben@uni-hamburg.de http://www.christian-dueben.com -----Original Message----- From: CollEc-run <collec-run-bounces@lists.openlib.org> On Behalf Of Düben, Christian Sent: Freitag, 26. Februar 2021 17:11 To: Thomas Krichel <krichel@openlib.org> Cc: CollEc Run <collec-run@lists.openlib.org> Subject: Re: [CollEc] Monit The problem persists. Is there anything else I need to change? Christian Düben Research Associate Chair of Macroeconomics Hamburg University Von-Melle-Park 5, Room 3102 20146 Hamburg Germany +49 40 42838 1898 christian.dueben@uni-hamburg.de http://www.christian-dueben.com -----Original Message----- From: Thomas Krichel <krichel@openlib.org> Sent: Freitag, 26. Februar 2021 16:43 To: Düben, Christian <Christian.Dueben@uni-hamburg.de> Cc: CollEc Run <collec-run@lists.openlib.org> Subject: Re: [CollEc] Monit Düben, Christian writes
Exim tries to send e-mails from @helos.
Yeah, that's what it was in /etc/mailname. I have changed this to collec.repec.org, and made an SPF entry in the DNS collec IN TXT "v=spf1 ip4:95.216.245.19 2a01:4f9:2b:276c::2 -all" -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel _______________________________________________ CollEc-run mailing list CollEc-run@lists.openlib.org http://lists.openlib.org/cgi-bin/mailman/listinfo/collec-run
participants (2)
-
Düben, Christian -
Thomas Krichel