Zabbix 7 IT Infrastructure Monitoring Cookbook: Explore the new features of Zabbix 7 for designing, building, and maintaining your Zabbix - podcast episode cover

Zabbix 7 IT Infrastructure Monitoring Cookbook: Explore the new features of Zabbix 7 for designing, building, and maintaining your Zabbix

Sep 07, 202518 min
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Serves as a comprehensive guide for IT professionals aiming to design, build, and maintain Zabbix setups. It covers a wide array of topics, from initial Zabbix server and frontend installation to advanced monitoring techniques for various systems like Linux, Windows, databases, and cloud environments (AWS, Azure, Docker). The text emphasizes practical application through detailed recipes for configuring triggers and alerts, creating structured templates, visualizing data with graphs and dashboards, and automating host discovery and creation. Additionally, it explores integrating Zabbix with external services like Slack and Microsoft Teams, extending functionality with custom scripts and the Zabbix API, and ensuring database management and performance optimization.

You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary

Get the Book now from Amazon:
https://www.amazon.com/Zabbix-Infrastructure-Monitoring-Cookbook-maintaining-ebook/dp/B0C53V9XPG?&linkCode=ll1&tag=cvthunderx-20&linkId=ecc42ae9de025b961f49902e35349df5&language=en_US&ref_=as_li_ss_tl

Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy

Transcript

Speaker 1

Welcome back to the deep dive. Okay, imagine your IT infrastructure. It's like this huge intricate machine, right, thousands of moving parts. How do you actually keep it running smoothly? How do you predict problems before they hit and cut through all that noise, all that data to find what really matters?

Speaker 2

Yeah, that's the million dollar question in IT. Isn't it systems just keep getting more complex and finding those essential insights doing it efficiently reliably? Oh, that's what every team.

Speaker 1

Is chasing, absolutely, and that chase is exactly why we're diving deep today. We're looking at the ZABIC seven IT Infrastructure Monitoring Cookbook by Nathan Lifting and Brian van Beekl. And this isn't just some minor update ZABC seven point ZERLTS. That's long term support. It brings some really significant quality of life improvements, plus some cutting edge features building on what we saw in six point two and six point four.

Speaker 2

Right. And what's great about this book, I think, is how the authors, who are really respected in the Zavik's world, have made it so practical. It genuinely bridges that gap between the official docs, which can be a bit dry, and the real world problems you actually face day to day. Even Alexei's Ladyshev, the guy who created Zadex, points out their deep knowledge and hands on experience in the forward. It really is a cookbook, giving you specific recipes, specific techniques.

Speaker 1

Okay, so our mission today is pretty straightforward. We're giving you a shortcut. We're pulling out the most important stuff from this book, helping you get up to speed fast on what Zavic seven can do. We'll focus on what's critical, what's maybe a bit surprising, and why it actually matters for you when you're designing, building or maintaining your Zavik setup. Right, then, let's untack this starting at the beginning, the core bits

of Zavik seven. You've got the Zavic server that's the engine, the brain's doing all the work. And then there's the front end that's your UI, how you see and interact with everything exactly.

Speaker 2

And for that front end piece, the book really pushes NGINX over APATCHE. The main reason speed GNX is generally quite a bit faster, and that really makes a difference when you've got lots of people hitting the interface all day. Oh. In a handtip for getting started, ZABX actually provides really good setup guides and repo links right on their site, makes that initial install surprisingly smooth.

Speaker 1

Okay, speed and easy setup are gray, But what about reliability? Making sure zabex itself doesn't fall over. High availability or HHA for the server seems absolutely key for anyone serious about monitoring. That was a big deal back in ZABC six, right, and it's still vital in seven. It's all about keeping your monitoring up even if one server has a problem.

Speaker 2

Totally crucial. The idea is basically a split setup. You keep your database and server node separate. Then you use a virtual IP of VIP for the cluster nodes, so if one server node fails, the other just takes over seamless failover. It really takes Zavik's reliability to the next level, minimizes those outages, and the book even mentions thinking about HA for the database too, maybe like a mycycle master master setup for you know, ultimate peace of mind.

Speaker 1

So foundation solid, it's reliable. Next big thing security and user management. Got to make sure the right people see the right things. How does Zabix seven handle mastering users in security?

Speaker 2

It's got a pretty structured approach, using user groups and user roles. Think of user groups for controlling what people can monitor, like permissions for specific host groups. User roles control how they interact with zabex their UI access. So you could have say a user plus role for folks who just need to read only access but maybe need to see specific reports more.

Speaker 1

