監控工具安裝手冊
# timedatectl set-timezone Asia/Taipei
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# wget https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.0.tar.gz
# tar -zxvf zabbix-5.0.0.tar.gz
# groupadd --system zabbix
# useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix Monitoring System" zabbix
# mkdir -m u=rwx,g=rwx,o= -p /usr/lib/zabbix
# chown zabbix:zabbix /usr/lib/zabbix
# yum install gcc mysql-devel libxml2-devel net-snmp-devel OpenIPMI OpenIPMI-devel libevent-devel curl curl-devel automake autoconf libtool make
# cd /home/ec2-user/zabbix-5.0.0
# ./configure --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --with-openipmi --prefix=/usr/local/zabbix
# make install
# cd /usr/local/zabbix/sbin/
# ls
zabbix_agentd
zabbix_agentd.conf
# vim /usr/local/zabbix/etc/zabbix_agentd.conf
Server=192.169.0.103
ServerActive=192.169.0.103
Hostname=192.169.0.103
# yum install firewalld
# systemctl start firewalld
# firewall-cmd --permanent --add-port=10051/tcp
# firewall-cmd --permanent --add-port=10051/tcp
# systemctl stop firewalld
init.d
啟動腳本拷貝到系統中並修改位置
# cp /home/ec2-user/zabbix-5.0.0/misc/init.d/fedora/core/zabbix_* /etc/init.d/ -v
‘/home/ec2-user/zabbix-5.0.0/misc/init.d/fedora/core/zabbix_agentd’ -> ‘/etc/init.d/zabbix_agentd’
‘/home/ec2-user/zabbix-5.0.0/misc/init.d/fedora/core/zabbix_server’ -> ‘/etc/init.d/zabbix_server’
# vim /etc/init.d/zabbix_agentd
BASEDIR=/usr/local/zabbix
# /etc/init.d/zabbix_agentd start
Reloading systemd: [ OK ]
Starting zabbix_server (via systemctl): [ OK ]
# /etc/init.d/zabbix_agentd status
● zabbix_server.service - SYSV: Starts and stops Zabbix Server using chkconfig
Loaded: loaded (/etc/rc.d/init.d/zabbix_server; bad; vendor preset: disabled)
Active: active (running) since Tue 2022-10-18 13:44:58 CST; 7s ago
# chkconfig --add zabbix_agentd
# chkconfig --level 35 zabbix_agentd on
# chkconfig --list
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
zabbix_agentd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
zabbix_server 0:off 1:off 2:off 3:on 4:off 5:on 6:off
Received empty response from Zabbix Agent at [127.0.0.1]. Assuming that agent dropped connection because of access permissions
# netstat -lntup|grep 10050
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 7440/zabbix_agentd
tcp6 0 0 :::10050 :::* LISTEN 7440/zabbix_agentd
# vim /usr/local/zabbix/etc/zabbix_agentd.conf
Server=192.169.0.103
ServerActive=127.0.0.1
Hostname=192.169.0.103
zabbix-agentd.conf
配置文件中 ServerActive 改為 127.0.0.1
# /etc/init.d/zabbix_agentd restart
Restarting zabbix_agentd (via systemctl): [ OK ]
# /etc/init.d/zabbix_server restart
Restarting zabbix_server (via systemctl): [ OK ]
第一部分 : 建立 EC2 機器 VPC : center-vpc SUBNET : center-public-a 配置外部 IP 第二部分 : 機器內設定 (For ARM CPU Device) 安裝 # yum -y groupinstall "Development Tools" # yum -y install readline-devel ncurses-devel openssl-devel # wget http://www.softether-download.com/files/softether/v4.38-9760-rtm-2021.08.17-tree/Linux/SoftEther_VPN_Server/64bit_-_ARM_64bit/softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-arm64-64bit.tar.gz
Jun 6, 2023:::info 是方機器的驗證步驟 先驗證機器是否正常 curl 150.117.126.20 -u elastic:ZZK4cwGVkpdCMXmUmsZuF44M7 回報機器是否正常 :::
May 26, 2023Amazon Linux 2 注意事項 : 硬體規格最低要求( 4core / 8GB ) 下載 GitLab package server # sudo yum install -y curl policycoreutils-python openssh-server openssh-clients perl :::info AL2023 #sudo dnf install -y policycoreutils openssh-server perl
May 23, 2023第一部分 : 設定時區 # timedatectl set-timezone Asia/Taipei 第二部分 : 安裝 PHP 這裡的 php 版本至少 7.2 (出現錯誤 : Minimum required PHP version is 7.2.0.) # amazon-linux-extras enable php7.2 # yum install php php-xml php-bcmath php-mbstring php-gd php-mysqli php-ldap # yum update php 第三部分 : 安裝及設定 Mariadb 安裝 & 啟動
May 17, 2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up