In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to compile and install zabbix agent source code, in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Recently, we are doing data center migration and integration, and zabbix is also doing integration. Most of the deployment and installation are completed through scripts, but some operating system versions, firewalls and other reasons need to be manually adjusted. Here we encounter a problem with RHEL4 zabbix_agent installation, which requires manual compilation and installation, so we have the following content.
1. Download the zabbix agent source package
Official website address: https://www.zabbix.com/download
Version download address: http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3.2.7/zabbix-3.2.7.tar.gz/download
II. Zabbix agent installation
# user creation
Groupadd zabbix
Useradd-g zabbix zabbix-s / sbin/nologin
# decompress the package
Tar-xzvf zabbix-3.2.7.tar.gz
Cd zabbix-3.2.7
# Source code compilation and installation
. / configure-prefix=/usr/local/zabbix-enable-agent
Make-j 8
Make install
III. Zabbix agent deployment
Self-launch deployment:
Cp-rp misc/init.d/tru64/zabbix_agentd / etc/init.d/
Chmod uplix / etc/init.d/zabbix_agentd
Vi / etc/init.d/zabbix_agentd
# chkconfig: 35 10 95
# description: Zabbix Agentd
DAEMON=/usr/local/zabbix/sbin/zabbix_agentd
Where 2345 is the default startup level, with a total of 7 levels of 0-6.
Level 0 indicates that the computer is turned off
Level 1 means: single user mode
Level 2 means: multi-user command line mode without network connection
Level 3 means: multi-user command line mode with network connection
Level 4 means: not available
Level 5 means: multi-user mode with graphical interface
Level 6 means: restart
10 is the start priority, 95 is the stop priority, and the priority range is 0mer100. The higher the number, the lower the priority.
Chkconfig-add zabbix_agentd
Chkconfig zabbix_agentd on
Profile deployment:
Cd / usr/local/zabbix/
Ln-s etc conf
Mkdir logs
Mv ~ / zabbix_new/source/bak/script/.
Mv ~ / zabbix_new/source/bak/zabbix_agentd/. / conf/
The zabbix_agentd.conf content is as follows
PidFile=/usr/local/zabbix/logs/zabbix_agentd.pid
LogFile=/usr/local/zabbix/logs/zabbix_agentd.log
LogFileSize=0
StartAgents=10
Timeout=30
AllowRoot=1
Include=/usr/local/zabbix/conf/zabbix_agentd/
UnsafeUserParameters=1
ServerActive=agent_ip
Server=agent_ip
Hostname=ipaddr
Start zabbix_agent:
Service zabbix_agentd start
Zabbix agent started.
IV. Zabbix server deployment
This is the answer to the question about how to compile and install the zabbix agent source code. I hope the above content can be of some help to everyone. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.