Is this basic stuff that granularity sounds essential? Okay? Now, something that sounds like a huge time saver, especially for bigger places, advanced authentication and this just in time provisioning JT right. Lots of companies use external off like SAMO security search and markup language, or LDA lightweight directory access protocol things like azured open Lda exactly.

Speaker 2

And this is where zabox gets really smart. GIT user provisioning. It came in six point four better now in seven automatically creates users in zadas and it gives them the right permissions based on their info from your ldapp or SAMILL server. Think about the time that saves, no more manual setup for every new person. It's a massive workflow boost. And yeah, it works with the identity providers like Octa

one log in basically anything that speaks SAMI well. The book also mentions API tokens quickly for scripting and integration. Important point, there always limit permissions for API users in production.

Speaker 1

Security first, okay, zabx is running. Users are managed securely. Now the core job, how do we actually monitor stuff? Zabix seven has a whole bunch of ways to do this. Let's start with the classic, the Zavix agent right.

Speaker 2

The agent two main modes, passive and active. Passive means the server asks the agent for data. Active means the agent collects data and sends it to the server. The key thing. Active mode is often way more efficient. It pushes the load out to the agents. You can use both at the same time, which gives you flexibility. Plus, Zavix Agent two adds even more capability, especially for certain apps and.

Speaker 1

For network gear. SNMP's been around forever, but I hear the old way of polling has had a bit of an overhaul.

Speaker 2

Yeah, the old way still works fine, but since Zabik six point four there's a much better approach. Zavix can now use SMMP key bulk queries using the walk item key. It's way more efficient, puts less strain on your network devices. You get more data with less impact. Oh and a big plus and seven point zero asynchronous polling for Agent HGDP SNMP means Zavix can run tons of checks at

the same time per polar process way more scalable. We still use OIDs object identifiers like addresses for metrics like one point three point one point one point one point two zeros ever two one point four for memory.

Speaker 1

Stuff for instance, okay, Agent's sm MP. What about more specialized things checking specific services, apps, databases?

Speaker 2

Zaviks has loads of options there. You've got simple checks just as an SSH port open stuff like that. Then there's the Zavix Trapper, which you use as Zavic sender. Great for customs. Script sending data in calculated independent items are cool too. You can create new metrics from existing ones, like average memory use over an hour or pulling one specific value out of a bigger chunk of data. For Java apps, there's built in JMX monitoring, perfect for things

like Tomcat. You can even run the Java Gateway bit on a separate machine if you need to scale it. Database monitoring uses odp VC open database connectivity, so you can basically monitor any database that supports it. Just watch performance sometimes. Agent two also does native monitoring for some dbs and the HTTP agent lets you monitor websites or APIs directly grab data from adjasent endpoint, track a version number, whatever you need.

Speaker 1

All right, now for something that sounds really new and potentially game changing in ZABI seven these browser items. What's the deal there?

Speaker 2

Oh yeah, this is really cool. It's brand new and zabq seven Basically, it lets you simulate a real user interacting with a web application. I think navigating pages, clicking buttons, filling out forms, all automated using JavaScript and Selenium. Why is it so powerful? Well, it opens up like endless

possibilities for monitoring the actual end user experience. You can measure things like logging times, or grab specific data from a rendered web page that a simple HTTP check could never see because it doesn't run JavaScript.

Speaker 1

Wow, okay, that sounds incredibly useful. Can you give like a practical exam?

Speaker 2

Sure? Imagine setting up a browser item that logs into your web app, clicks through to say reports than system information, and then it grabs values right off that page, maybe required server performance or number of active hosts, stuff like that. It gives you insight you just couldn't get before. Yeah, and then to make sense of that raw data, you extract.

You use Zabas's pre processing that lets you clean up or transform the data before it's stored, like using a rejex to pull out just the number of bytes received from network interface output. It turns raw data into useful metrics you can actually grasp.

Speaker 1

Okay, so we're collecting all this amazing data. Browser data included. Next up making sure we get alerted smartly triggers and effective notifications. That's key, right, and I hear for people used to older Zavix, say five point two or before the trigger syntax change quite a bit.

Speaker 2

Yeah, that's a really important point since Saba's five point four. The syntax is quite different. It's much more cohesive now. It starts with the function name than the host or template and brackets and uses forward slashes. It's way clearer than the old style with colon's and dots, which could get confusing, especially when item keys also add dots in them.

Speaker 1

Makes sense, and beyond just syntax, are there some more advanced trigger functions now that let you do smarter analysis?

Speaker 2

Definitely? There are functions like trendo X. This one uses trend data that's the hourly average MEN or max instead of just raw history data points, so is better for longer term analysis, like looking at average memory use over a whole week, ignoring little spikes. Then there's time left. This is really cool. It's predictive. Zabix can actually predict when a metric like disk space is going to hit

