CPU Utilization Monitoring with Zabbix and Rundeck Automation
Monitoring CPU utilization across Linux and Windows systems is essential for ensuring optimal system performance. By using Zabbix for monitoring and Rundeck for automation, you can efficiently manage system resources, detect performance issues, and trigger necessary actions such as restarting services when needed.
In this guide, we will show you how to configure Zabbix and Rundeck to monitor CPU utilization, automatically restart unwanted services, and create issue tickets for tracking purposes. Additionally, we’ll explore how ZippyOPS’s consulting and managed services can further enhance your automation infrastructure.

Setting Up Zabbix for CPU Utilization Monitoring
Zabbix is a powerful open-source monitoring solution that can track system resources like CPU utilization. To start monitoring CPU usage on Linux and Windows servers, follow these steps:
- Add Hosts in Zabbix
- Begin by adding your Linux or Windows hosts to the Zabbix server.
- Create CPU Utilization Trigger (Linux & Windows)
- For Linux: Create a trigger that monitors CPU utilization and triggers an alert if CPU usage exceeds a threshold.
- For Windows: Similarly, configure a Windows trigger to monitor CPU load using Zabbix’s Windows-specific items.
- Create an Action for CPU Utilization Alerts
- Zabbix actions will notify the appropriate services or run external scripts when a CPU alert is triggered. Set the conditions to run the script below for further actions.
Script Location: /usr/lib/zabbix/externalscript/cpu-utilization.sh
Command:
hostname={HOST.NAME} eventid={EVENT.ID} bash /usr/lib/zabbix/externalscript/cpu-utilization.sh
Automating Actions with Rundeck
Rundeck simplifies task automation and orchestration. With the integration of Zabbix, you can trigger Rundeck jobs to handle CPU utilization issues automatically, including restarting services when necessary.
- Create a Project for CPU Utilization (Linux & Windows)
Set up projects within Rundeck for both Linux and Windows to execute automation tasks.
Linux Script for CPU Utilization
The script below helps monitor processes on a Linux machine and restart specific services based on CPU usage:
TOPPROCESS=$(top -b -n 1 | sed 1,6d | sed -n 2p)
TOPPID=$(echo "$TOPPROCESS" | awk '{print $1}')
TOPNAME=$(echo "$TOPPROCESS" | awk '{print $12}')
if [ "$TOPNAME" = "sshd" ]; then
systemctl status sshd
# Restart sshd service if needed
elif [ "$TOPNAME" = "httpd" ]; then
systemctl restart httpd.service
# Restart httpd service if needed
fi
This script checks for resource-heavy processes and restarts services like httpd or sshd if necessary.
Windows Script for CPU Utilization
For Windows servers, a similar script can be written in PowerShell to handle CPU processes and service restarts:
if ($var2 -eq $True) {
# Execute necessary actions based on server and CPU utilization
systemctl restart service
}
These automated tasks can be triggered from Rundeck as part of a broader strategy for automated operations (Automated Ops).
Integrating Jira for Issue Tracking
When Zabbix detects unwanted services or high CPU utilization, it can automatically create a Jira ticket. This integration helps teams track performance issues systematically and ensures they are addressed promptly. For example, if Zabbix detects a process that is consuming excessive CPU, it triggers a Rundeck job to restart the service and create a Jira issue for further investigation.
java -jar /var/lib/rundeck/atlassian-cli-9.2.0/lib/acli-9.2.0.jar --server http://192.168.4.115:8080 --user "aiops" --password "zippyops" --action createIssue --project "CPU" --type "Task" --summary "CPU Utilization Issue"
Why Choose ZippyOPS for Automation and Monitoring?
While setting up Zabbix and Rundeck on your own can be effective, ZippyOPS provides specialized consulting and managed services to ensure your monitoring infrastructure is fully optimized. Whether you’re looking for DevOps, DevSecOps, or Cloud infrastructure solutions, ZippyOPS can help automate your operations, integrate monitoring tools, and provide security enhancements.
ZippyOPS offers tailored solutions for industries that require constant uptime, including DataOps, AIOps, MLOps, and Microservices. Our experts assist with configuration, implementation, and management of systems to ensure optimal performance, security, and automation at all times.
Explore how we can support your operational needs through our services or solutions, and check out our products for automation tools and resources.
Conclusion: Efficient CPU Utilization Monitoring with Zabbix and Rundeck
By integrating Zabbix for CPU utilization monitoring and Rundeck for automation, organizations can ensure proactive performance management and efficient service restoration when issues arise. The ability to automatically detect and resolve CPU-related issues without manual intervention saves time, reduces downtime, and ensures your systems remain healthy.
With ZippyOPS’s expertise in DevOps, Cloud automation, and Security, you can scale and optimize your infrastructure even further. For businesses looking to enhance their operations, ZippyOPS offers consulting, implementation, and managed services for a seamless, automated experience.
For more information or to discuss how ZippyOPS can support your infrastructure, reach out to us at sales@zippyops.com.



