WEBVTT

00:00.090 --> 00:00.260
Okay.

00:00.320 --> 00:07.290
Many systems will allow you to send emails from them in case of problems or other alerts you might want

00:07.290 --> 00:11.310
to set up, such as Loki and Prometheus have a way to send alerts.

00:11.310 --> 00:14.430
So as in flux tbh, so does my school.

00:14.490 --> 00:18.540
Xbox has a sophisticated alerting system and so does Elasticsearch.

00:18.570 --> 00:23.580
All of these things have the option to send an email through an esim tpy server and you can also do

00:23.580 --> 00:24.450
that in rafinha.

00:24.450 --> 00:29.730
We can configure and SMTP server like Raphinha can use to send alerts so we will organize and SMTP.

00:29.730 --> 00:33.150
So now email is only one option of getting alerts from a system.

00:33.150 --> 00:37.830
You can set up other kinds of notifications such as SMS, Telegram or Slack.

00:37.830 --> 00:40.110
It doesn't matter, but email is a good start.

00:40.140 --> 00:45.360
Now before we continue, we need to make sure we're using version 8.3 or later of Gravano, since it's

00:45.360 --> 00:48.690
a new unified user interface called Unified Alerting.

00:48.690 --> 00:54.240
And if I look at this user interface here, this is the oldest call I'm using 8.2.4 at the beginning

00:54.240 --> 00:54.750
of this video.

00:54.750 --> 01:00.870
I'm going to upgrade now to the latest version, which happens to be 8.3.3, so that I get the new unified

01:00.870 --> 01:02.310
alerting user interface.

01:02.310 --> 01:02.670
Okay.

01:02.670 --> 01:09.480
So using the downloads page in Gravano, I'm downloading 833 open source version.

01:09.480 --> 01:10.830
My instructions are here.

01:10.860 --> 01:11.940
I've already done that.

01:11.940 --> 01:16.470
I now need the later 8.3.3 version of the Debian package.

01:16.470 --> 01:21.720
So I'm going to get to download it on mammography on a server right click and press enter.

01:22.560 --> 01:28.530
Okay this downloaded the 8.3.3 version and now I'm going to install it using the package manager.

01:29.310 --> 01:29.550
Okay.

01:29.550 --> 01:34.260
So that's putting 833 over 824 and restarting the profile to subnets.

01:34.260 --> 01:34.620
Okay.

01:34.680 --> 01:36.780
Let's refresh the A server.

01:36.810 --> 01:37.040
Okay.

01:37.050 --> 01:38.730
So I just refresh this page.

01:39.480 --> 01:39.870
Okay.

01:39.870 --> 01:42.780
So we have the new unified alerting interface.

01:42.780 --> 01:45.690
So it doesn't say notification channels anymore.

01:45.720 --> 01:47.040
It now says contact points.

01:47.130 --> 01:52.200
So if we look at contact points, I need to create a new contact point that can be used for sending

01:52.200 --> 01:55.440
emails so there is a default provided there.

01:55.440 --> 02:01.290
I can just edit that or delete and create a new one, but I'll just edit that and just change to email.

02:01.310 --> 02:07.590
Doesn't matter and I need a recipient and that's just going to be my email address admin at ESP code

02:07.590 --> 02:08.250
dot net.

02:08.280 --> 02:13.080
You can send it to multiple email addresses by separating with a semicolon, but I'm just going to use

02:13.080 --> 02:13.740
that now.

02:13.740 --> 02:18.720
I can't really test this just yet because I haven't set up the centerpiece settings inside the California

02:18.720 --> 02:19.560
configuration file.

02:19.560 --> 02:24.480
So just to try it, we can send a predefined test message and it says about send.

02:24.480 --> 02:27.630
We haven't figured it yet in California, so let's do that now.

02:27.780 --> 02:31.470
So on the server, I'm going to clear I'm going to go to the refiner ini file.

02:31.500 --> 02:31.770
Okay.

02:31.770 --> 02:37.890
So suddenly now it is sick or fa profanity, I'm going to press control w this is like find and I'm

02:37.890 --> 02:40.260
going to look for SMTP as SMTP.

02:40.500 --> 02:42.180
That's the SMTP settings there.

02:42.180 --> 02:46.500
Now we need to change these settings to what is applicable for you.

02:46.590 --> 02:48.840
So the first one is enabled equals true.

02:49.870 --> 02:52.380
So removing the semicolon is like commenting.

02:52.390 --> 02:56.500
Now the host is going to be different depending on where your SMTP server is located.

02:56.530 --> 03:02.050
Now if you bought your domain name from nine cheap like I showed at the beginning of the course, you

