Created
November 15, 2015 06:30
-
-
Save 0ta2/31afc5c9b0393032dd24 to your computer and use it in GitHub Desktop.
Hinemos ver5.0のシステムリソース監視を行う ref: http://qiita.com/mackerel/items/a873fd40f58741631fd2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yum install net-snmp net-snmp-utils | |
$ echo “view systemview included .1.3.6.1” >> /etc/snmp/snmpd.conf | |
$ service snmpd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vi /etc/selinux/config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file controls the state of SELinux on the system. | |
# SELINUX= can take one of these three values: | |
# enforcing - SELinux security policy is enforced. | |
# permissive - SELinux prints warnings instead of enforcing. | |
# disabled - No SELinux policy is loaded. | |
SELINUX=disabled # disabledに変更する | |
# SELINUXTYPE= can take one of three two values: | |
# targeted - Targeted processes are protected, | |
# minimum - Modification of targeted policy. Only selected processes are protected. | |
# mls - Multi Level Security protection. | |
SELINUXTYPE=targeted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service iptables stop | |
iptables: チェインをポリシー ACCEPT へ設定中filter [ OK ] | |
iptables: ファイアウォールルールを消去中: [ OK ] | |
iptables: モジュールを取り外し中: [ OK ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### wgetが必要なのでインストール | |
$ yum install wget | |
### ダウンロードするため、tmpに移動 | |
$ cd /tmp | |
### Hinemos agentのrpmをダウンロード | |
$ wget http://iij.dl.osdn.jp/hinemos/63808/hinemos-agent-5.0.1-1.el.noarch.rpm | |
--2015-11-15 02:55:22-- http://iij.dl.osdn.jp/hinemos/63808/hinemos-agent-5.0.1-1.el.noarch.rpm | |
iij.dl.osdn.jp をDNSに問いあわせています... 202.232.140.170 | |
iij.dl.osdn.jp|202.232.140.170|:80 に接続しています... 接続しました。 | |
HTTP による接続要求を送信しました、応答を待っています... 200 OK | |
長さ: 1447389 (1.4M) [application/x-rpm] | |
`hinemos-agent-5.0.1-1.el.noarch.rpm' に保存中 | |
100%[===========================================================================================>] 1,447,389 8.06M/s 時間 0.2s | |
2015-11-15 02:55:22 (8.06 MB/s) - `hinemos-agent-5.0.1-1.el.noarch.rpm' へ保存完了 [1447389/1447389] | |
### Hinemos agentにはjavaが必要なのでインストールされていなかったらインストールする | |
$ rpm -qa | grep java-1.7.0-openjdk | |
# 何もで表示されなかったら、入っていないということ | |
$ yum install java-1.7.0-openjdk | |
読み込んだプラグイン:fastestmirror | |
インストール処理の設定をしています | |
Loading mirror speeds from cached hostfile | |
* base: www.ftp.ne.jp | |
* epel: ftp.riken.jp | |
* extras: www.ftp.ne.jp | |
* updates: www.ftp.ne.jp | |
依存性の解決をしています | |
--> トランザクションの確認を実行しています。 | |
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.91-2.6.2.2.el6_7 will be インストール | |
--> 依存性の処理をしています: jpackage-utils >= 1.7.3-1jpp.2 のパッケージ: 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 | |
--> 依存性の処理をしています: xorg-x11-fonts-Type1 のパッケージ: 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 | |
--> 依存性の処理をしています: tzdata-java のパッケージ: 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 | |
--> 依存性の処理をしています: libpcsclite.so.1()(64bit) のパッケージ: 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 | |
--> 依存性の処理をしています: libgif.so.4()(64bit) のパッケージ: 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 | |
--> 依存性の処理をしています: libgconf-2.so.4()(64bit) のパッケージ: 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 | |
--> トランザクションの確認を実行しています。 | |
---> Package GConf2.x86_64 0:2.28.0-6.el6 will be インストール | |
--> 依存性の処理をしています: sgml-common のパッケージ: GConf2-2.28.0-6.el6.x86_64 | |
--> 依存性の処理をしています: libORBit-2.so.0()(64bit) のパッケージ: GConf2-2.28.0-6.el6.x86_64 | |
---> Package giflib.x86_64 0:4.1.6-3.1.el6 will be インストール | |
---> Package jpackage-utils.noarch 0:1.7.5-3.14.el6 will be インストール | |
---> Package pcsc-lite-libs.x86_64 0:1.5.2-15.el6 will be インストール | |
---> Package tzdata-java.noarch 0:2015g-2.el6 will be インストール | |
---> Package xorg-x11-fonts-Type1.noarch 0:7.2-11.el6 will be インストール | |
--> 依存性の処理をしています: ttmkfdir のパッケージ: xorg-x11-fonts-Type1-7.2-11.el6.noarch | |
--> 依存性の処理をしています: ttmkfdir のパッケージ: xorg-x11-fonts-Type1-7.2-11.el6.noarch | |
--> トランザクションの確認を実行しています。 | |
---> Package ORBit2.x86_64 0:2.14.17-5.el6 will be インストール | |
--> 依存性の処理をしています: libIDL-2.so.0()(64bit) のパッケージ: ORBit2-2.14.17-5.el6.x86_64 | |
---> Package sgml-common.noarch 0:0.6.3-33.el6 will be インストール | |
---> Package ttmkfdir.x86_64 0:3.0.9-32.1.el6 will be インストール | |
--> トランザクションの確認を実行しています。 | |
---> Package libIDL.x86_64 0:0.8.13-2.1.el6 will be インストール | |
--> 依存性解決を終了しました。 | |
依存性を解決しました | |
===================================================================================================================================== | |
パッケージ アーキテクチャ バージョン リポジトリー 容量 | |
===================================================================================================================================== | |
インストールしています: | |
java-1.7.0-openjdk x86_64 1:1.7.0.91-2.6.2.2.el6_7 updates 26 M | |
依存性関連でのインストールをします。: | |
GConf2 x86_64 2.28.0-6.el6 base 964 k | |
ORBit2 x86_64 2.14.17-5.el6 base 168 k | |
giflib x86_64 4.1.6-3.1.el6 base 37 k | |
jpackage-utils noarch 1.7.5-3.14.el6 base 60 k | |
libIDL x86_64 0.8.13-2.1.el6 base 83 k | |
pcsc-lite-libs x86_64 1.5.2-15.el6 base 28 k | |
sgml-common noarch 0.6.3-33.el6 base 43 k | |
ttmkfdir x86_64 3.0.9-32.1.el6 base 43 k | |
tzdata-java noarch 2015g-2.el6 updates 177 k | |
xorg-x11-fonts-Type1 noarch 7.2-11.el6 base 520 k | |
トランザクションの要約 | |
===================================================================================================================================== | |
インストール 11 パッケージ | |
総ダウンロード容量: 28 M | |
インストール済み容量: 99 M | |
これでいいですか? [y/N]y # y応答 | |
パッケージをダウンロードしています: | |
(1/11): GConf2-2.28.0-6.el6.x86_64.rpm | 964 kB 00:00 | |
(2/11): ORBit2-2.14.17-5.el6.x86_64.rpm | 168 kB 00:00 | |
(3/11): giflib-4.1.6-3.1.el6.x86_64.rpm | 37 kB 00:00 | |
(4/11): java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64.rpm | 26 MB 00:01 | |
(5/11): jpackage-utils-1.7.5-3.14.el6.noarch.rpm | 60 kB 00:00 | |
(6/11): libIDL-0.8.13-2.1.el6.x86_64.rpm | 83 kB 00:00 | |
(7/11): pcsc-lite-libs-1.5.2-15.el6.x86_64.rpm | 28 kB 00:00 | |
(8/11): sgml-common-0.6.3-33.el6.noarch.rpm | 43 kB 00:00 | |
(9/11): ttmkfdir-3.0.9-32.1.el6.x86_64.rpm | 43 kB 00:00 | |
(10/11): tzdata-java-2015g-2.el6.noarch.rpm | 177 kB 00:00 | |
(11/11): xorg-x11-fonts-Type1-7.2-11.el6.noarch.rpm | 520 kB 00:00 | |
------------------------------------------------------------------------------------------------------------------------------------- | |
合計 19 MB/s | 28 MB 00:01 | |
rpm_check_debug を実行しています | |
トランザクションのテストを実行しています | |
トランザクションのテストを成功しました | |
トランザクションを実行しています | |
警告: RPMDB は yum 以外で変更されました。 | |
インストールしています : tzdata-java-2015g-2.el6.noarch 1/11 | |
インストールしています : giflib-4.1.6-3.1.el6.x86_64 2/11 | |
インストールしています : pcsc-lite-libs-1.5.2-15.el6.x86_64 3/11 | |
インストールしています : sgml-common-0.6.3-33.el6.noarch 4/11 | |
インストールしています : jpackage-utils-1.7.5-3.14.el6.noarch 5/11 | |
インストールしています : libIDL-0.8.13-2.1.el6.x86_64 6/11 | |
インストールしています : ORBit2-2.14.17-5.el6.x86_64 7/11 | |
インストールしています : GConf2-2.28.0-6.el6.x86_64 8/11 | |
インストールしています : ttmkfdir-3.0.9-32.1.el6.x86_64 9/11 | |
インストールしています : xorg-x11-fonts-Type1-7.2-11.el6.noarch 10/11 | |
インストールしています : 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 11/11 | |
Verifying : ttmkfdir-3.0.9-32.1.el6.x86_64 1/11 | |
Verifying : libIDL-0.8.13-2.1.el6.x86_64 2/11 | |
Verifying : xorg-x11-fonts-Type1-7.2-11.el6.noarch 3/11 | |
Verifying : jpackage-utils-1.7.5-3.14.el6.noarch 4/11 | |
Verifying : sgml-common-0.6.3-33.el6.noarch 5/11 | |
Verifying : ORBit2-2.14.17-5.el6.x86_64 6/11 | |
Verifying : pcsc-lite-libs-1.5.2-15.el6.x86_64 7/11 | |
Verifying : GConf2-2.28.0-6.el6.x86_64 8/11 | |
Verifying : 1:java-1.7.0-openjdk-1.7.0.91-2.6.2.2.el6_7.x86_64 9/11 | |
Verifying : giflib-4.1.6-3.1.el6.x86_64 10/11 | |
Verifying : tzdata-java-2015g-2.el6.noarch 11/11 | |
インストール: | |
java-1.7.0-openjdk.x86_64 1:1.7.0.91-2.6.2.2.el6_7 | |
依存性関連をインストールしました: | |
GConf2.x86_64 0:2.28.0-6.el6 ORBit2.x86_64 0:2.14.17-5.el6 giflib.x86_64 0:4.1.6-3.1.el6 | |
jpackage-utils.noarch 0:1.7.5-3.14.el6 libIDL.x86_64 0:0.8.13-2.1.el6 pcsc-lite-libs.x86_64 0:1.5.2-15.el6 | |
sgml-common.noarch 0:0.6.3-33.el6 ttmkfdir.x86_64 0:3.0.9-32.1.el6 tzdata-java.noarch 0:2015g-2.el6 | |
xorg-x11-fonts-Type1.noarch 0:7.2-11.el6 | |
完了しました! | |
### インストールする | |
$ rpm -ivh hinemos-agent-5.0.1-1.el.noarch.rpm | |
# -i rpmをインストールする | |
# -v 詳細な出力をする | |
# -h インストール進捗を # で表示する | |
準備中... ########################################### [100%] | |
1:hinemos-agent ########################################### [100%] | |
システムロガーを停止中: [ OK ] | |
システムロガーを起動中: [ OK ] | |
$ service hinemos_agent start | |
Starting hinemos_agent : Hinemos Agent started. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment