Okay.
Many systems will allow you to send emails from them in case of problems or other alerts you might want
to set up, such as Loki and Prometheus have a way to send alerts.
So as in flux tbh, so does my school.
Xbox has a sophisticated alerting system and so does Elasticsearch.
All of these things have the option to send an email through an esim tpy server and you can also do
that in rafinha.
We can configure and SMTP server like Raphinha can use to send alerts so we will organize and SMTP.
So now email is only one option of getting alerts from a system.
You can set up other kinds of notifications such as SMS, Telegram or Slack.
It doesn't matter, but email is a good start.
Now before we continue, we need to make sure we're using version 8.3 or later of Gravano, since it's
a new unified user interface called Unified Alerting.
And if I look at this user interface here, this is the oldest call I'm using 8.2.4 at the beginning
of this video.
I'm going to upgrade now to the latest version, which happens to be 8.3.3, so that I get the new unified
alerting user interface.
Okay.
So using the downloads page in Gravano, I'm downloading 833 open source version.
My instructions are here.
I've already done that.
I now need the later 8.3.3 version of the Debian package.
So I'm going to get to download it on mammography on a server right click and press enter.
Okay this downloaded the 8.3.3 version and now I'm going to install it using the package manager.
Okay.
So that's putting 833 over 824 and restarting the profile to subnets.
Okay.
Let's refresh the A server.
Okay.
So I just refresh this page.
Okay.
So we have the new unified alerting interface.
So it doesn't say notification channels anymore.
It now says contact points.
So if we look at contact points, I need to create a new contact point that can be used for sending
emails so there is a default provided there.
I can just edit that or delete and create a new one, but I'll just edit that and just change to email.
Doesn't matter and I need a recipient and that's just going to be my email address admin at ESP code
dot net.
You can send it to multiple email addresses by separating with a semicolon, but I'm just going to use
that now.
I can't really test this just yet because I haven't set up the centerpiece settings inside the California
configuration file.
So just to try it, we can send a predefined test message and it says about send.
We haven't figured it yet in California, so let's do that now.
So on the server, I'm going to clear I'm going to go to the refiner ini file.
Okay.
So suddenly now it is sick or fa profanity, I'm going to press control w this is like find and I'm
going to look for SMTP as SMTP.
That's the SMTP settings there.
Now we need to change these settings to what is applicable for you.
So the first one is enabled equals true.
So removing the semicolon is like commenting.
Now the host is going to be different depending on where your SMTP server is located.
Now if you bought your domain name from nine cheap like I showed at the beginning of the course, you
can get an SMTP email service addon on for an extra $1 a month roughly.
Most domain name providers will have an email add on that you can purchase.
So I'm just going to show you my settings.
Okay.
So I'm logged into nine cheap and I'm looking at the settings for my SB code dot net mine.
And if I scroll down a little bit, I've got private email add on there.
So I've got one mailbox and it's in use and this is just the bare minimum.
So it costs about roughly $1 a month for that.
So when you go into your domain admin for whatever your domain is, you'll have that option to create
a mailbox.
Says an ad mailbox option just there.
Okay, so I've already done that.
If you didn't go to the products tab, you'll see here it says start of email and it's active.
And I can log into the web mail version and also manage it like.
So it's pretty much the minimum spec email service, but I can send and receive emails without any problem
using this, so it's actually very good.
Okay.
So got five gigs of storage.
It's got a spam filter if you want to use it.
I don't have a dkim record credit.
I don't need it and that's pretty much it.
It's just the bare minimum.
When you get your mailbox, you'll get a default mailbox being admin at whatever your domain was.
That's my one.
Okay.
So I can set that up in a final now.
So looking back at Crawford and my host I just happened to know for my email service is mail dot.
Private email dot com.
And the port is 465.
You might be using a corporate Microsoft Exchange server, so you'd be typing in the address and the
port for that.
He may be using some other SMTP servers somewhere else.
Sometimes a port might be 25 and sometimes a46, five.
Anyway, that's the host.
If you're using a domain from name shape like I am and you have set up the email server, it'll be mailed
a private email dot com port 465.
The user is your email account.
So my user is admin speak code dot net.
Yours will be admin at your domain if you bought it from nine cheap as well.
The password among commenting.
If your password contains a hash or a semicolon, you have to wrap it in triple quotes.
Okay.
So.
Perhaps your password is something very complicated and it's like that.
I'm not going to show you my real password.
No update that while I'm not recording.
Okay, so search file and key file, skip, verify it.
These are all okay to be left as default.
Now the from address will be the same address of the account that I'm using.
So it's going to be admin that has become a dot net.
So I'm going to delete that.
At minute aspect dot net, you can usually create a different named mailbox through your email provider
by creating aliases if you really wanted to.
But I'm just going to keep it simple.
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.
Doesn't matter if that's committed or not it's going to be from name rafinha.
Now the ello identity this one I normally use private email dot com private email dot com.
Now CAFAGNa will make a connection to my okay property motto.
Com 465.
Log in as my user password and try to send an email.
Now, if you're using a mobile phone through your work and you have your work email set up on your mobile
phone in the default mail application, you may have some SMTP settings there that you can view in a
general settings area of your phone.
You can pretty much just copy what you see and then put that into these places.
And also if your mail host is something like mail dot acme dot com down here for a low identity you
just right acme dot com.
So that's what I've done here just private email to com.
Just the same as that.
That seems to work okay for me.
So that is enough to control x to save?
Yes.
And we need to restock often on restart and check a status.
Okay.
Very good.
That's working.
Now we can test it.
So in the new contact points section of the alerting user interface, I can try test again.
Send a notification.
Okay.
And test alert sent.
So that works straight away for me.
Okay.
Also note that behind the scenes I updated my password.
Artist didn't show that in this recording.
So just make sure your username and your password is correct when you do your SMP settings in the graphite.
Any.
Okay.
So now look into the web mail client that I get with that private email service and I have one like
alert from provider that test I just sent called firing one tests.
Look, a final is just some dummy information alert and I'm test alert and I can silence it by pressing
the links there or even go to the alerts page itself.
A personal link there now.
Note here it says local host 3000.
If you're sending emails like that, you may want to see your domain name and steps written in there.
So to do that, go back into the Gryphon, any secret phonic or find any and just scroll down a little
bit.
Until you find the setting called roots you are all there and we can just hard code the euro all we
want to see.
So I'm going to say root your URL equals htp s slash bafana dot esp code dot net and then a slash like.
So let's test that.
Control X.
Yes.
And so restart instead us and good or good, let's send another test terminus.
Another test from the alerting panel here to send notification.
Okay, let's sent.
Okay.
I got a new email in my inbox that's going to have look at it and there it is.
It's a similar one.
Install the test alert.
Now the URLs in the email, use it to be a screw finance B code dot net slash alerting.
So that's correct.
So I can actually just click that, have a look at it and it isn't actually real.
So it's actually not showing up here or anything.
But you get the point.
You can just click and you can see your current issues showing up here and alert rules.
Okay, so just make sure you're using version 8.3 or later.
That way you'll get the unified alerting interface rather than the one that we had at the beginning
of the video.
Excellent.
So next video will actually use this to create a real alert from the system.
Excellent.