Zabbix Agent Installation Configuration

Source: Internet
Author: User
Tags win32

Linux Server (Debian) (Agent installed, please confirm if you need to upgrade agent according to the following description)


1. See if the Zabbix agent is installed

#/usr/sbin/zabbix_agentd-v


2. If the version is less than 2.0.8, uninstall the original agent and reinstall the new agent
2.1 Stop the original agent service
# Pkill Zabbix or INVOKE-RC.D zabbix_agentd stop
2.2 Uninstalling the Agent
# aptitude Remove Zabbix-agent
2.3 Cleaning up remaining files
# Find/-name ' *zabbix* '
Delete the corresponding files and directories individually based on the results of the query
2.4 Download Zabbix 2.0.8 's source code to install the Zabbix agent
Download Address: http://repo.zabbix.com/zabbix/2.0/debian/pool/main/z/zabbix/
2.5 Adding the appropriate Zabbix users and groups
# AddGroup Zabbix
# adduser--ingroup Zabbix Zabbix
2.6 Unzip and install the agent (assuming the copy target directory is:/data/soft/)
# cd/data/soft/&& Tar zxvf/data/soft/zabbix_2.0.8.orig.tar.gz
# cd/data/soft/zabbix_2.0.8
#./configure--enable-agent
# make Install
2.7 Modifying the agent configuration file
# nano/usr/local/etc/zabbix_agentd.conf
Update line: server=127.0.0.1 = server=192.168.1.5, 192.168.1.1
Hostname=zabbix Server = hostname=192.168.0.210
Note: 192.168.1.5 is Zabbix server,192.168.0.210 is the agent's server IP
Where 192.168.1.1 is the default gateway for the Zabbix server because the Zabbix server and Zabbix agent are not in a network segment, 192.168. All Zabbix information seen by the 0.0-segment server is from the gateway,
Therefore, the server parameter must be added Zabbix server default gateway 192.168.1.1, please note when configuring agent




Windows Server

1. Download the Windows version zabbix-agent-2.0.8 and unzip, after decompression there are two directory bin and Conf, in which bin has two directories Win32 and Win64, respectively, corresponding to Windows 32-bit and 64-bit system, Please copy the corresponding directory to a disk according to the actual situation (my 32-bit system, copy Win32 to c:/, rename it to Zabbix), and then copy the configuration file zabbix_agentd.conf in another directory conf to the C:/zabbix directory. This directory has a total of 4 files, respectively: Zabbix_sender.exe zabbix_get.exe zabbix_agentd.exe zabbix_agentd.conf


2. Register Zabbix Agent Service
2.1 Run cmd into the Windows command line console
2.2 Running C:\zabbix\zabbix_agentd.exe-c C:\zabbix\zabbix_agentd.conf-i
Note:-C indicates that the profile path-I represents the installation
3. Run services.msc on the command line to enter the Windows Service console, locate the Zabbix_agent service, and right-click to start
4. Uninstalling the Zabbix Agent
4.1 Run cmd into the Windows command line console
4.2 Running C:\zabbix\zabbix_agentd.exe-c c:\zabbix\zabbix_agentd.conf-d
Note:-C indicates that the profile path-D means unload
Note: For agent configuration files, refer to the Linux configuration for modifications

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.