このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
最近の更新
古いzabbix_agentを動かしたい場合
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 mkdir -p /var/log/zabbix /etc/zabbix/zabbix_agentd.d chown zabbix:zabbix /usr/lib/zabbix /var/log/zabbix
wget https://cdn.zabbix.com/zabbix/sources/oldstable/2.2/zabbix-2.2.7.tar.gz tar xzvf zabbix-2.2.7.tar.gz apt install gcc make ./configure --enable-agent make && make install
cat << __EOM__ > /usr/lib/systemd/system/zabbix-agent.service
[Unit]
Description=Zabbix Agent
After=syslog.target
After=network.target
[Service]
Environment="CONFFILE=/etc/zabbix/zabbix_agentd.conf"
EnvironmentFile=-/etc/sysconfig/zabbix-agent
Type=forking
Restart=on-failure
PIDFile=/tmp/zabbix_agentd.pid
KillMode=control-group
ExecStart=/usr/local/sbin/zabbix_agentd -c \$CONFFILE
ExecStop=/bin/kill -SIGTERM \$MAINPID
RestartSec=10s
User=zabbix
Group=zabbix
[Install]
WantedBy=multi-user.target
__EOM__