富士通のPRIMERGYサーバにCentOS 6.3 x86_64を試しにインストールしてRAID管理ソフトのServerView RAIDをインストールしてみましたが、今度はサーバ管理エージェントのServerView Agentをインストールしてみました。
ServerView RAID同様富士通サイトからServerView Agentをダウンロードします
PCサーバ PRIMERGY(プライマジー)
http://jp.fujitsu.com/platform/server/primergy/
ダウンロード
http://jp.fujitsu.com/platform/server/primergy/downloads/
ダウンロード検索
http://www.fmworld.net/cgi-bin/drviasearch/drviaindex.cgi
最新版はServerView Agents for Linux V6.12.04[F1015979.tar.gz (21166116 bytes)]でした
- 展開
- インストールスクリプト
- Agentインストール
- 32bit版opensslインストール
- Agentインストール
- snmp起動
- Agentインストール
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
[root@host1 src]# tar xvfz F1015979.tar.gz ServerView/Linux/ ServerView/Linux/Agents/ ServerView/Linux/Agents/readme_en.txt ServerView/Linux/Agents/readme_fr.txt ServerView/Linux/Agents/readme_ja.txt ServerView/Linux/Agents/ServerViewConnectorService-1.12.00-00.i386.rpm ServerView/Linux/Agents/srvmagt-agents-6.12-04.i386.rpm ServerView/Linux/Agents/srvmagt-eecd-6.12-04.i386.rpm ServerView/Linux/Agents/srvmagt-mods_src-6.12-04.i386.rpm ServerView/Linux/Agents/srvmagt.8.html ServerView/Linux/Agents/srvmagt.sh ServerView/Linux/Agents/SVSystemMonitor-6.12-04.i386.rpm ServerView/Linux/Agents/ThirdPartyLicenseReadme.txt ServerView/Linux/RHDUP/ ServerView/Linux/RHDUP/RHEL5/ ServerView/Linux/RHDUP/RHEL5/rhel5-u8/ ServerView/Linux/RHDUP/RHEL5/rhel5-u8/LicenseReadme_srvmagt-modules.txt ServerView/Linux/RHDUP/RHEL5/rhel5-u8/srvmagt-modules-5.51.14-1-002.i386.iso ServerView/Linux/RHDUP/RHEL5/rhel5-u8/srvmagt-modules-5.51.14-1-002.x86_64.iso ServerView/Linux/RHDUP/RHEL5/rhel5-u9/ ServerView/Linux/RHDUP/RHEL5/rhel5-u9/LicenseReadme.txt ServerView/Linux/RHDUP/RHEL5/rhel5-u9/srvmagt-modules-5.51.14-2-008.i386.iso ServerView/Linux/RHDUP/RHEL5/rhel5-u9/srvmagt-modules-5.51.14-2-008.x86_64.iso ServerView/Linux/RHDUP/RHEL6/ ServerView/Linux/RHDUP/RHEL6/rhel6-u3/ ServerView/Linux/RHDUP/RHEL6/rhel6-u3/LicenseReadme_srvmagt-modules.txt ServerView/Linux/RHDUP/RHEL6/rhel6-u3/srvmagt-modules-5.51.14-2-005.i386.iso ServerView/Linux/RHDUP/RHEL6/rhel6-u3/srvmagt-modules-5.51.14-2-005.x86_64.iso ServerView/Linux/RHDUP/RHEL6/rhel6-u4/ ServerView/Linux/RHDUP/RHEL6/rhel6-u4/LicenseReadme.txt ServerView/Linux/RHDUP/RHEL6/rhel6-u4/srvmagt-modules-5.51.14-2-007.i386.iso ServerView/Linux/RHDUP/RHEL6/rhel6-u4/srvmagt-modules-5.51.14-2-007.x86_64.iso ServerView/Manual/ ServerView/Manual/History_LinuxAgents.txt ServerView/Manual/History_LinuxAgents_euc.txt ServerView/Manual/History_LinuxAgents_utf8.txt ServerView/Manual/kmod-smbus.txt ServerView/Manual/kmod-smbus_euc.txt ServerView/Manual/kmod-smbus_utf8.txt ServerView/Manual/readme.txt ServerView/Manual/readme_euc.txt ServerView/Manual/readme_utf8.txt ServerView/Manual/sv-install-linux-agent-jp.pdf ServerView/Manual/sv-ssm-jp.pdf |
展開したファイルの中にインストールスクリプトが含まれています
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
[root@host1 src]# cd ServerView/Linux/Agents/ [root@host1 Agents]# ./srvmagt.sh -h x - lock directory `/tmp/_sh02746': created x - extracting /tmp/srvmagt2738/configureSNMP (text) x - extracting /tmp/srvmagt2738/functions (text) x - extracting /tmp/srvmagt2738/readme.txt (text) x - extracting /tmp/srvmagt2738/srvmagt.8 (text) x - extracting /tmp/srvmagt2738/srvmagt_de.msg (text) x - extracting /tmp/srvmagt2738/srvmagt.sh (text) x - lock directory `/tmp/_sh02746': removed Usage: srvmagt [-f] [-n] [-R] [-h|--help] [-p path] [-v vers] [--ssm inst] [-V] \ [{install|start|restart|status|diag|stop|remove}] -h|--help display this information and exit --version display the script version and exit --ssm install | not-install determines the installation of ServerView System Monitor (default: install) -f force intended action against an issued warning/rejection -n do not start the ServerView Agent processes after installation -R install ServerView RAID package if available -p path indicates the path where the packages are located (default: .) -v vers indicates the version to handle (default: script version) -V log more information on progress install install (upgrade) ServerView Agent packages start start ServerView Agent processes restart stop followed by start status show ServerView Agent status diag collect ServerView Agent diagnostic information stop stop ServerView Agent processes remove remove ServerView Agent packages You need root privileges. See also srvmagt(8). |
取り敢えずインストールを実行してみると32bit版opensslパッケージが無いとのエラーでインストールできませんでした
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
[root@host1 Agents]# ./srvmagt.sh install x - lock directory `/tmp/_sh02746': created x - extracting /tmp/srvmagt2738/configureSNMP (text) x - extracting /tmp/srvmagt2738/functions (text) x - extracting /tmp/srvmagt2738/readme.txt (text) x - extracting /tmp/srvmagt2738/srvmagt.8 (text) x - extracting /tmp/srvmagt2738/srvmagt_de.msg (text) x - extracting /tmp/srvmagt2738/srvmagt.sh (text) x - lock directory `/tmp/_sh02746': removed Installation script for ServerView Agents Linux v6.12-04 (c) Fujitsu Technology Solutions 2013 Installing KMP for smbus. Error: Nothing to do Installing of KMP for smbus failed. Installing ServerView Agents Linux '6.12-04' from '/usr/local/src/ServerView/Linux/Agents' ... The required 32bit package 'openssl' is not installed! Installing packages aborted with status 5 (Missing resources). |
32bit版opensslインストールをインストールします
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
[root@host1 Agents]# yum whatprovides openssl Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: ftp.jaist.ac.jp * epel: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp * rpmforge: ftp.kddilabs.jp * updates: ftp.jaist.ac.jp openssl-1.0.0-27.el6.i686 : A general purpose cryptography library with TLS : implementation Repo : base Matched from: openssl-1.0.0-27.el6_4.2.x86_64 : A general purpose cryptography library with : TLS implementation Repo : updates Matched from: openssl-1.0.0-27.el6_4.2.i686 : A general purpose cryptography library with TLS : implementation Repo : updates Matched from: openssl-1.0.0-27.el6.x86_64 : A general purpose cryptography library with TLS : implementation Repo : base Matched from: openssl-1.0.0-27.el6_4.2.x86_64 : A general purpose cryptography library with : TLS implementation Repo : installed Matched from: Other : Provides-match: openssl [root@host1 Agents]# yum install openssl-1.0.0-27.el6_4.2.i686 Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: ftp.jaist.ac.jp * epel: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp * rpmforge: ftp.kddilabs.jp * updates: ftp.jaist.ac.jp Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package openssl.i686 0:1.0.0-27.el6_4.2 will be installed --> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: openssl-1.0.0-27.el6_4.2.i686 --> Processing Dependency: libkrb5.so.3 for package: openssl-1.0.0-27.el6_4.2.i686 --> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: openssl-1.0.0-27.el6_4.2.i686 --> Processing Dependency: libk5crypto.so.3 for package: openssl-1.0.0-27.el6_4.2.i686 --> Processing Dependency: libgssapi_krb5.so.2 for package: openssl-1.0.0-27.el6_4.2.i686 --> Processing Dependency: libcom_err.so.2 for package: openssl-1.0.0-27.el6_4.2.i686 --> Running transaction check ---> Package krb5-libs.i686 0:1.10.3-10.el6_4.2 will be installed --> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.10.3-10.el6_4.2.i686 --> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.10.3-10.el6_4.2.i686 ---> Package libcom_err.i686 0:1.41.12-14.el6 will be installed --> Running transaction check ---> Package keyutils-libs.i686 0:1.4-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: openssl i686 1.0.0-27.el6_4.2 updates 1.4 M Installing for dependencies: keyutils-libs i686 1.4-4.el6 base 20 k krb5-libs i686 1.10.3-10.el6_4.2 updates 768 k libcom_err i686 1.41.12-14.el6 base 36 k Transaction Summary ================================================================================ Install 4 Package(s) Total download size: 2.2 M Installed size: 5.5 M Is this ok [y/N]: y Downloading Packages: (1/4): keyutils-libs-1.4-4.el6.i686.rpm | 20 kB 00:00 (2/4): krb5-libs-1.10.3-10.el6_4.2.i686.rpm | 768 kB 00:00 (3/4): libcom_err-1.41.12-14.el6.i686.rpm | 36 kB 00:00 (4/4): openssl-1.0.0-27.el6_4.2.i686.rpm | 1.4 MB 00:00 -------------------------------------------------------------------------------- Total 1.3 MB/s | 2.2 MB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libcom_err-1.41.12-14.el6.i686 1/4 Installing : keyutils-libs-1.4-4.el6.i686 2/4 Installing : krb5-libs-1.10.3-10.el6_4.2.i686 3/4 Installing : openssl-1.0.0-27.el6_4.2.i686 4/4 Verifying : libcom_err-1.41.12-14.el6.i686 1/4 Verifying : openssl-1.0.0-27.el6_4.2.i686 2/4 Verifying : keyutils-libs-1.4-4.el6.i686 3/4 Verifying : krb5-libs-1.10.3-10.el6_4.2.i686 4/4 Installed: openssl.i686 0:1.0.0-27.el6_4.2 Dependency Installed: keyutils-libs.i686 0:1.4-4.el6 krb5-libs.i686 0:1.10.3-10.el6_4.2 libcom_err.i686 0:1.41.12-14.el6 Complete! |
再度Agentをインストールしてみます。今度はsnmpが起動していないのでエラーになりました(^^;;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
[root@host1 Agents]# ./srvmagt.sh install x - lock directory `/tmp/_sh02746': created x - extracting /tmp/srvmagt2738/configureSNMP (text) x - extracting /tmp/srvmagt2738/functions (text) x - extracting /tmp/srvmagt2738/readme.txt (text) x - extracting /tmp/srvmagt2738/srvmagt.8 (text) x - extracting /tmp/srvmagt2738/srvmagt_de.msg (text) x - extracting /tmp/srvmagt2738/srvmagt.sh (text) x - lock directory `/tmp/_sh02746': removed Installation script for ServerView Agents Linux v6.12-04 (c) Fujitsu Technology Solutions 2013 Installing KMP for smbus. Error: Nothing to do Installing of KMP for smbus failed. Installing ServerView Agents Linux '6.12-04' from '/usr/local/src/ServerView/Linux/Agents' ... The required package 'ServerViewConnectorService' is not installed! 準備中... ########################################### [100%] 1:ServerViewConnectorServ########################################### [100%] [Mon Apr 22 18:23:15 2013] start time of: /opt/fujitsu/ServerViewSuite/SCS/SVRemoteConnector V1.12.00 [ServerView Remote Connector] Copyright (C) Fujitsu Technology Solutions 2009-2012 All rights reserved Native Net-SNMP agent not yet configured Enter value for sysLocation: [C=Cancel]> RootLinks sysLocation: RootLinks Enter value for sysContact: [C=Cancel]> C Enter value for Trap destination: HOST [COMMUNITY [PORT]] [C=Cancel]> 192.168.1.254 Enter value for Trap destination: HOST [COMMUNITY [PORT]] [C=Cancel]> C 準備中... ########################################### [100%] 1:srvmagt-mods_src ########################################### [100%] 準備中... ########################################### [100%] Checking ServerView SVRemoteConnector: stopped 1:srvmagt-eecd ########################################### [100%] 準備中... ########################################### [100%] 1:srvmagt-agents ########################################### [100%] Shutting down ServerView scagt (stopped)[ OK ] Shutting down ServerView sc2agt (stopped)[ OK ] Shutting down ServerView busagt (stopped)[ OK ] Shutting down ServerView hdagt (stopped)[ OK ] Shutting down ServerView unixagt (stopped)[ OK ] Shutting down ServerView etheragt (stopped)[ OK ] Shutting down ServerView biosagt (stopped)[ OK ] Shutting down ServerView securagt (stopped)[ OK ] Shutting down ServerView statusagt (stopped)[ OK ] Shutting down ServerView invagt (stopped)[ OK ] Shutting down ServerView thragt (stopped)[ OK ] Shutting down ServerView vvagt (stopped)[ OK ] Shutting down ServerView hpsimagt (stopped)[ OK ] Shutting down ServerView vmeagt (stopped)[ OK ] 準備中... ########################################### [100%] 1:SVSystemMonitor ########################################### [100%] Installing '6.12-04' srvmagt packages from '/usr/local/src/ServerView/Linux/Agents' succeeded!. Installing packages completed with status 0 (OK status). Starting ServerView Agents Linux ... Compiling ServerView modules for RHEL6 kernel 2.6.32-358.2.1.el6.x86_64... Compiling ServerView modules [ OK ] Starting ServerView modules: smbus [ OK ] Waiting until ServerView-RAID service is listening on port #3173 done (30) Starting ServerView service eecd [ OK ] Starting ServerView agents: service snmpd is not running! [失敗] Starting aborted with status 1 (General error). |
snmpdとsnmptrapdを起動します
1 2 3 4 5 6 |
[root@host1 Agents]# chkconfig snmpd on [root@host1 Agents]# chkconfig snmptrapd on [root@host1 Agents]# /etc/init.d/snmpd start snmpd を起動中: [ OK ] [root@host1 Agents]# /etc/init.d/snmptrapd start snmptrapd を起動中: [ OK ] |
再々度Agentをインストールします。今度は先程のインストール途中の影響でeecdが起動した状態のままだからダメだって…停止して再度実行します
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
[root@nc Agents]# ./srvmagt.sh install x - lock directory `/tmp/_sh02746': created x - extracting /tmp/srvmagt2738/configureSNMP (text) x - extracting /tmp/srvmagt2738/functions (text) x - extracting /tmp/srvmagt2738/readme.txt (text) x - extracting /tmp/srvmagt2738/srvmagt.8 (text) x - extracting /tmp/srvmagt2738/srvmagt_de.msg (text) x - extracting /tmp/srvmagt2738/srvmagt.sh (text) x - lock directory `/tmp/_sh02746': removed Installation script for ServerView Agents Linux v6.12-04 (c) Fujitsu Technology Solutions 2013 Installing KMP for smbus. Error: Nothing to do Installing of KMP for smbus failed. Installing ServerView Agents Linux '6.12-04' from '/usr/local/src/ServerView/Linux/Agents' ... Packages of version '6.12-04' are already installed. Installing packages completed with status 0 (OK status). Starting ServerView Agents Linux ... Starting ServerView modules: stop service eecd first! [失敗] Starting aborted with status 1 (General error). [root@host1 Agents]# ./srvmagt.sh stop x - lock directory `/tmp/_sh02746': created x - extracting /tmp/srvmagt2738/configureSNMP (text) x - extracting /tmp/srvmagt2738/functions (text) x - extracting /tmp/srvmagt2738/readme.txt (text) x - extracting /tmp/srvmagt2738/srvmagt.8 (text) x - extracting /tmp/srvmagt2738/srvmagt_de.msg (text) x - extracting /tmp/srvmagt2738/srvmagt.sh (text) x - lock directory `/tmp/_sh02746': removed Installation script for ServerView Agents Linux v6.12-04 (c) Fujitsu Technology Solutions 2013 Stopping ServerView Agents Linux ... Shutting down ServerView scagt (stopped) [ OK ] Shutting down ServerView sc2agt (stopped) [ OK ] Shutting down ServerView busagt (stopped) [ OK ] Shutting down ServerView hdagt (stopped) [ OK ] Shutting down ServerView unixagt (stopped) [ OK ] Shutting down ServerView etheragt (stopped) [ OK ] Shutting down ServerView biosagt (stopped) [ OK ] Shutting down ServerView securagt (stopped) [ OK ] Shutting down ServerView statusagt (stopped) [ OK ] Shutting down ServerView invagt (stopped) [ OK ] Shutting down ServerView thragt (stopped) [ OK ] Shutting down ServerView vvagt (stopped) [ OK ] Shutting down ServerView hpsimagt (stopped) [ OK ] Shutting down ServerView vmeagt (stopped) [ OK ] Shutting down ServerView service eecd: TERM [ OK ] Stopping ServerView modules: smbus [ OK ] Stopping completed with status 0 (OK status). [root@nc Agents]# ./srvmagt.sh install x - lock directory `/tmp/_sh02746': created x - extracting /tmp/srvmagt2738/configureSNMP (text) x - extracting /tmp/srvmagt2738/functions (text) x - extracting /tmp/srvmagt2738/readme.txt (text) x - extracting /tmp/srvmagt2738/srvmagt.8 (text) x - extracting /tmp/srvmagt2738/srvmagt_de.msg (text) x - extracting /tmp/srvmagt2738/srvmagt.sh (text) x - lock directory `/tmp/_sh02746': removed Installation script for ServerView Agents Linux v6.12-04 (c) Fujitsu Technology Solutions 2013 Installing KMP for smbus. Error: Nothing to do Installing of KMP for smbus failed. Installing ServerView Agents Linux '6.12-04' from '/usr/local/src/ServerView/Linux/Agents' ... Packages of version '6.12-04' are already installed. Installing packages completed with status 0 (OK status). Starting ServerView Agents Linux ... Starting ServerView modules: smbus [ OK ] Waiting until ServerView-RAID service is listening on port #3173 done (30) Starting ServerView service eecd [ OK ] Waiting for eecd sockets done (297) Starting ServerView scagt -d [ OK ] Starting ServerView sc2agt -d [ OK ] Starting ServerView busagt -d [ OK ] Starting ServerView hdagt -d [ OK ] Starting ServerView unixagt -d [ OK ] Starting ServerView etheragt -d [ OK ] Starting ServerView biosagt -d [ OK ] Starting ServerView securagt -d [ OK ] Starting ServerView statusagt -d [ OK ] Starting ServerView invagt -d [ OK ] Starting ServerView thragt -d [ OK ] Starting ServerView vvagt -d [ OK ] Starting ServerView hpsimagt -d [ OK ] Starting ServerView vmeagt -d -p /etc/srvmagt/VME [ OK ] Starting ServerView SVRemoteConnector [ OK ] Waiting for Inventory data done (168) Starting completed with status 0 (OK status). |
取り敢えずインストールできました。あとはServerView Operations Managerにサーバと登録してステータスが確認できてトラップが上がってくればOKです
【参考】
- srvmagt_scs status
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
[root@host1 Agents]# /etc/init.d/srvmagt_scs status Checking ServerView SVRemoteConnector: pid 6691 [root@host1 Agents]# /etc/init.d/srvmagt status Checking for ServerView scagt: pid 6444, degraded Checking for ServerView sc2agt: pid 6459, running Checking for ServerView busagt: pid 6472, running Checking for ServerView hdagt: pid 6485, running Checking for ServerView unixagt: pid 6498, running Checking for ServerView etheragt: pid 6511, running Checking for ServerView biosagt: pid 6524, running Checking for ServerView securagt: pid 6539, running Checking for ServerView statusagt: pid 6552, running Checking for ServerView invagt: pid 6565, running Checking for ServerView thragt: pid 6578, running Checking for ServerView vvagt: pid 6591, running Checking for ServerView hpsimagt: pid 6604, running Checking for ServerView vmeagt: pid 6620, running [root@host1 Agents]# /etc/init.d/eecd status Checking for ServerView service eecd: pid 6120 [root@host1 Agents]# chkconfig --list | grep eecd eecd 0:off 1:off 2:on 3:on 4:on 5:on 6:off eecd_mods_src 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@host1 Agents]# chkconfig --list | grep srvmagt srvmagt 0:off 1:off 2:on 3:on 4:on 5:on 6:off srvmagt_scs 0:off 1:off 2:on 3:on 4:on 5:on 6:off |