Zabbix LLD, or Low-Level Discovery, is a feature of Zabbix that allows you to automatically discover and monitor devices and applications on your network. Zabbix LLD works by running scripts or programs on the devices or applications that you want to monitor. These scripts and programs collect information about the devices or applications, such as their IP addresses, hostnames, and services. Zabbix then uses this information to create new items, triggers, and graphs in Zabbix.
Here is an example of how you could use Zabbix LLD to discover and monitor a Docker Swarm cluster:
- Create a Zabbix LLD rule that runs a script to collect information about the Docker Swarm nodes and services.
- Configure the Zabbix LLD rule to run on a regular basis, such as every minute or every five minutes.
- Create new Zabbix items to monitor the Docker Swarm nodes and services.
- Create new Zabbix triggers to alert you if any problems are detected with the Docker Swarm nodes or services.
- Create new Zabbix graphs to visualize the performance of the Docker Swarm nodes and services.
Once you have configured Zabbix LLD to monitor your Docker Swarm cluster, you will be able to see a real-time view of the cluster’s health and performance. You will also be able to receive alerts if any problems are detected.
Overall, Zabbix LLD is a powerful tool that can help you to automate your monitoring tasks and improve your overall visibility into your network and applications.
Zabbix LLD is a creative way to automatically discover and monitor devices and applications on your network. It is a powerful tool that can help you to improve your overall visibility into your network and applications.
To create a Zabbix LLD in Ubuntu, you can follow these steps: | |
Open a terminal window. | |
Create a new directory for the Zabbix LLD script. | |
Navigate to the new directory. | |
Create a new file called lld.sh. | |
Add the following contents to the lld.sh file: | |
#!/bin/bash | |
Get the IP address of the host. | |
IP=$(ip addr show | grep "inet " | awk '{ print $2; }' | head -n 1) | |
# Get the hostname of the host. | |
HOSTNAME=$(hostname) | |
Create a new item in Zabbix to monitor the IP address. | |
zabbix_sender -z <Zabbix server IP address> -s <Zabbix server hostname> -k "system.hostname" -o $HOSTNAME | |
Create a new item in Zabbix to monitor the hostname. | |
zabbix_sender -z <Zabbix server IP address> -s <Zabbix server hostname> -k "system.ip" -o $IP | |
Save the lld.sh file. | |
Make the lld.sh file executable. | |
Create a new Zabbix LLD rule. | |
Configure the Zabbix LLD rule to run the lld.sh script. | |
Save the Zabbix LLD rule. | |
Once you have completed these steps, the Zabbix LLD rule will start monitoring the IP address and hostname of the Ubuntu host. You can view the monitoring data in the Zabbix web interface by going to Monitoring > Latest data. | |
Additional Considerations | |
You can modify the lld.sh script to collect additional information about the Ubuntu host, such as the CPU usage, memory usage, and disk usage. | |
You can create new Zabbix items, triggers, and graphs to monitor the additional information that you collect in the lld.sh script. | |
You can schedule the Zabbix LLD rule to run on a regular basis, such as every minute or every five minutes. |
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND