Monitor Any Service on Linux
Karthick D
Linux | DevSecOps | Cyber Security | Python | AWS | Docker | K8s | Ansible | Salt | Terraform | ELK | Zabbix | Content Writter @Medium
Hello there, In this post, we will look at how to monitor any Linux service using the Zabbix agent.
Services like: nginx, mysql, httpd,
Hope you're Ready! ??
Pre-requests:??
Enable Remote Commands on Zabbix-agent:???
Step 1: Login to the client machine and open the zabbix_agentd.conf
Step 2: Append this line on config AllowKey=system.run[*]
Step 3: Restart zabbix-agent
Create a Template for Service Monitor: ??
Step 1: Create a Template
Go to Zabbix Dashboard --> Data Collection -->Templates
Step 2: Add Template Name , Template groups ??
Step 3: Create Item
Step 4: Create a New item for service monitor ??
Note: We using same Linux service command to check the status of nginx service. You can modify any other service command
领英推荐
Step 5: Navigate to Pre-processing ???
Step 6: Test the output ??
If you get Result = 1 .Good to go...??
Then click Add to save the configuration.
Step 7: Create Trigger for service down ??
Go to trigger create a Trigger
zabbix will trigger alert when service is not equal to active
Step 8: Create Graph for Service ??
Step 9: Add host to service monitor ???
Now Navigate to Latest Data --> Hosts.
In Host --> Graphs ,here you can see the data and Graph for the nginx service.
Thanks for reading & Follow for More ?? @karthick-dkk
CQ Simple LLC
11 个月I just found this and it might do what I want or is close. A question first. I have many hosts using Zabbix-Agent2 instead of the agent. Can you comment on whether your solution will work with Agent2. I want to monitor the status of http, mysql,ssh, cron, postfix. I tried to set up the template for http and it fails at the test with a timeout using port80, 8080. Thanks
An engineer for enterprise monitoring | Zabbix Administrator | Infrastructure Monitoring Azure Monitoring | Azure Metrics and Alerts # CERTIFICATION AZURE 2X | IBM Tivoli Monitoring | ITM & ITCAM | Linux
1 年Karthik cloud please create some templates on service paths monitoring