a critical threshold, say predictably full within seven days. Gives you time to react before it happens, and you could do time shifting to compare current values to past ones as things like is memory twenty percent lower now than last week? It can get complex, but it's super powerful for spawning trends.

Speaker 1

Okay, powerful triggers, but the goal is useful alerts, not just noise. Right, how do you stop getting spammed?

Speaker 2

It's exactly It's about informing, not overwhelming. First you said up actions like notify zabx admins. Then you pick your media types email, slack teams, telegram, ops, genie, whatever you use. The really crucial part is customizing the messages. Keep trigger names clear and short, don't stuff macros in the name itself. Then customize the message templates for each media type or action so you only get the info you actually need to act on. It means you need to plan your trigger.

Structures and tagging tags became important in ZABK six. Carefully to keep everything organized and effective.

Speaker 1

Right, collect the data, get smart alerts now making it all visually clear. Visualization ZABAK seems pretty strong here. Starting with basic graphs.

Speaker 2

Yeah, graphs are your bread and butter for showing single item values over time, uptime, CPU, network, traffic, you name it. Quick tip, think about colorblind friendly colors. Make them usable for everyone. Beyond graphs, you've got maps. These are great for showing how devices connect. And here's a neat trick. Map labels can show live data like traffic stats and link colors can change based on trigger, so link goes

red if it's down. You could even set a trigger for high usage, maybe to spot a d DAS attack early.

Speaker 1

And for pulling everything together that big picture of view. Dashboards are the way to go.

Speaker 2

Oh absolutely, dashboards are perfect for consolidating everything you need for troubleshooting, for daily checks for those big TV screens. In the NOC, ZABK seven point zero really doubled down on visualization, adding lots of new widgets. You've got widget for problems, maps, grafts, specific item values, gauges, pie charts, loads of options. You can even have multiple pages in one dashboard, like an overview page and then a detailed

host data page. And speaking of overviews, zabs can automatically pull inventory data, hardware, software versions, serial numbers. Keeps your asset list up to date automatically, which leads to another cool visualization, the geomap widget. It puts your hosts on a world map showing their status using the latitude longitude from inventory. Pretty neat addition to your dashboard.

Speaker 1

And what about reporting keeping track of the Zabic system itself and getting regular summaries out?

Speaker 2

Yeah, good point. There's a system information report to quickly check Zavic's own health. The audit log is crucial at tracks who changed what in Zab's essential for accountability, and the action log shows if your alert notifications actually went out successfully. A really popular feature since five point four actually is scheduled pdf reports. Zabax can take snapshot images of any dashboard you've built and email it out as

a PDF on a schedule. Super flexible because any cool new widget they add you can immediately include in your PDF reports.

Speaker 1

Okay, shifting gears a bit, large environments, dynamic systems automation and scalability become absolutely critical. How does ZABK seven help there? Starting with automatically adding new.

Speaker 2

Hosts right, this is a huge strength. Zabx has several ways to do discovery. Network discovery. Let ZABK scan ranges for new devices using agent checks or SNMP It can find hosts based on names, services, SNNP results and automatically add them with the right templates and groups. Then there's

active agent audit registration. This is even more automatic. The agent basically introduces itself to Zavix, maybe sending some metad data, and Zavix adds it based on rules you set super smooth for deploying lots of agents, and you've got low level discovery LLD. That's for discovering specific things on a host, like when does performance counters or JMX objects in Java apps, It finds them and creates the monitoring items automatically. For

sn mpld again, that efficient walk key is used. Grab bulk data, then use preprocessing to chop it up into individual items.

Speaker 1

That sounds powerful. Now you mentioned something about using custom Jason with LED that sounds incredibly flexible.

Speaker 2

It really is. This shows just how extensible ZABS can be. You could have an external script, maybe running as a cron job, generate a JSON file with host info, send that Jason to Zavix using zabxender, then configure led rules in Zavix to read that Jason and automatically creator update hosts and interfaces based on it. It's perfect for integrating with external inventory systems or cndbs. But when you're talking true scale, especially across networks, Zavix proxies are essential proxy's right.

Speaker 1

They collect data locally and forward it, reducing load on the main server. I hear they've got some major reliability upgrades too, huge upgrades.

Speaker 2

Proxies themselves collect data remotely, taking load off the central server. Can be passive or active. But the big news is proxy high availability and load balancing. Now you can have a group of proxies working together. They share the load of monitoring hosts in that location, and if one proxy fails, the others pick up its workload. For big distributed setups, this is a massive improvement. Makes Zavix truly enterprise ready and highly reliable.

Speaker 1

