**文書の過去の版を表示しています。**
sudoパスワードなしに変更
sudo sed -i 's/^%wheel\tALL=(ALL)\tALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/' /etc/sudoers #パスワードはyoshitake
zabbixへの登録
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 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
SE Linux無効化設定
sudo setenforce 0 sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
Firewall無効化設定
sudo systemctl stop firewalld.service sudo systemctl disable firewalld.service