Hinemos手順

Hinemos6.2をインストールした際の手順メモ。

自分用に。

yum update
hostnamectl set-hostname hinemos
vi /etc/ssh/sshd_config
getenforce
cp -p /usr/lib/firewalld/services/ssh.xml /etc/firewalld/services/ssh-alt.xml
vi /etc/firewalld/services/ssh-alt.xml
firewall-cmd –reload
firewall-cmd –add-service=ssh-alt
firewall-cmd –permanent –add-service=ssh-alt
firewall-cmd –remove-service=ssh
firewall-cmd –permanent –remove-service=ssh
firewall-cmd –reload
firewall-cmd –list-all
localectl status
localectl set-locale LANG=ja_JP.UTF-8
localectl status
systemctl restart sshd
passwd
reboot

HinemosManagerインストール
yum install java-1.8.0-openjdk vim-common java-1.8.0-openjdk-devel net-snmp-utils net-tools sysstat tcpdump lsof sblim-wbemcli wsmancli net-snmp
cd /tmp/
rpm -ivh https://github.com/hinemos/hinemos/releases/download/v6.2.1/hinemos-6.2-manager-6.2.1-1.el7.x86_64.rpm

vi /opt/hinemos/etc/hinemos.cfg
→以下になっていることを確認

Environment Attributes

export LANG=ja_JP.UTF-8

HinemosManager用Port開放
firewall-cmd –add-port=8080/tcp –permanent
firewall-cmd –add-port=8443/tcp –permanent
firewall-cmd –add-port=8081/tcp –permanent
firewall-cmd –add-port=8444/tcp –permanent
firewall-cmd –add-port=514/tcp –permanent
firewall-cmd –add-port=514/udp –permanent
firewall-cmd –add-port=162/udp –permanent
firewall-cmd –add-port=8082/tcp –permanent
firewall-cmd –reload

HinemosManager起動
systemctl start hinemos_manager.service

HinemosManager起動確認
systemctl status hinemos_manager.service
→ Main PID: XXXX (java)
にjavaとあることを確認

systemctl status hinemos_pg.service
→ Main PID: XXXX (postgres)
にpostgresとあることを確認

ps -ef | grep /opt/hinemos/

WebClientインストール
yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel vlgothic-p-fonts unzip
rpm -ivh https://github.com/hinemos/hinemos/releases/download/v6.2.1/hinemos-6.2-web-6.2.1-1.el7.x86_64.rpm

vi /opt/hinemos_web/conf/hinemos_web.cfg
→以下になっていることを確認

Environment Attributes

export LANG=ja_JP.UTF-8

WebClient起動
systemctl start hinemos_web.service

WebClinet起動確認
firewall-cmd –permanent –add-service=http
firewall-cmd –add-service=http
firewall-cmd –reload

http://<IP>
へアクセスする

Linux Agentインストール
yum install java-1.8.0-openjdk openssh-clients rsyslog net-snmp net-snmp-libs tog-pegasus sblim-wbemcli sblim-cmpi-base sblim-cmpi-fsvol openlmi-storage libpcap net-snmp-utils

cd /tmp
HINEMOS_MANAGER=<managerIP> rpm -ivh https://github.com/hinemos/hinemos/releases/download/v6.2.1/hinemos-6.2-agent-6.2.1-1.el.noarch.rpm

vi /opt/hinemos_agent/conf/hinemos_agent.cfg
→以下になっていることを確認

Environment Attributes

export LANG=ja_JP.UTF-8

Linux Agent用Port開放
firewall-cmd –add-port=24005/udp –permanent
firewall-cmd –add-port=160/udp –permanent
firewall-cmd –add-port=161/udp –permanent
firewall-cmd –add-port=5988/tcp –permanent
firewall-cmd –add-port=5989/tcp –permanent
firewall-cmd –add-port=22/tcp –permanent ※sshPort。変更している場合は変更を
firewall-cmd –add-port=514/udp –permanent※複数HinemosManagerがある場合のみ
firewall-cmd –reload

コメントを残す