centosインストール後のセットアップ_for_251

CentOS仮想サーバにユーザ名「yoshitake」でログインしているとする。

scp m32.s:/suikou/download/zabbix-agent-3.2.4-2.el7.x86_64.rpm .
#パスワードはyoshitake
sudo yum localinstall -y zabbix-agent-3.2.4-2.el7.x86_64.rpm
#パスワードはyoshitake
sudo sed -i 's/Server=127.0.0.1/Server=192.168.251.202/; s/ServerActive=127.0.0.1/ServerActive=192.168.251.202/' /etc/zabbix/zabbix_agentd.conf

echo "
Timeout=30

UserParameter=hdd.rmbyte[*],iostat -mdx 1 2 | grep \$1 | awk '{print \$\$6}'|tail -n 1
UserParameter=hdd.wmbyte[*],iostat -mdx 1 2 | grep \$1 | awk '{print \$\$7}'|tail -n 1
UserParameter=toppro,top -b -n 1 | sed -e \"1,6d\" | head -6|awk '{print \$2\" \"\$9\" \"\$10\" \"\$12}'
" |sudo tee -a /etc/zabbix/zabbix_agentd.conf

sudo systemctl start zabbix-agent
sudo systemctl enable zabbix-agent
sudo setenforce 0
sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
  • centosインストール後のセットアップ_for_251.1606701223.txt.gz
  • 最終更新: 2020/11/30 01:53
  • by 118.240.79.152