You can monitor EVERYTHING in your homelab with this
Transcript
Hey, is your stuff down right now? Is your Linux server up? Is that Hermes gateway responding? How about that vibe coded project you're super proud of? Websites? Is your NAS full? Is that hard drive about to fail? Docker, Proxmox, UniFi, Plex, Home Assistant? There is so much stuff to monitor now, but I just found a way to monitor everything. With this free open source software, I can monitor every AI
agent, service, VM, container. I can literally monitor anything and everything in my homelab. I can't believe this is free. So in this video, we're gonna set up Checkmk and have it monitor every single thing in my home lab, even my toilet. I'm not kidding about that. Watch, watch later. And we're not gonna stop there. We're gonna have my alerts sent to my AI IT department and they will solve
my problems for me. And then we'll get crazier. We're gonna connect my agents to the Checkmark API so they can configure
and monitor things on demand. So get your stinking coffee ready. It's time to monitor everything.
Now we're not gonna waste any time. We're gonna install Checkmark right now, you and me, and it's gonna take us less than five minutes. And a massive shout out to Checkmark for sponsoring this video and just saying, Hey Chuck, show them our cool free tool. That's it. Help them monitor all their stuff. So let's do that. Wait, actually it's pronounced Checkmk. I just learned that. And actually real quick, while Checkmk is amazing software and all monitor
pretty much anything you want, it does take some tinkering with the free version to make all that possible. I'm gonna show you all that. Now we're deploying this Checkmark monitoring server in our home lab. So keep in mind, you wanna put the server in a place where it can see all the stuff you want to watch. And here are the system requirements. Boom. Thank you editors. And here are my specs. Boom. I'm installing mine on a virtual machine. You can install it with Docker or via a package. So here we are at my VM. Don't blink. It's gonna be fast. Actually first, the first place we're gonna go is to Checkmark's website.
Then we'll go to downloads. I'm choosing Linux. Ubuntu 24.04 is my current version and we're doing
community edition. We'll copy this command right here. They make it super easy. Paste that into our terminal, download that little coffee break, and then
we'll install the package with this command right here. We'll just copy that paste that sucker go. Don't wanna continue. Yes I do. And it's done. And just to make sure everything went perfectly. We'll run this command right here. We'll do omd version. That looks good to me. And then we're going to create a Checkmark monitoring site with this command right here. We'll copy that, paste it here. sudo omd, create monitoring. It's creating a monitoring site. And by the way, this is probably the hardest part of this entire tutorial. and it's easy. It's done. Like let's go visit our website, our new monitoring site. Here's my IP address.
I'm gonna copy that and actually real quick before we do that, we need to actually start the server with the sudo omd start monitoring command and
we're done. So now with it started, we'll go out to our IP address forward
slash monitoring. There's Checkmark. And then we'll log in with the credentials that told us where in the terminal right here, there's your default admin user account
and your password. Don't steal mine.
And we're in, I told you it was gonna be fast. Now we're here. They do have a really fun tutorial on how to add all your stuff. You don't need that. That's why you have me here. So just ignore that for a bit. Now our first goal is to add a host that we can monitor for me. I'm gonna add a Linux server and it's actually a special one. You'll see why here in a moment. So to add our first host, we'll go to set up over here on the left, click
on that. And then we'll click on host right here. And then finally add host right here. And host name is where you'll add the either DNS name or IP address of the thing you're trying to monitor for me, it's gonna be a host IP address of 10.77.14.14, but hold on one second. What does it mean to monitor this Linux server? Like, how do we do that? When Checkmark, there are six ways we can do it. Now you might be familiar with something like ping. For example, if I were to open up my terminal actually from our monitoring terminal and type in ping 10.77.14.14, my Linux server, I'm now
seeing if my Linux server is up. I'm saying, Hey, are you awake? And he's responding. Yes, I am over and over and over. Now that's great, But I kind of want to know more than that. The best way to do that is with the Checkmark agent. An agent is something we install on the server, the thing we want to monitor and it's going to help us figure things out about it. Here's how we do it. Now I'm gonna open up another Checkmark window because I'm not done adding my host here. And then right down here, you'll see a section called agents, an agent for anything you could possibly want.
And what we care about right now is Linux. Click on that. A lot of stuff here, but all we care about is this section right here, the packaged agents. We have one for Debian based distros and one for RPM or red hat based
distros. Mine is Rocky Linux. So I'm gonna grab this. And what I mean by grab is I'm going to right click this link here and copy link address. Then I'm gonna log into my server. We'll type in curl dash capital O and then paste in our URL, hit enter.
It's gonna download it. It was done. That was quick. And then for me, I'll do dnf install dash Y period forward slash in the
package. I just downloaded. If you're on something like Ubuntu, it might be apt install. I'm going to install it. Ready, set, go complete. And then I'll add this firewall command to make sure I open up the port that my Checkmark server will need to access this server. Now that was it right now. There is an agent living on this Linux server. He's like the inside man, just sitting there ready to tell us all the secrets of that server. So now the agent installed, we just have to tell Checkmark that it's there. All we had done here so far is told it, Hey, this is the IP address. I want you to monitor, but also notice down here under monitoring agents, we have the option to test an agent connection.
Let's try it. We just added one. So it should work. Click on test fingers crossed. Yes, we got it. And really that's all we need to do. I'll just go up here and click on save and run service discovery. And this is actually a pretty fun part. Click on that. What this will do is auto discover everything about our server right now, Checkmark talking to that inside man. They're talking, look at all this stuff. Now what happened here is actually pretty sick Checkmark through its auto discovery, trying to figure out what's on my host. Use what's called plugins. They're right over here on the right.
And these plugins can expose the services they want to monitor. Like the heartbeat CRM resources plugin found that I have a critical NFS
service down. Dang it. But just look at all the stuff it found. These are all things that we can monitor on our server. So I'm pretty happy with that. So notice right now, these are all undecided services currently not being monitored. I wanna monitor all these. So at the top here, we can say, you know what? Let's do that. Monitor undecided services. Boom. Cool. They're now our monitored services. Notice down here on the left, we have changes with a notification icon.
We have three. Let's click on that. Right here. It gives us a summary of our changes and it wants us to actually commit these changes. Like kind of like code. You're gonna see this whenever you do anything, add a new host or whatever. So what do you say? We activate our pending changes right up here. Let's click on that activate. Now don't check it just yet. Give it about five minutes, but five minutes later, boom, here we are.
Let's look at all hosts and there he is. Let's click on him. There's all the services. You can see, we have the Perf-O-Meter over here. I kind of like that actually Perf-O-Meter and we're starting to get data. If I click on any one of these, like let's choose the, uh, CPU utilization, not a lot of time because we just started collecting data by
the way, it collects data every minute, every one of these things, every minute, It'll keep it for up to four years. And every one of these metrics has some default thresholds baked in on what's good and what's bad. So you can be alerted when something goes wrong. Now I'm embarrassed to say I haven't been monitoring my stuff like this. So I'm actually really excited to add all this. Okay. We got our first Linux host. Let's add three more ready set. And clearly I have some work to do while these are my Ceph cluster nodes.
You'll notice that when I go into what's monitored,
we're seeing some stuff, but we're not seeing everything. Like I don't see anything about Ceph, which describes what's happening with my NAS. But first, all we've added so far are just Linux hosts. I wanna see other stuff like networking. Can it monitor my network? Yeah. Let's make that happen right now. We're gonna go back to setup and host. Now notice so far we've like added individual hosts, but this time we're going to add a folder, add a folder. We're gonna label this folder networking, and this is gonna unlock something cool for us. It's gonna save us some time. Do you see what's happening right down here?
We have the option for a network scan. Let's set that up, enable it. Add a new IP range. I'll add mine in right now. And then the way we're going to discover our host and actually access what they're doing is with this wonderful technology right here. SNMP. You might recall the SNMP is one of the ways we can get access to
our host and see what they're doing. Spy on them. SNMP by the way, stands for the simple network management
protocol. And it's a service that is likely running on your routers and switches right now. Everything pretty much supports it. It's a universal standard, but you have to enable it. Let's go make sure it's enabled on my MikroTik switch. I'll get logged in and I'll enable SNMP. Let's see if the settings took. Yes. Enabled with my community name, networkchuck, and then get you back
to Checkmark Checkmk. I will enable SNMP right here. That's SNMP v2 or v3. And then I'll put credentials. That'd be the community name networkchuck, and that should be it.
So now what we can do is click on save and notice we have our folder here.
No host just yet. Again, we have to commit our changes. We'll go to changes. activate pending changes, but what it will do when it does scan is it will scan for every host in that subnet and attempt to use the SNMP credentials
to discover anything about it. It'll also be able to ping host and see if it finds things. And we'll see that happen here momentarily. And actually look at that already. We have six changes and these are, Hey, we found some hosts. Can we monitor these hosts? If we actually go to the folder, so we'll go to set up hosts and go to the folder. We see, they do show up there. And before we make the changes actually want to say, Hey, I want to monitor these things. Now let's do that. MikroTik. Yes. I'll select this. There's my UniFi controller and a UniFi switch.
That's all I'm gonna do right now. And with these selected, I can make some bulk changes. So I'll go to host edit attributes and down here under custom attributes,
which I think is kind of funny. These are custom attributes and they're saying, do not monitor this host. No, I do want to monitor this host. This is a productive system, which again, is also a very funny way to say
that production. So we'll save that and notice how that scary little sign
is gone now on these hosts. Next, what I'm gonna do is discover what's happening with these devices. So for example, my 24 port UniFi switch, I'm gonna select that and then at
the top here, I'll click on save and run service discovery and click on re
scan. It's gonna use the SNMP credentials and scan this host. And I do have SNMP enabled on that switch. And I do have the community networkchuck set up. That's kind of the authentication, the community string. And it found, look at that everything interfaces, CPU utilization, easy
for me to say uptime. And it looks like it already made these monitored services for me. So we're good to go. I'll do the same thing for the other hosts as well. Like for example, this UniFi controller has some undecided services. I'll accept all. Okay. Now to accept all of our changes, go here. I will activate pending changes. So now let's go see if our network stuff showed up. We'll go to monitor, go to all hosts. There they are. And like most things, you have to give it a second. I can see that things are being, well, seen and monitored, but you gotta give it a moment for it to find stuff.
And that's, that's the fun thing. So we're gonna stop for a moment, take a little coffee break. They have some stuff. Let's click on the MikroTik one, look at all this stuff. I love it. All the graphs on the side, the Perf-O-Meter. Oh, our journey just started here, but we can see everything. Hey look, there's Terry's port. It's been up a year and 108 days. Oh my gosh. I did not know that I need to reboot that thing. We got Linux. We got networking. Now what about Docker? Can we monitor our Docker host and actually see the containers? Yes, we can. Now we'll start with my primary Docker host.
And just like with our Linux host, we have to add an agent to it to be able to see all the goodies. So I'll get logged into the Docker host. I will download the Checkmk agent this time using the deb agent for Debian
based environments. And then I'll install it. sudo apt install that agent thing and go cool.
Now we can add our host to Checkmark, Checkmk. I'm never gonna get this right. Just like before set up host, add a host. I call it Hogwarts Docker zero one.
I noticed that name does not resolve. That's okay. I can actually add an IP address down here and it should make that shut up. Much better. That's all I need. I'll click save and run service discovery and it found everything except
Docker. It's not seeing anything Docker. Why? Because we need a plugin. You might recall that we have our plugins over here, our check plugins that will find a services. We can monitor all these right here default and will be discovered auto
magically with the community version. What will not be done automagically is the Docker plugin. It is here and we can use it. We just have to do a bit of work. That's the price of free. So real quick, I'll say monitor undecided services except all, but then
I'll go to setup. I'm gonna make this bigger for us. And under agents I'll select Linux. Yeah. I'm gonna search. I'll do control F search for Docker and there it is actually not that one.
This one, this right here, mk_docker.py is the Docker plugin built into
Checkmk that we can add to our host, but we have to manually add. So we'll right. Click that copy the link address, get back to our Linux
server, our Docker host. Actually first we do need python3-docker installed. So we'll do sudo apt install python3 -docker.
Then we will download that plugin, this command curl -o. I'll tell it where to go. And we're gonna put this in the place that Checkmk will look for, or rather the Checkmk agent will look for plugins. That's where we're downloading it. And then here's where we're downloading it from. We'll add some sudo action before it. Download it. We'll then do a chmod to make it executable with a plus x.
I'll then use this command, and this is where things get kind of complicated. And I told you we can do everything, but it requires just a bit of work. We got to dig for that gold. But this command right here is making a new directory for our config, and we're pulling down this Docker example config from our host. So there's the Docker config file as it continues over here.
And we're downloading that Docker config file. Ready, set, go. Failure. I need some sudo action, probably sudo before make directory,
possibly. And sudo before curl.
There we go. And then I'll run this command to get a list of all my Docker containers that I have on the server. Keep that there. We're gonna come back to it. It's important. You'll see why again work. We'll get back to Checkmk, go back to set up, go back to host, get to our
Docker host, click on save and run to service discovery, rescan and then
some magic should happen. Now it's gonna automatically find those Docker host and that Docker config, the plugin. There it is. Ah, we did it. Undecided services, Docker containers and Docker node info. We're not done yet. We're gonna monitor these undecided services. Click that little button up there. Actually, it's kind of a big button, except all. And while we're here, let's go ahead and go to changes and activate all these changes. Cause it's making me nervous. We haven't done that yet, but we're not quite done yet because we should be able to go to monitor and over here applications. We should be able to see our Docker containers.
But when we click on that right now, there's nothing let's fix that. So we'll go back to set up. We'll go back to host and we're gonna create another folder right here,
add folder. And we'll call this Docker containers.
Click on show more. you're gonna see everything we wanna mess with right now for IP address family. We'll click on this and say no IP. I know it's weird. And then over here with Checkmk agent API integrations, we'll check this and we'll say no API integrations and no Checkmk agent.
So it's like, don't check anything. Don't look anywhere. But then here's the secret sauce piggyback.
We're gonna select this and we're gonna change the setting to always use and expect piggyback data. Now, what the heck does that mean? It means that it's going to rely on another host to get its information.
It's gonna rely on the Docker host that we've already set up. It's gonna piggyback off that data to pull in these containers. Now we'll click on save at this point. Now let's get back into that Docker containers folder. And then at the top here in our menu, we'll click on host and we're gonna import host via CSV file.
Click on that. We'll make sure the import host option says content of CSV file. And then here is where we post the names of those Docker containers that we got from our terminal just earlier. I'm gonna grab these real quick,
copy them, paste it right here. And actually the first line, we need to add a header and it's gonna be host_name. I'll say perform automatic service discovery and I'll click on upload.
And we should see all of our stuff listed here to make sure it all looks good. Click on import and then start progress info. If found all of them. Perfect. And notice we have a bunch of changes coming in. Now, again, this is a free community version thing only that we had to do
here. The paid version, it takes care of a lot of that for you. Okay. Quick correction. Checkmk actually has three commercial additions,
not just one there's pro there's ultimate, which also comes in an MT
version MT for multi -tenancy. And then there's cloud, which is their SaaS platform. Go to our changes, activate our pending changes. And we'll give it a second little coffee break right now. we should be able to go to monitor. Let's look at all hosts. And there those Docker containers are right now dashes down. But also if I go to monitor now and go to applications where you are,
there you are. And then Docker containers, ah, they're right there. And they're up and all that data is coming in. Let's click on one of them. See what we can see. Uh, let's do NGINX. I use that one. I depend on that. We got CPU disc IO status of the container memory uptime.
Like that's pretty fire. I like this. I'm excited. We can actually see our containers. Can you contain yourself? You, you saw it coming. You know, it was gonna happen. No, I do have another Docker host with a bunch of Docker containers, but I'm not gonna add that myself. I'm lazy. I'm gonna have AI do that for me later.
Can we actually monitor Proxmox? Of course the Proxmox hosts themselves, but what about the con not containers, LXC containers and also the VMs. Can we see the individual VMs? Let's make that happen. The Proxmox is actually special the way it's monitored and actually it's gonna use this, the special agent API. We haven't talked about that yet. It's kind of exciting. It's very exciting. Now, first we're gonna add our Proxmox. We'll go to setup and host, click on add host.
I'll name mine, Hogwarts Proxmox one.
It won't resolve. I'll add the IP address down here. It'll check. We're good. And then under here, under monitoring agents for Checkmk, I
probably said Checkmark a million times at this point, API integrations. We're gonna check that and say configured API integrations, no Checkmk
agent. So we're officially not installing anything on Proxmox.
We're going to be integrating with his API and that's the special agent.
Oh, and here's a pro tip. You don't have to pick one or the other, run the Checkmk agent and the special agent together on the same host. Each one sees that machine from a different angle. So you get the full picture. With this scenario, we're not putting a secret agent inside the system that's embedded behind enemy lines telling us stuff.
No, we're not doing that. Checkmk is gonna reach out to the API and go boom. Like you already have these doors open. I've got a username and password. Can you tell me about this? Let's set that up right now. So actually first we need to save this and I'm not gonna click on save and run discovery cause I don't want to discover anything yet. I just wanna save and view folder. So save and view folder. Cool. Hogwarts Proxmox is just sitting here waiting for us. Now we have to set up that special agent. We're gonna go to set up once more and we're gonna go to the search box and we're gonna type in Proxmox And we'll select this first option,
Proxmox VE, this option right here, click on add rule, describe it however
you want, Proxmox. And then under here, under Proxmox VE settings, click
on username. And if you haven't already, you need to set up a Proxmox username and a Proxmox password for Checkmk. So here we'll add in that username inside of Checkmk, the password, the
port, which will be by default, 8006. Then we'll say specify Proxmox VE host via IP address. We're gonna set that setting. I'll disable SSL certificate validation cause I'm doing self -signed certificates. and then under conditions, we're gonna specify which host this will apply to. We're kind of setting a rule, like which of our hosts are actually Proxmox host. We'll leave everything the same except for clicking explicit host
and then selecting our host name, which is Hogwarts Proxmox one.
And we'll click on save. That's our rule. Now we'll go ahead and go to our changes and commit all of our changes. So we're gonna add that host, the Proxmox host we added, and also we're gonna add this rule. But now we're gonna go back to setup, back to host, back to Hogwarts
Proxmox one, and we'll do save and run service discovery again.
And boom, it found all of our Proxmox info on this host.
So yeah, we're gonna monitor all undecided services, except all go over
here and commit those changes or activate those pending changes. Now what's cool here. Watch this. If I go to monitor and I'll host this host right here, my
Docker host is actually a VM on that server, but I have to make sure the
name matches what's actually on the server. And it's not matched right now. I need to edit this. So I'll change the host name to Hogwarts Docker zero one.
I'll lowercase. Yes. Rename. I'll go back to set up and host, get back into my Hogwarts Docker zero one
and do a full rescan. And now it recognizes that it is indeed a Proxmox VM and it includes that
data and memory usage and everything. It's so cool. Snapshot age. I mean, come on, no snapshot found. We should fix that. But anyways, monitor all undecided, except all push these suckers, these changes get already. we're monitoring a million things. Proxmox, Docker, Linux host. I mean, oh, it's awesome. And what about websites? Websites? Can you monitor your stuff on the outside? Yes. Let's make it happen. We'll go to set up. We'll go to host. We've been here before. We'll add a host. I'll name this networkchuck .com. It can resolve that one. We'll see. We don't want any Checkmark agents or Checkmk agents or API.
None of that. And I'll just say save and view folder. Cause we're gonna do that weird thing where we add a rule. So we'll go to set up and search for HTTP. There it is. check HTTP web service right here. Click on that, we'll add a rule. Now let's call this HTTP stuff because this could possibly check multiple
hosts. And then under HTTP web service endpoints to monitor, I'll click on
add new endpoint. We'll name the service, I'll just call it NetworkChuck. For the URL, I'll add my URL, networkcheck .com. And then we can specify settings by clicking on this button here, individual settings to use for this endpoint. Or we can check for status codes too, like 404 and things. We can search for strings. So like I can search for in the body, NetworkChuck.
So you can actually make sure your website is saying your stuff and maybe it didn't get like taken over or hacked. And then just like before with Proxmox, under conditions, I'll say for an
explicit host, networkchuck .com click on safe. And we'll go back to our setup, back to our host over here to network chuck. I'll do save and run service discovery rescan right now.
And there it is. The service is HTTPS networkchuck, and we're using the HTTP plugin.
Oh, I forgot to activate the changes. All right. Now let's go to monitor and all host and networkchuck .com is up. clicking on that. And if we click on that service, I think we get more info here. Oh yeah. Look at all this expected string. networkchuck found it, found it. All right. I do wanna change one thing. I'm gonna change the rule to check for a different word to see if it fails. Let's say the string will be, I don't know, pickles or, you know, like something real like, uh, Monero, save that, commit that. And if we go to monitoring, we should see something fail, right?
Actually probably have to do our host discovery again. Oh yeah. There it goes. Critical expected string, not found Monero, not found. Uh, but let me undo those changes. Now I told you, We're gonna monitor everything. And one thing I really want to monitor is my recording machine. The one I'm on right now, this is my windows machine. It's a gaming PC. Let's see how good Checkmk's windows monitoring is. And I haven't seen this at all yet. I'm really excited to see that. So for windows, we'll go to setup and we'll go to agents and click on
windows and we should see the agent right there. I can click on that and actually download straight from there. Yes. Keep it. And let me install it. Accept it, install click on finish. And then we'll add our host set up host at host. My machine's name is Deb too. Comment below. If you remember Deb, do you know who Deb is? If you do, you're an OG. I'll specify my IP address for this host. Let's test the agent connection. Oh, we have a firewall issue. I need to add a new rule. Let me open up my terminal and add that rule right now. And I'll probably need to open this inside a privileged terminal.
So I'll right click that and say, run as admin. I'll run it. New rule made. Let's try the test one more time. Retest. Oh, it hates me. The firewall rule didn't quite work. All I had to do is restart the Checkmark agent service, Checkmk service on
my PC and it worked. And that was all I have to do save and run. It's updating. And what did it find? CPU disc file system. I'm running out of space, dude, ton of stuff. I want it all except all apply all activate everything.
Okay. Deb is already let's click on Deb and there's all this stuff.
Now look at this. On my interface, my network interface, I've got some stuff, some warnings.
Speed. It should be a 10 gig. It's five gig. That's some errors. I mean, this is already paying off file system, man, almost out of space. My windows time service is not running. Why? I'm learning some stuff right now. My offset is two seconds, which is like forever in time world. Now I know what you might be thinking, Chuck, this is just monitoring software. We've seen this before. You've shown stuff like this before. What else does this do? Let me show you. So like right now, this server, I told you it's a special server, but you can't see that from here because it's not monitoring everything just yet that I have on the server.
The default plugins don't do it. So I'll need more plugins. That's the secret. Now, speaking of stinking plugins, I just found something really bad. Watch this. It's actually one node in a four node cluster. One, two, three, four. It's a Ceph cluster and that's my NAS. And I added the Ceph plugin so it could see all the NAS stuff.
And I found something nasty. Dude, look at my SSD pool. 97 % full. I have to offload this video. I'm recording right now to this and I don't know how I'm gonna do that. I gotta fix it. This stuff is already helping me while I'm recording for this. So powerful. Thankfully Checkmk. I said it right that time. Yes. You owe me a sip of coffee. That's the drinking game we play. Thankfully they do have plugins for Ceph and also notice we don't have any hard drive information either. So in the same way we added it for Docker, we're gonna add plugins for my Ceph and my hard drives, the smart POSIX stuff.
And so with Ceph and my hard drive stuff, I can see everything on every one of our hard drives. And there's a lot of hard drives in there. Look at this. Isn't this awesome? Temperature and everything. Now, if you're new to monitoring software, getting all of this like this is not normal. Normally you're very limited by the number of hosts and services. You can monitor. And this gives you everything. This is the ultimate home lab thing. It's the ultimate business thing. I'm a business and I'm running this for me. It's freaking great. Being able to see every stinking little thing I do
and monitor and, oh, just, oh, I love it so much.
Now I want you to get back to this idea that you can literally monitor anything with this software. So far, we've been doing a bunch of built in things, things you might expect from a monitoring software, but you know what felt kind of lacking the UniFi stuff. I wanna see more and thankfully you can find a plugin for that. What do you mean find it's not here in Checkmk. They actually have a marketplace where people can submit their own plugins and there's one for UniFi. You wanna see it? Let's go. I haven't tried this yet. So I'm really excited. The site is exchange .Checkmk .com.
I'm gonna browse some packages here. Search for UniFi. There it is right there. UniFi controller, special agent. Now of course install at your own risk, but I'm feeling dangerous. I'll switch over from the description to all versions right here.
And I should see my file. I can download it. But what I think I'll do is I'll just right click and copy that link. And I'll get logged into my Checkmk server. I'll download the sucker, curl dash capital O paste that in. Got it. And then I'll do mkp, the command mkp add unifi-3.0.0
.mkp. It's a file. We just downloaded. See what happens. Oh, command mkp not found. Oh, I think I have to become the user. So I'll do sudo su. su is for switch user and I'm gonna become the monitoring user.
Is that what I have to do? Yes. That's what I had to do. Okay. Now let's do that same command. Look at us learning together. Let's run it. Add yes. And now we have to enable mkp, enable unifi-3.0.0.mkp. Oh wait, wait, wait, no, no, no. You don't enable the file name. You say enable unifi 3.0.0. Okay, cool. So we downloaded a plugin from the marketplace. We installed it. We enabled it. So then we'll get in there and add the rule, add a few parameters, do service discovery. I also had to do that weird folder thing to import all the hosts that the controller might find and boom.
Now I have stuff. I look at my host, for example, my living room AP, I get all the info. And that's all through piggybacking off that one API service. And I can see like all the SSIDs and their performance right from here.
That's pretty sick. Okay, cool. We found a plugin and we installed it, but what about stuff we wanna monitor? That's not out there. What if we want to build a plugin and we can do that? Plex is something I want to add. I wanna see everything with my Plex server. I wanna monitor everything in one place. Is that possible? Yes, it is. So I'm gonna have my AI build a plugin for me. Here's what I wanna see. I wanna see monitoring status. I wanna see who's watching, who's watching what, how many shows. Build the thing. Here's my Plex token. It's already on the server. Throw the plugin on there and test it for me.
Go. Get to work, coffee break. I'm not kidding. That built it wicked fast. Now I need to add that rule and the host. Set up, host, add host. You know the drill. Now when I add the rule, I wanna look for integrate Nagios plugins.
There we go. I'll add a rule. I'll name the service Plex. It'll be a command line run. Look at my Plex host. And it's really that simple. Like we're just executing a script and telling Checkmk to look at that and
make it happen. Save. We'll activate. Okay, Plex is ready to go. Check this out. I'll get into that service. Actually right here you see that I'm watching Seinfeld. It's got the number of everything. It's so cool. How sick is that? And while you weren't looking, I added this too. Home Assistant. I got full Home Assistant monitoring here. I can see the number of cameras that are up and that are unavailable, which is a lot of them. What's going on? The number of entities over time. And then I added this too. Air quality, number of lights that are on and off.
I see it changing right there. Motion events, look at that. And this is just like, hey, I wanna see this. I could add so much more and monitor everything. Now by the way, what these are called, these checks we're doing are called active checks. They're not installed on the device itself, like the thing
that we're monitoring, like Home Assistant. There's nothing running on there. It's a script that we have on Checkmk, and it's going out and doing
something. This one's probably the best thing I'm monitoring out of this entire video. I'm not kidding. I'm monitoring my Hermes agents. Check this out. I've got Hermes agent. Her name is Hermione. Here she is. She's on her own VM. So when we jump in there, you're going to see lots of things like her CPU load and CPU load utilization and file system. But you know what else you can see her Hermes crons. Are those still running? Cool. Her Hermes gateway. Is that up? Yes. Her Hermes model login. It's good for 91 hours. She's good right now. Is she replying? Has she been used? I can look, I can see how much she's actually doing.
These are just things I made up out of thin air. Uh, how about her usage? How sick is that? If you're like me and you're running a lot of Hermes agents, being able to put them all in one interface and be able to monitor all this. Are you kidding me? It's the best now, by the way, the way I did this, she's a Linux machine, like any other machine we have. So she has a Checkmk agent running on her, but you can actually have local
scripts running that the agent will itself execute. If I LS this directory here, this is where we put those scripts and have one called Hermes agent. If I run this, this is all it's doing just this. And it's reporting back as a metric to Checkmk. So whatever you can program or script right here, you can monitor anything, anything, and just putting it there shows up as a service on
Hermione and Checkmk. Okay. Monitoring all this stuff is great, but what happens when things go down? How will we find out? I can just sit here and watch this all day. even though I kind of want to, we need alerts and we can do that. Absolutely. I'm gonna show you real quick, what it looks like to set up an alert with slack. I'll go to set up notifications over here under events.
And at the top here, I'll click add notification rule. We're gonna keep the defaults next step, filter, keep his defaults. Now our method won't be email. That's gonna be slack and you can see we have other options as well. Like Mattermost we'll create our parameters. It's gonna be a web hook and I have this in slack over here. I'm not gonna show it to you though. I'll save that next. The recipient will add a recipient at cmkadmin next, next, next.
Apply a test notification rule. Actually, I won't test that. I just wanna do it live. So I'm gonna break Hermione. I'm gonna stop her gateway. Her gateway is shutting down. The monitor should pick it up after about a minute. And I just got it. If you look right here, there it is, sent to Slack. And I just did that live with you. Like that was really easy to set up. Now I need to bring her back because people are gonna get mad. Actually, it should send me a message when she comes back up. Boom, recovery, she's back up. I love it. This is so sick, right?
Now, what if I had an issue and then it got sent to my AI IT department
and they solved it. Let's test that. So set up notifications. I'm going to focus on the filtering of hosts. I'm just going to look at Hermione and for her service filter, I want it
to be just the Hermes gateway. And then my notification method is gonna be a plugin, a script that I already installed called Paperclip, which I just made a video about that. Check it out somewhere around here. It's how I run my IT department. Essentially, this is just telling it at how to reach Paperclip and create a task on Paperclip. I'll create some parameters, really just the description, that's it. Next for recipient, we're moving all contacts, don't want that. I'll just have it go to the default cmkadmin. And lastly, with general properties, I'll just call this ticket to the IT department. Let's review it and we'll apply.
Now I'm gonna open up Paperclip. I'm gonna bring Hermione down. Her gateway is stopped and we'll see if a ticket comes in for Ron to fix it. Yes, are you seeing this? This is so freaking cool. Let's see what the ticket says. All right, let's see what he does. Okay. Ron just finished. Let's see what he did. I go to my decisions and he did it. He restarted the gateway. Let me go check and see if the work was done. Let's see if Hermione is indeed up. Yeah. Running. It's been up six minutes. Good job, Ron. How cool is that? IT department, man, we got it going.
Now time for probably the best part of this. And that's being able to hand over the keys to this monitoring software, Checkmk to an AI agent and say, Hey, do this for me.
Like once you've gotten the ropes like you did in this video, now you can feel confident to go. You know what? I know how this works. Let me have my AI agent do this for me. Like I added some of my hosts, but I have a lot more to add.
I just wanna monitor things. So anyways, check this out. We're gonna go to setup. We're gonna go to, I'm just gonna search for users. There we go, users. And then we'll go to add user, name it, I don't know. Maybe I'll give Ron access to this, Ron Weasley. And the key here is we're gonna make it an automation secret for machine accounts. And for the roles, we'll make him an administrator. And that's it, save. And then I'll commit Ron's changes, activate, and that's it. Now you might notice that I already have an automation in





