Zabbix automatically discovers rules to monitor service units in Linux systems
1. Write a script in the scripts directory. The script content is as follows: 2. Write the configuration file in the /etc/zabbix_agentd.conf.d directory. The content is as follows: vim service_status.conf UserParameter=service.status,/usr/local/zabbix/scripts/service_status.sh 3. Restart zabbix_agentd: 4. Create a template in the zabbix web interface. The monitoring items of the template are done through automatic discovery rules. The contents of the automatic discovery rules are as follows: Definition of the key value of the monitoring item prototype: system.run[cat /tmp/service_status.txt | grep -w '{#SN}' | awk '{print $1" "$2" "$3" "$4}' | awk '{print $NF}',] 5. View the results in the latest data: Summarize The above is the process of Zabbix monitoring Linux system services introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Using JS to implement a simple calculator
>>: How to use Navicat to export and import mysql database
Docker basic instructions: Update Packages yum -y...
Introduction: The disadvantages of storing all da...
Table of contents 1. We must ensure that the vue/...
Copy code The code is as follows: <form method...
1. CSS file naming conventions Suggestion: Use le...
MySQL needs to be upgraded to version 5.5.3 or ab...
nginx installation Ensure that the virtual machin...
This article uses examples to explain the princip...
nginx is our most commonly used server, often use...
I took the bus to work a few days ago. Based on m...
1. Implement a simple triangle Using the border i...
Serve: # chkconfig --list List all system service...
The MySQL server is running with the --skip-grant...
Related article: Beginners learn some HTML tags (1...
Table of contents Linux MySQL 5.5 upgraded to MyS...