Latest / CyberSecurity Summary / Zabbix 5 IT Infrastructure Monitoring Cookbook: Explore the new features of Zabbix 5 for designing, building, and maintaining your Zabbix
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. We're here to give
- 0:02Speaker 1: you that fast track, that real expertise on the industries
- 0:06Speaker 1: well most critical topics. That's the plan, and today we
- 0:10Speaker 1: are really diving deep our mission mastering modern IT infrastructure monitoring. Yeah,
- 0:16Speaker 1: and our guide for this is some really comprehensive material
- 0:21Speaker 1: compiled from the zabx five IT Infrastructure Monitoring pickbook right
- 0:25Speaker 1: and for.
- 0:26Speaker 2: You listening in, the goal here is simple, a complete,
- 0:30Speaker 2: but you know, fast understanding of zabix five.
- 0:32Speaker 3: Architecture cutting through the noise exactly.
- 0:34Speaker 2: We're focusing on the core structure, the advanced ways it
- 0:38Speaker 2: grabs data and crucially how to scale it. Everything you
- 0:42Speaker 2: really need for a robust setup.
- 0:43Speaker 1: And that timing on this couldn't be better really, zabx
- 0:46Speaker 1: five it's an LTS release, long term support. Companies bet
- 0:50Speaker 1: their infrastructure health on this for years. So getting these
- 0:52Speaker 1: fundamentals right right now super critical.
- 0:54Speaker 2: Absolutely.
- 0:55Speaker 1: Okay, So let's unpack this a bit. What are the
- 0:57Speaker 1: absolute foundational bits needed to just make as run and
- 1:01Speaker 1: maybe more importantly, what's that single essential metric, the one
- 1:05Speaker 1: thing that tells you if your serious monitoring setup can
- 1:09Speaker 1: actually handle the load. You're throwing at it.
- 1:11Speaker 2: Right. Architecturally, zabx needs three core components. They're constantly talking
- 1:16Speaker 2: three main parts. Yeah, you've got the Zavic server. That's
- 1:18Speaker 2: the central brain doing the polling, the processing.
- 1:21Speaker 1: Got it.
- 1:21Speaker 3: The engine the engine.
- 1:23Speaker 2: Then the database usually Maria dB, maybe Postgres. Well, that's
- 1:27Speaker 2: the huge repository for all your time series data. It
- 1:29Speaker 2: gets big.
- 1:30Speaker 3: The data store exactly.
- 1:31Speaker 2: And finally the zabex front end. That's the WebUI you
- 1:35Speaker 2: interact with, served up by Apache or NGI NX typically.
- 1:41Speaker 1: So engine, data store, dashboard makes sense. Now, before we
- 1:45Speaker 1: get into performance, where does a listener actually find all
- 1:47Speaker 1: these metrics and settings we're about to talk about.
- 1:50Speaker 2: Good point that dashboard. The front end its structured pretty clearly.
- 1:54Speaker 2: When you log in, you see these main categories monitoring, inventory, reports,
- 1:58Speaker 2: configuration and administration. Okay, all the key stuff we'll discuss today.
- 2:02Speaker 2: It fits neatly into one of those five areas. Makes
- 2:05Speaker 2: it easier to navigate. Now, that critical metric you asked about,
- 2:09Speaker 2: the one that governs scale, that's.
- 2:11Speaker 1: Nvps MVPs new values per second. Why is that number
- 2:16Speaker 1: so incredibly important in a high volume system?
- 2:20Speaker 2: Think of MVPs as the ingestion rate. It's the average
- 2:23Speaker 2: number of new data points, new readings from your items
- 2:26Speaker 2: that the Zavik server is either receiving or requesting every single.
- 2:31Speaker 3: Second, per second, wow, per second.
- 2:33Speaker 2: It is absolutely the single best measure of the load
- 2:36Speaker 2: on your server, both right now and what you can expect.
- 2:39Speaker 1: So it predicts the future almost.
- 2:41Speaker 3: In a way.
- 2:41Speaker 2: Yes, if you see that MVPs number climbing steadily, staying hi,
- 2:45Speaker 2: that's your definitive signal. It tells you exactly when and
- 2:48Speaker 2: how much you need to beef up your server's CPU
- 2:50Speaker 2: and memory. Right, you ignore nvps at your own peril.
- 2:53Speaker 1: Basically, Okay, message received. If MVPs is the heartbeat, let's
- 2:57Speaker 1: talk about what we're actually feeding this engine. Monitoring isn't
- 3:01Speaker 1: just about pings anymore. You need custom data, sometimes asynchronous stuff.
- 3:04Speaker 1: How does zabx five give you that flexibility beyond just
- 3:07Speaker 1: basic checks?
- 3:08Speaker 2: Well, it starts the agent simple checks, like you know,
- 3:10Speaker 2: is SSH port twenty two open? Those are still there, sure, But.
- 3:14Speaker 1: The big shift is to Zavik's Agent two. It's written in.
- 3:17Speaker 3: Go lang ah go okay, and that.
- 3:20Speaker 1: Matters because Go natively handles concurrency and asynchronous tasks much better.
- 3:25Speaker 1: The result a much lighter footprint on resources.
- 3:29Speaker 2: Which is huge and containerized setups or just large virtual.
- 3:32Speaker 3: Environments exactly invaluable.
- 3:34Speaker 2: So that's the tech choice explained. But for really custom
- 3:37Speaker 2: bespoke data, the sources talk a lot about this trapper mechanism.
- 3:41Speaker 2: If agent two is so advanced, why do we need
- 3:44Speaker 2: this separate trapper thing. Isn't that just adding complexity?
- 3:47Speaker 1: It's a fair pultion. They serve slightly different roles, though
- 3:50Speaker 1: the agent typically pulls on a set schedule right check
- 3:53Speaker 1: this every sixty seconds. The trapper is for asynchronous data
- 3:57Speaker 1: data that maybe comes from some external script on the
- 4:00Speaker 1: host and you don't know exactly when it'll finish.
- 4:02Speaker 2: Ah okay, like a long running job.
- 4:04Speaker 1: Precisely, so, you set up a zabx trapper item on
- 4:07Speaker 1: the server side. It just waits.
- 4:08Speaker 2: Then on the host being monitored, you use the ZABC
- 4:11Speaker 2: sender utility. That utility actively pushes the result, maybe from
- 4:16Speaker 2: your complex Python script or cron job, straight to the
- 4:19Speaker 2: server when the result is ready.
- 4:21Speaker 1: So the server isn't asking, it's just listening for that
- 4:23Speaker 1: specific data to.
- 4:25Speaker 2: Arrive, exactly passive listening on the server, active sending from
- 4:28Speaker 2: the host.
- 4:29Speaker 1: That makes sense. It's the gateway for data that doesn't
- 4:31Speaker 1: fit the regular polling schedule. Now here's where it seems
- 4:34Speaker 1: to get really powerful. Though getting raw data is one thing,
- 4:37Speaker 1: making it useful is another. Yeah, tell us about this
- 4:40Speaker 1: preprocessing layer.
- 4:42Speaker 2: Oh, preprocessing is an absolute game changer. It's data manipulation
- 4:45Speaker 2: that happens before the value even lands.
- 4:48Speaker 3: In the database, before storage. Okay, yes, and.
- 4:50Speaker 2: Its main goal is efficiency. One way is using things
- 4:54Speaker 2: like dependent.
- 4:55Speaker 3: Items pendent item.
- 4:56Speaker 2: Think of it like this. You make one single request
- 5:00Speaker 2: to get say, a big chunk of status info a
- 5:02Speaker 2: master item check right, then depend on items. Let you
- 5:05Speaker 2: pull five specific metrics out of that single chunk of data,
- 5:09Speaker 2: all for the cost of just one network call one
- 5:12Speaker 2: interval check.
- 5:13Speaker 1: Ah. So instead of five separate checks for CPU RAM
- 5:17Speaker 1: disc uptime, you do one big check and peel off
- 5:21Speaker 1: the bits.
- 5:21Speaker 2: You need precisely. It saves a massive amount of overhead
- 5:24Speaker 2: on the network in the agent.
- 5:25Speaker 1: Okay, that's clever.
- 5:26Speaker 2: And often that one big status check it dumps out
- 5:29Speaker 2: just messy unstructured text. Think of the raw output from
- 5:33Speaker 2: like if canfig on Linux run via system dot.
- 5:36Speaker 1: Run yet tons of text?
- 5:37Speaker 2: This is where what you called the rejecs hack comes in.
- 5:39Speaker 2: You use preprocessing with a regular expression rejects to.
- 5:43Speaker 3: Scan that raw text, find the pattern.
- 5:45Speaker 2: And cleanly extract just the single number you care about,
- 5:48Speaker 2: like total rx bites for interface ends one ninety two.
- 5:52Speaker 2: You turn that text chaos into a clean, usable number
- 5:55Speaker 2: right at the door.
- 5:55Speaker 1: That's fantastic. It shifts the cleanup work away from the
- 5:58Speaker 1: network into the server's processing, where it's more efficient. I
- 6:01Speaker 1: think you remember another database tip related to this, something
- 6:04Speaker 1: about duplicates.
- 6:05Speaker 2: Yes, exactly, for values that don't change often, maybe a
- 6:08Speaker 2: server serial number for a more version, that kind of
- 6:10Speaker 2: thing that's static mostly right, you use the discard unchanged
- 6:14Speaker 2: preprocessing step. If zavix gets the same value one hundred
- 6:17Speaker 2: times in a row, it won't write one hundred identical
- 6:20Speaker 2: entries into the database.
- 6:22Speaker 1: Ah, so it just stores the first one and ignores
- 6:24Speaker 1: the rest until it changes.
- 6:26Speaker 3: Correct.
- 6:26Speaker 2: This prevents just pointless bloating of your database over time.
- 6:30Speaker 2: Super important for long term.
- 6:31Speaker 1: Health, definitely. Okay, so we've collected and cleaned the data.
- 6:35Speaker 1: Now we need to act on it. Alerting. We've all
- 6:37Speaker 1: been there. The flapping alert goes critical then okay, then
- 6:41Speaker 1: critical fifty times an hour floods your inbox. How does
- 6:45Speaker 1: Zavix help stop that alert fatigue nightmare?
- 6:47Speaker 2: The cure for that horror show is the recovery expression.
- 6:50Speaker 2: Setting a simple trigger is easy CPU usage fifty percent
- 6:54Speaker 2: trigger an alert.
- 6:55Speaker 1: Right, and the naive setup recovers as soon as it
- 6:58Speaker 1: hits forty nine percent.
- 6:59Speaker 2: Exactly which to flapping. The recovery expression demands stability. You
- 7:03Speaker 2: define a separate condition for the alert to clear, it
- 7:06Speaker 2: has to move significantly away from the problem threshold.
- 7:09Speaker 1: So like trigger a fifty percent, but only recover when
- 7:11Speaker 1: it's back down to say forty percent.
- 7:13Speaker 2: Pcisely that the system has to prove its stable and
- 7:16Speaker 2: well clear of the danger zone before the alarm goes silent.
- 7:19Speaker 1: That makes the alerts actually meaningful again.
- 7:22Speaker 2: Nice, absolutely, and organizationally, you need structure too. Use tags
- 7:26Speaker 2: from day one, AD service SSH or application billing to
- 7:30Speaker 2: every related trigger so you.
- 7:31Speaker 1: Can filter and rout alerts properly.
- 7:33Speaker 2: Yes, and customize your severity levels. Don't stick with the
- 7:36Speaker 2: defaults like disaster high warning. If your company uses P one,
- 7:40Speaker 2: P two, P three, change the names in Zavik so
- 7:43Speaker 2: the alerts immediately make sense in your team's context.
- 7:46Speaker 1: Good practical tips. Now let's talk scaling. The actual architecture.
- 7:51Speaker 1: MVPs tells us the load is high. But for medium, large,
- 7:54Speaker 1: geographically dispersed environments, what's the component that handles spreading out
- 8:00Speaker 1: that monitoring work.
- 8:01Speaker 2: That's where zab's proxies come in. They are absolutely essential
- 8:04Speaker 2: for offloading work from the central ZABK server.
- 8:06Speaker 1: How do they do that?
- 8:07Speaker 2: A proxy sits closer to the devices it monitors, maybe
- 8:10Speaker 2: in a remote data center or a specific network segment.
- 8:13Speaker 2: It collects data locally, holds on to it, maybe does
- 8:15Speaker 2: some pre processing.
- 8:17Speaker 1: Preprocessing can happen on the proxy too.
- 8:19Speaker 2: Yes, some of it. Then it compresses that data and
- 8:22Speaker 2: forwards it efficiently back to the main ZABC server. It
- 8:25Speaker 2: reduces the load on the central server significantly.
- 8:28Speaker 1: Okay, Now, when deploying these proxies, you've got firewalls, network segmentation.
- 8:33Speaker 1: Are there different types performance trade offs?
- 8:35Speaker 3: Yeah?
- 8:36Speaker 2: There are two main modes, passive and active proxies. We
- 8:39Speaker 2: strongly strongly recommend active proxies. Why active Two big reasons. First,
- 8:44Speaker 2: they're generally faster because they proactively push their collected data
- 8:48Speaker 2: to the server whenever they have new stuff. They don't
- 8:50Speaker 2: wait to be asked.
- 8:51Speaker 1: Okay, less latency, right.
- 8:53Speaker 2: But second, and often more importantly, for network teams, an
- 8:56Speaker 2: active proxy only needs one outbound connection and initiated from
- 9:01Speaker 2: the proxy to the server.
- 9:02Speaker 3: Uh so the proxy calls home exactly.
- 9:04Speaker 2: Compare that to passive proxies, where the central server has
- 9:07Speaker 2: to be able to initiate connections to potentially dozens or
- 9:11Speaker 2: hundreds of proxies. Firewall rule nightmare.
- 9:14Speaker 1: Definitely simplifying firewall management is a massive win in big companies. Okay,
- 9:19Speaker 1: Sticking with operational wins, Yeah, let's hit the biggest maintenance
- 9:23Speaker 1: headache for any monitoring system over time, the database. How
- 9:28Speaker 1: do we stop it from becoming this unmanageable beast? Yeah?
- 9:31Speaker 2: The database is always the challenge long term. The bottlenet
- 9:34Speaker 2: comes from the default Zabas process called the housekeeper.
- 9:37Speaker 1: Housekeeper sounds helpful, well.
- 9:39Speaker 2: It tries to be. When data gets old. Say your
- 9:41Speaker 2: history retention is ninety days, the housekeeper is responsible for
- 9:44Speaker 2: deleting data older than that.
- 9:46Speaker 3: Okay, seems necessary, but it deletes.
- 9:48Speaker 2: That data roe bi row. Imagine millions, maybe billions of
- 9:52Speaker 2: rows as your database grows into terabytes. This row by
- 9:56Speaker 2: roe deletion just consumes immense IOCPU. Yeah, it can bring
- 10:00Speaker 2: your server performance to its knees during cleanup OUCH.
- 10:04Speaker 1: So relying on the built and cleaner eventually just grinds
- 10:06Speaker 1: everything to a halt. What's the better way? The advanced solution?
- 10:10Speaker 2: You absolutely need to move to database native methods. For
- 10:12Speaker 2: my sqel, that's my Sqel partitioning. For postgrescul it's leveraging
- 10:16Speaker 2: the timescale dB extension, which brings time series superpowers to.
- 10:19Speaker 1: Postgross partitioning or timescale deb How do they avoid the
- 10:24Speaker 1: row by row problem?
- 10:25Speaker 2: They work with time based chunks instead of deleting individual rows.
- 10:29Speaker 2: The database is structured so you can just drop an
- 10:32Speaker 2: entire old partition, say delete all data from March instantly.
- 10:37Speaker 1: Like throwing away a whole filing cabinet drawer instead of
- 10:39Speaker 1: shredding each paper inside.
- 10:41Speaker 2: Exactly that analogy. It's incredibly efficient. The cleanup becomes almost instantaneous,
- 10:46Speaker 2: freeing up massive resources.
- 10:48Speaker 1: That sounds like a no brainer from a performance perspective.
- 10:51Speaker 1: But does switching to partitioning have any functional trade offs
- 10:55Speaker 1: for the user? Configuring zavig it does.
- 10:58Speaker 2: Yeah, that's the key planning points. You implement native partitioning
- 11:01Speaker 2: your history and trend data retention settings often become global
- 11:05Speaker 2: database parameters. You typically lose the ability to set say
- 11:09Speaker 2: seven days history for this item, but ninety days for
- 11:12Speaker 2: that item.
- 11:12Speaker 1: Ah. So you gain huge efficiency, but lose some of
- 11:15Speaker 1: that fine grain control over retention per item.
- 11:18Speaker 2: That's the main trade off. You need to plan your
- 11:20Speaker 2: retention strategy more globally.
- 11:22Speaker 1: Got it important consideration? Okay, last, big area hybrid cloud.
- 11:27Speaker 1: Lots of critical metrics now live in places like AWS,
- 11:30Speaker 1: cloud Watch or Azure Monitor. How does zabix stay relevant?
- 11:34Speaker 1: How does it pull data that's behind these proprietary cloud CLIs.
- 11:39Speaker 2: Zabx uses a really powerful combo here, zabks agent user
- 11:42Speaker 2: parameters plus the cloud provider's own CLI tools.
- 11:45Speaker 1: Okay, so you can saw the awcli or the azurecli where.
- 11:49Speaker 2: Right onto the same machine where the zabs Agent two
- 11:51Speaker 2: is running. Could be an EC two instance, could be
- 11:54Speaker 2: on prem machine that needs to query the cloud. Okay,
- 11:56Speaker 2: then you can figure a user parameter within the Zavik's
- 11:59Speaker 2: agent confis figuration. This user parameter basically just tells the
- 12:02Speaker 2: agent run this specific AWSCLI command.
- 12:06Speaker 1: The agent cs like a secure little proxy to run
- 12:08Speaker 1: the cloud command locally precisely.
- 12:10Speaker 2: The agent executes, the command, gets the output, maybe your
- 12:13Speaker 2: sqsq depth or soupu utilization from cloud watch, and then
- 12:17Speaker 2: it injects that value straight into Zavix. Like any other metric.
- 12:20Speaker 1: It collected very flexible. Basically, if you can script it
- 12:22Speaker 1: on the command line, zax can monitor it.
- 12:24Speaker 2: That's the power of it. And for containers, Agent two
- 12:27Speaker 2: makes it even easier. It has native plug ins for
- 12:29Speaker 2: things like dock or monitoring built right in again thanks
- 12:32Speaker 2: to that Go architecture.
- 12:33Speaker 1: Okay, pulling it all together, then, what does this mean
- 12:36Speaker 1: for you the listener? We've seen Zavix five is well,
- 12:39Speaker 1: it's clearly robust, super flexible, scalable, designed for way more
- 12:43Speaker 1: than just simple pings. It handles complex enterprise level stuff.
- 12:47Speaker 3: Yeah.
- 12:48Speaker 2: I think the key takeaway is that real control, real scalability.
- 12:51Speaker 2: It requires planning upfront, especially especially around the database. You
- 12:56Speaker 2: have to decide on partitioning or timescale dB early, don't
- 12:59Speaker 2: wait to it hurts, don't wait till it hurts, and
- 13:02Speaker 2: getting good at that data extraction using preprocessing. That's non
- 13:06Speaker 2: negotiable if you want to keep your database clean and
- 13:08Speaker 2: your metrics really trustworthy.
- 13:09Speaker 1: Fantastic summary. Now, building on that idea, of platform control.
- 13:13Speaker 1: We talked about how Agent two can execute commands to
- 13:16Speaker 1: pull data. Yeah, but what about controlling Zavix itself. Here's
- 13:19Speaker 1: a final thought. Even a user who's locked down to
- 13:21Speaker 1: the basic Zavis user.
- 13:23Speaker 2: Role, right, the most basic view only type role usually.
- 13:27Speaker 1: Exactly they can maybe only see metrics for their own
- 13:29Speaker 1: couple of hosts. Even that user can potentially execute powerful
- 13:34Speaker 1: administrative actions, things like enabling or disabling host on maps
- 13:39Speaker 1: or scheduling system maintenance periods. They can trigger these right
- 13:43Speaker 1: from the Zavix front end.
- 13:44Speaker 2: Wait, hang on a basic user doing admin tasks. How
- 13:48Speaker 2: that sounds like a massive security hole if they don't
- 13:50Speaker 2: have the actual permissions.
- 13:52Speaker 1: It sounds like it, but it's actually the ultimate delegation
- 13:55Speaker 1: power of the ZAVICSAPI. The trick is the script they
- 13:59Speaker 1: trigger from the frontend. It isn't running with their lowly
- 14:02Speaker 1: user permissions. Instead, that custom script you've set up is
- 14:05Speaker 1: configured behind the scenes to use the API credentials of
- 14:08Speaker 1: a different user, one who does have administrative privileges.
- 14:11Speaker 2: So the low level user clicks a button, but the
- 14:13Speaker 2: action is performed via the API using a high privileged
- 14:16Speaker 2: token or user configured in that script.
- 14:19Speaker 1: Exactly. It lets you safely delegate very specific, complex administrative
- 14:23Speaker 1: workflows like putting a server into maintenance for exactly two
- 14:26Speaker 1: hours starting now, to users who absolutely should not have
- 14:29Speaker 1: general admin rights to the whole system.
- 14:31Speaker 3: Wow.
- 14:32Speaker 2: Okay, that is powerful the API as a controlled delegation mechanism.
- 14:37Speaker 1: That's the raw, potent and highly customizable power hidden within
- 14:41Speaker 1: the Zavix API. Food for thought. Definitely thanks for diving
- 14:44Speaker 1: deep with us today. We really hope you feel better
- 14:46Speaker 1: equipped now to tackle your infrastructure monitoring challenges using Zavix
- 14:50Speaker 1: five