среда, 19 июля 2017 г.

Manual Zabbix Agent Installation

This article describe how to manually install the Zabbix agent (verstion 2.2) on a Linux and Windows OS.
Linux (RHEL/CentOS/Amazon)
  1. Install the repository configuration package. This package contains yum configuration files
    # rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
  2. Install Zabbix agent packages
    # yum install zabbix-agent
  3. Edit Zabbix agent Windows config file template. Make sure:
    • ServerActive=<Private IP of Zabbix Server>
    • Hostname=<Identifiable name that will match exactly how it is defined on Zabbix Server>
    • HostMetadata=linux
  4. Copy Zabbix agent config file to /etc/zabbix/zabbix_agentd.conf
  5. Set Zabbix agent to start on startup
    # chkconfig zabbix-agent on
  6. Restart Zabbix Agent
    # service zabbix-agent restart
Windows
  1. Download the pre-compiled Zabbix agent for Windows from http://www.zabbix.com/downloads/3.0.4/zabbix_agents_3.0.4.win.zip
  2. Create the directory C:\Program Files\Zabbix on the Windows instance.
  3. Edit Zabbix agent Windows config file template. Make sure:
    • ServerActive=<Private IP of Zabbix Server>
    • Hostname=<Identifiable name that will match exactly how it is defined on Zabbix Server>
    • HostMetadata=windows
  4. Copy Zabbix agent config file to C:\Program Files\Zabbix\zabbix_agentd.win.conf
  5. Install the Zabbix agent by opening the command prompt and entering the following command


"C:\Program Files\Zabbix\bin\win64\zabbix_agentd.exe" --install -c "C:\Program Files\Zabbix\conf\zabbix_agentd.win.conf" && net start "Zabbix Agent" && sc config "Zabbix Agent" start=auto

zabbix_agentd.exe [1720]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [1720]: event source [Zabbix Agent] installed successfully
The Zabbix Agent service is starting.
The Zabbix Agent service was started successfully.
[SC] ChangeServiceConfig SUCCESS

Комментариев нет:

Отправить комментарий

Bash: MySql backup (file per db), restore+ users and privileges

Backup Mysql DB (file per db) #!/bin/bash USER="root" databases=`mysql -u $USER -e "SHOW DATABASES;" | tr -d "|...