03:02.050 --> 03:07.630
can get an SMTP email service addon on for an extra $1 a month roughly.

03:07.660 --> 03:13.350
Most domain name providers will have an email add on that you can purchase.

03:13.360 --> 03:15.550
So I'm just going to show you my settings.

03:15.640 --> 03:15.890
Okay.

03:15.910 --> 03:21.120
So I'm logged into nine cheap and I'm looking at the settings for my SB code dot net mine.

03:21.160 --> 03:25.600
And if I scroll down a little bit, I've got private email add on there.

03:25.600 --> 03:29.830
So I've got one mailbox and it's in use and this is just the bare minimum.

03:29.830 --> 03:33.490
So it costs about roughly $1 a month for that.

03:33.580 --> 03:38.620
So when you go into your domain admin for whatever your domain is, you'll have that option to create

03:38.620 --> 03:39.340
a mailbox.

03:40.450 --> 03:42.580
Says an ad mailbox option just there.

03:43.000 --> 03:44.230
Okay, so I've already done that.

03:44.380 --> 03:48.940
If you didn't go to the products tab, you'll see here it says start of email and it's active.

03:48.970 --> 03:54.910
And I can log into the web mail version and also manage it like.

03:54.910 --> 04:01.870
So it's pretty much the minimum spec email service, but I can send and receive emails without any problem

04:01.870 --> 04:03.700
using this, so it's actually very good.

04:03.790 --> 04:04.090
Okay.

04:04.090 --> 04:06.150
So got five gigs of storage.

04:06.160 --> 04:08.590
It's got a spam filter if you want to use it.

04:08.770 --> 04:11.530
I don't have a dkim record credit.

04:11.530 --> 04:14.000
I don't need it and that's pretty much it.

04:14.020 --> 04:15.100
It's just the bare minimum.

04:15.100 --> 04:21.100
When you get your mailbox, you'll get a default mailbox being admin at whatever your domain was.

04:21.170 --> 04:21.940
That's my one.

04:22.000 --> 04:22.360
Okay.

04:22.360 --> 04:25.550
So I can set that up in a final now.

04:25.600 --> 04:32.440
So looking back at Crawford and my host I just happened to know for my email service is mail dot.

04:33.340 --> 04:36.010
Private email dot com.

04:36.190 --> 04:38.320
And the port is 465.

04:38.500 --> 04:43.840
You might be using a corporate Microsoft Exchange server, so you'd be typing in the address and the

04:43.840 --> 04:44.490
port for that.

04:44.500 --> 04:48.090
He may be using some other SMTP servers somewhere else.

04:48.190 --> 04:51.490
Sometimes a port might be 25 and sometimes a46, five.

04:51.550 --> 04:52.620
Anyway, that's the host.

04:52.630 --> 04:58.110
If you're using a domain from name shape like I am and you have set up the email server, it'll be mailed

04:58.120 --> 05:00.550
a private email dot com port 465.

05:00.610 --> 05:03.100
The user is your email account.

05:03.220 --> 05:07.060
So my user is admin speak code dot net.

05:07.090 --> 05:11.260
Yours will be admin at your domain if you bought it from nine cheap as well.

05:11.290 --> 05:12.990
The password among commenting.

05:13.000 --> 05:18.130
If your password contains a hash or a semicolon, you have to wrap it in triple quotes.

05:18.320 --> 05:18.560
Okay.

05:18.580 --> 05:18.940
So.

05:20.330 --> 05:23.750
Perhaps your password is something very complicated and it's like that.

05:23.750 --> 05:25.400
I'm not going to show you my real password.

05:25.410 --> 05:27.410
No update that while I'm not recording.

05:27.470 --> 05:30.860
Okay, so search file and key file, skip, verify it.

05:30.860 --> 05:32.960
These are all okay to be left as default.

05:32.960 --> 05:36.530
Now the from address will be the same address of the account that I'm using.

05:36.530 --> 05:38.810
So it's going to be admin that has become a dot net.

05:38.840 --> 05:40.160
So I'm going to delete that.

05:41.450 --> 05:47.790
At minute aspect dot net, you can usually create a different named mailbox through your email provider

05:47.800 --> 05:49.780
by creating aliases if you really wanted to.

05:49.780 --> 05:51.100
But I'm just going to keep it simple.

05:51.100 --> 05:55.240
Admin it is because I don't net that's my one my from name I'm going to leave that as default as well.

05:55.270 --> 05:58.090
Doesn't matter if that's committed or not it's going to be from name rafinha.

05:58.090 --> 06:04.750
Now the ello identity this one I normally use private email dot com private email dot com.

06:04.780 --> 06:08.920
Now CAFAGNa will make a connection to my okay property motto.