Okay, so we've got this potentially huge, automated, scaled out Zavix setup. How do we maintain it? And keep it secure. Let's talk maintenance periods. First.

Speaker 2

Essential for planned work, you set up windows in the front end, say every Sunday morning, to stop alerts firing while you're doing updates. Zavic seven made these much faster to take effect near instant. They call it because they can pig cash reloads quicker. You can choose with data collection, which just suppresses alerts, or no data collection, which stops everything for that host during maintenance and for upgrades. The book hammers this back up. First read the release notes carefully.

A key thing for Zavic seven is you must upgrade the underlying stack. Two PHP needs to be eight point two or eight point three plus normi dB needs to be eleven point four plus dep That catches people out. So the cookbook really helps there and.

Speaker 1

Keeping it running smoothly. Performance tuning. What are the common bottlenecks?

Speaker 2

Well, you might see Zavis complaining about discoverer processes too busy. You can usually fix that by tweaking the number of discoverer processes in the server config file. More processes help distribute the work, but you're limited by server resources. Obviously, Sometimes it's just a bag and fig causing the bottleneck. Though, the Zavix Housekeeper, which cleans up old data, also needs tuning.

Adjusting how often it runs and how much it deletes per run is important, but the best settings really depend on your specific setup, how much data you collect and keep for the database itself, specifically Micequel, the book recommends a tool called mice call Tuner dot pl. It's an open source script that analyzes your dB and suggests can fig changes. But, and this is important, don't just blindly

apply it suggestions. Always research what each parameter does and understand the implications before changing anything.

Speaker 1

And for really big databases where even tuning the Housekeeper isn't enough.

Speaker 2

Right for huge amounts of history and trend data, you need more advanced techniques. With my sequel, you can use database partitioning. Zabx supports this. Instead of deleting old data row by row, which is slow, you just drop entire old partitions, much much faster for housekeeping. If you're using postcresscool, zabx supports the timescale DT extension. It's specifically designed for time series data like zadex generates, and it can give

significant performance boosts on large databases. But beyond performance, security is critical, especially for the database connection. You absolutely should encrypt the communication between the Zaba server, the front end, and the database using SSLTLS certificates like from open SSL. It adds a vital security layer protecting against data snooping on the network. It's a bit complex to set up

certificates configs, but essential for production. The book notes that pretty much all Zavix communication can be encrypted except for the direct link between the server and front end WebUI itself.

Speaker 1

Okay, last big area. Zabx isn't just for on premise servers anymore, right, How does it handle cloud stuff in extending beyond basic monitoring.

Speaker 2

Yeah, it's very much cloud aware. Now you can monitor AWS and Azure directly. For AWS, you typically use HTTP agents with some JavaScript to call awsapis like cloud Watch. You can discover and monitor EC two instances, RDS, databases, S three buckets, lots more. Same idea. For Azure, use API calls to discover and monitor Azure resources Cosmos, dbseql, VMS, et cetera. The key thing is these templates and scripts are just starting points. You can extend them to grab

basically any metric available via the cloud provider's API. Oh and doctor monitoring is much simpler now too, Using built in zabx agent two plugins pretty much works out of the box.

Speaker 1

And what if you want to integrate zabex even more deeply custom scripts interacting with the API.

Speaker 2

The ZAVIXAP is your friend here. It's really powerful. You can script interactions using Python, PowerShell, whatever you like. The book gives a great practical example using a Python script to queratey the ZAVISAPI for host names and ips. Then the script automatically updates the echo's file on a central jump post so you can easily SSH to any monitored

machine by name Superrandy. Another cool API example a script that lets you enable or disable monitoring for a host directly by clicking on it in a zabs map Interactive control and you often find scripts like these shared in the Zavix community. It's a very active open source project, so it's worth exploring what others have built.

Speaker 1

Wow. Okay, that was quite the journey through ZABK seven from the core bits user management, all those monitoring methods through browser items, smart alert's visualization, automation, scaling, maintenance, security, cloud covered a lot. This cookbook really does seem packed with practical advice, and hopefully this deep dive gives you a solid handle on building robust, insightful monitoring.

Speaker 2

Absolutely yeah, you should now have a really good feel for what zabk seven offers, whether you're just starting out or looking to get more out of your existing setup. It's a seriously capable platform, it.

Speaker 1

Really seems like it. In a world just drowning in data. ZABK seven gives you the tools not just to collect it, but to actually understand it, build a story about your infrastructure's health, predict problems, maybe even control things directly. So the question for you is what hidden stories are waiting in your data and how can zabik seven help you write a better ending for your system

Transcript source: Provided by creator in RSS feed: download file
For the best experience, listen in Metacast app for iOS or Android