OK, so what we'll do now is we'll create an alert for when an S&P device goes offline, potentially
one of the problems you got with using alerts, hunger Fana, and that is you're unable to create alerts
for four template variables.
So basically what we're going to need to do for everything we want to alert, we're going to need to
create a new graph and add an alert to that graph.
So perhaps in future versions of Gryffindor, we'll be able to use template variables, but not at the
moment, six point four point three.
OK, so let's go down to Dashboard's manage and we'll create a new dashboard.
Let's add a query select measurement SCMP where I can host to Kronenburg.
At the time, we don't care about the visualisations in this one, we're just looking at the numbers,
we're going to create an alert on it.
General, I'm going to call it.
S&P.
Time to coin, Doug.
Alert crit alert is set in the up time to control alert.
I'm going to evaluate for one minute for two minutes.
I'll explain that in the second.
And the query that will run every one minutes will be.
Within the last 30 seconds.
There is no value.
So for every one minute he will run this test, and if that evaluates to true, it will go into a state
and if it's pending for two minutes, it will then go into an alert state and I'll get an email.
So let's just set the email notification channel down here so I get the email.
Save this, I'm going to call it alert.
Monitor safe, excellent, let's add another panel to that very quickly for alert list, OK?
Currently, the status of Milah is unknown.
So I just come.
It'll do a test in a moment.
I'm going to refresh the screen every five seconds and I'm going to change the time range to five minutes.
OK, so these are the last up time values coming through and a test will be run any moment now.
And he should have to to.
OK, there we go.
Okay.
System.
Well, S&P up time.
OK.
Will it sit for a moment, all this fuss, fastforward the video for one minute, so we got some time
there.
AK myosin MP devices just fine, we're getting responses from.
There's no need to alert.
Let's turn off the device now while this off the service.
I'm on my two Koinadugu.
Servoz, I'm going to turn off S&P impeding.
Stop, Pechanga Fana now is a condition is run every minute, so after one minute, if it decides the
last 30 seconds there was no value, it will go into a pending state.
And we'll see that on the graph as well.
Ago, within the last 30 seconds, there was no value, so it's impending, it may to be impending for
two minutes before we get another.
Like I said, that's been pending for two minutes, we're now in the alert phase alerting this to my
emails.
Let we go to my spam box, so I haven't quite listed it yet, incident pay up, time to Koinadugu alert.
And we get was no data, I get a little graph as well.
We're interested.
Excellent, later.
Let's now turn S&P back on.
Go back and see what happens next, one minute check if the last 30 seconds were OK, you will go back
to OK, OK, OK, that's a little green dot.
I check my emails again.
Here we go, alerting, OK?
OK, it's an impact on to control, and we got a graph.
Being great again, excellent.
Let's look at those settings again.
More specifically.
OK, so this is the alert rule evaluates every one minute if this evaluates to true condition.
It goes on, depending if it's been pending for two minutes, it will go into alert.
Now we can either sit this at zero and that will go into alert as soon as it goes, depending.
Or we can just leave that even to one minutes or even or even ten minutes.
It's up to you.
If you have these values too small, you you'll get what's known as alert flapping.
It's error, OK, error, OK, what often and since S&P actually runs on UDP by P protocol, it's an
unreliable communications protocol, so it'll be moments when there is no response for S&P.
So, I mean, this condition now is likely to happen quite often.
So, you know, I can also sit there for one minute if I wanted to.
So it's kind of best to have some buffer there.
So I'm going to have one one one and save that.
I'm going to create another two conditions for my resident pay devices, remembering we have to do this
manually in Gravano because we're unable to use template variables.
I was going to fast forward that bit.
The guy there is three separate S&P up time alerts credit.
Quite apart from megafauna server as well, I call on 27 zero zero one, I mean, it should probably.
Test your grandfather, Serbo availability, using a different system, but doing it here anyway.
Very good, so we can see all these things are running and I'll get alerts when I need to.