06:08.920 --> 06:10.040
Com 465.

06:10.060 --> 06:13.990
Log in as my user password and try to send an email.

06:14.020 --> 06:19.540
Now, if you're using a mobile phone through your work and you have your work email set up on your mobile

06:19.540 --> 06:24.820
phone in the default mail application, you may have some SMTP settings there that you can view in a

06:24.820 --> 06:26.450
general settings area of your phone.

06:26.470 --> 06:30.490
You can pretty much just copy what you see and then put that into these places.

06:30.490 --> 06:36.340
And also if your mail host is something like mail dot acme dot com down here for a low identity you

06:36.340 --> 06:37.690
just right acme dot com.

06:37.720 --> 06:40.160
So that's what I've done here just private email to com.

06:40.240 --> 06:41.290
Just the same as that.

06:41.410 --> 06:42.790
That seems to work okay for me.

06:42.850 --> 06:45.940
So that is enough to control x to save?

06:46.060 --> 06:46.780
Yes.

06:47.230 --> 06:51.040
And we need to restock often on restart and check a status.

06:52.500 --> 06:52.860
Okay.

06:52.860 --> 06:53.520
Very good.

06:53.640 --> 06:54.340
That's working.

06:54.360 --> 06:55.410
Now we can test it.

06:55.620 --> 07:01.470
So in the new contact points section of the alerting user interface, I can try test again.

07:01.470 --> 07:02.550
Send a notification.

07:03.150 --> 07:03.490
Okay.

07:03.540 --> 07:05.440
And test alert sent.

07:05.460 --> 07:06.900
So that works straight away for me.

07:06.930 --> 07:07.280
Okay.

07:07.290 --> 07:10.620
Also note that behind the scenes I updated my password.

07:10.620 --> 07:12.480
Artist didn't show that in this recording.

07:12.630 --> 07:18.360
So just make sure your username and your password is correct when you do your SMP settings in the graphite.

07:18.360 --> 07:18.690
Any.

07:18.780 --> 07:19.140
Okay.

07:19.140 --> 07:24.570
So now look into the web mail client that I get with that private email service and I have one like

07:24.570 --> 07:28.170
alert from provider that test I just sent called firing one tests.

07:28.200 --> 07:34.260
Look, a final is just some dummy information alert and I'm test alert and I can silence it by pressing

07:34.260 --> 07:36.460
the links there or even go to the alerts page itself.

07:36.480 --> 07:37.620
A personal link there now.

07:37.640 --> 07:40.140
Note here it says local host 3000.

07:40.170 --> 07:45.730
If you're sending emails like that, you may want to see your domain name and steps written in there.

07:45.750 --> 07:51.510
So to do that, go back into the Gryphon, any secret phonic or find any and just scroll down a little

07:51.510 --> 07:51.840
bit.

07:53.270 --> 07:59.270
Until you find the setting called roots you are all there and we can just hard code the euro all we

07:59.270 --> 07:59.790
want to see.

07:59.810 --> 08:10.300
So I'm going to say root your URL equals htp s slash bafana dot esp code dot net and then a slash like.

08:10.310 --> 08:11.970
So let's test that.

08:12.080 --> 08:13.150
Control X.

08:13.160 --> 08:13.760
Yes.

08:14.510 --> 08:19.940
And so restart instead us and good or good, let's send another test terminus.

08:19.940 --> 08:23.360
Another test from the alerting panel here to send notification.

08:24.110 --> 08:25.370
Okay, let's sent.

08:26.210 --> 08:26.600
Okay.

08:26.600 --> 08:31.070
I got a new email in my inbox that's going to have look at it and there it is.

08:31.190 --> 08:31.970
It's a similar one.

08:31.970 --> 08:32.920
Install the test alert.

08:32.930 --> 08:37.640
Now the URLs in the email, use it to be a screw finance B code dot net slash alerting.

08:37.640 --> 08:38.840
So that's correct.

08:38.840 --> 08:42.320
So I can actually just click that, have a look at it and it isn't actually real.

08:42.470 --> 08:44.060
So it's actually not showing up here or anything.

08:44.060 --> 08:45.050
But you get the point.

08:45.050 --> 08:49.540
You can just click and you can see your current issues showing up here and alert rules.

08:49.640 --> 08:53.060
Okay, so just make sure you're using version 8.3 or later.

08:53.090 --> 08:57.440
That way you'll get the unified alerting interface rather than the one that we had at the beginning

08:57.440 --> 08:57.890
of the video.

08:58.010 --> 08:58.490
Excellent.

08:58.520 --> 09:02.840
So next video will actually use this to create a real alert from the system.

09:03.110 --> 09:03.500
Excellent.
