監視のお話に入る前に
System Center Management Pack for UNIX/Linux
System Center Management Pack for OSS
Apache httpd
MySQL
Operations Management Suite
OMSの動向
Operations Management Suite Agent for Linux Public Preview
Syslog
Performance Counter
Apache httpd
MySQL
Docker
3. 自己紹介
指崎則夫(さしざきのりお)
http://sashiz.seesaa.net → http://sashiz.wordpress.com →
http:// sshzk.blogspot.com
https://www.facebook.com/norio.sashizaki
@sshzk
http://www.slideshare.net/noriosashizaki/
https://docs.com/sashizaki-norio
https://www.flickr.com/photos/96255846@N04/albums →→→
SCUGJ運営スタッフ
Microsoft MVP Cloud and Datacenter Management
Windows Server 2012 R2 Hyper-V、System Center 2012 R2 、
Windows Server 2016 Container、
System Center 2016 Operations Managerなどなど
写真撮影
高校サッカー→大学サッカーの観戦&写真撮影
お花、サーフィンの写真撮影
https://www.flickr.com/photos/96255846@N04/albums
ガンプラ…
2016/09/10 2
4. アジェンダ
監視のお話に入る前に
System Center Management Pack for UNIX/Linux
System Center Management Pack for OSS
Apache httpd
MySQL
Operations Management Suite
OMSの動向
Operations Management Suite Agent for Linux Public Preview
Syslog
Performance Counter
Apache httpd
MySQL
Docker
2016/09/10 3
6. Best Practices for running * on Hyper-V
Best Practices for running Linux on Hyper-V の記載項目を下記に転記しておきます。
https://technet.microsoft.com/ja-jp/windows-server-docs/compute/hyper-v/best-practices-
for-running-linux-on-hyper-v
Tuning Linux File Systems on Dynamic VHDX Files
Grub Menu Timeout on Generation 2 Virtual Machines
PxE Boot on Generation 2 Virtual Machines
Use static MAC addresses with failover clustering.
Use Hyper-V-specific network adapters, not the legacy network adapter.
Use I/O scheduler NOOP for better disk I/O performance.
Add "numa=off" if the Linux virtual machine has more than 7 virtual processors or more than 30
GB RAM.
Reserve more memory for kdump
Shrinking VHDX or expanding VHD and VHDX files can result in erroneous GPT partition tables
2016/09/10 5
8. Best Practices for running * on Hyper-V
Best practices for running FreeBSD on Hyper-V の記載項目を下記に転記して
おきます。
https://technet.microsoft.com/ja-jp/windows-server-docs/compute/hyper-
v/best-practices-for-running-freebsd-on-hyper-v
Enable CARP in FreeBSD 10.2 on Hyper-V
Add UUIDs for all devices listed in fstab
Disable the Fast IDE Driver
Create GEOM labels on FreeBSD 8.x
2016/09/10 7
9. Linux Integration Services Version 4.1.2
Linux Integration Services Version 4.1 for Hyper-V
https://www.microsoft.com/en-us/download/details.aspx?id=51612
上記よりダウンロードできるLinux Integration Services v4-1c.pdfによるとホストOS
のサポート対象は下記の通り。
Windows Server 2008 R2 (applicable editions)
Microsoft Hyper-V Server 2008 R2
Windows 8 Pro and 8.1 Pro
Windows Server 2012 and 2012 R2
Microsoft Hyper-V Server 2012 and 2012 R2
Windows Server 2016
Microsoft Hyper-V Server 2016
Microsoft Azure
2016/09/10 8
10. Linux Integration Services Version 4.1.2
Linux Integration Services Version 4.1 for Hyper-V
https://www.microsoft.com/en-us/download/details.aspx?id=51612
よりダウンロードできるLinux Integration Services v4-1c.pdfによるとゲストOSのサ
ポート対象は下記の通り。
Red Hat Enterprise Linux 5.2-5.11 32-bit, 32-bit PAE, and 64-bit Red Hat Enterprise
Linux 6.0-6.8 32-bit and 64-bit
Red Hat Enterprise Linux 7.0-7.2 64-bit
CentOS 5.2-5.11 32-bit, 32-bit PAE, and 64-bit
CentOS 6.0-6.8 32-bit and 64-bit
CentOS 7.0-7.2 64-bit
Oracle Linux 6.4-6.8 with Red Hat Compatible Kernel 32-bit and 64-bit
Oracle Linux 7.0-7.2 with Red Hat Compatible Kernel 64-bit
Gen 1 仮想マシンは、特に問題なく使えています。
2016/09/10 9
11. Linux Integration Services Version 4.1.2
Windows Server 2016で、Gen 2 仮想マシンでCentOS 7.xはセキュアブートでき
ます。
https://technet.microsoft.com/ja-jp/windows-server-docs/compute/hyper-
v/supported-centos-and-red-hat-enterprise-linux-virtual-machines-on-hyper-
v#BKMK_7x
2016/8/24現在、
Linux Integration Services Version 4.1.2を
インストールすると、CentOS 7.1~7.2で
ブート不可となるケースがあります。
セキュアブートを無効化すれば起動することは確認済み。
山市良さんが調べられた下記記事もご確認ください。
Supported Linux and FreeBSD virtual machines
for Hyper-V on Windows のページ更新 (2016 年 8 月版)
2016/09/10 10
http://yamanxworld.blogspot.jp/2016/08/supported-
linux-and-freebsd-virtual.html
13. System Center Management Pack for
UNIX/Linux
System Center Operations Manager(2012, 2012 SP1, 2012R2)向けの最新版がダ
ウンロードできます。
System Center 2012 Management Pack for UNIX and Linux Operating Systems
(2016/08)
https://www.microsoft.com/en-us/download/details.aspx?id=29696
UNIX/Linux Management PacksへのAudit Collection Servicesインストールと有
効化
2016/09/10 12
14. System Center 2012 Management Pack
for UNIX/Linux
モニタリング
AIX 5.3、AIX 6.1、AIX 7
HP-UX 11iv2、HP-UX 11iv3
Red Hat Enterprise Linux Server 4、Red Hat Enterprise Linux Server 5、Red Hat Enterprise
Linux Server 6、Red Hat Enterprise Linux 7
Solaris 9、Solaris 10、Solaris 11
SUSE Linux Enterprise Server 9、SUSE Linux Enterprise Server 10 SP1、 SUSE Linux
Enterprise Server 11、SUSE Linux Enterprise Server 12
CentOS 5、CentOS 6、CentOS 7
Debian GNU/Linux 5、Debian GNU/Linux 6、Debian GNU/Linux 7、Debian GNU/Linux 8
Oracle Linux 5、Oracle Linux 6、Oracle Linux 7
Ubuntu Linux Server 10.04、Ubuntu Linux Server 12.04、Ubuntu Linux Server 14.04
2016/09/10 13
15. System Center 2016 TP 5 Management
Pack for UNIX/Linux
https://technet.microsoft.com/ja-jp/system-center-docs/system-
requirements/system-center-agents
AIX 5.3、AIX 6.1、AIX 7
HP-UX 11iv2、HP-UX 11iv3
Red Hat Enterprise Linux Server 4、Red Hat Enterprise Linux Server 5、Red Hat Enterprise
Linux Server 6、Red Hat Enterprise Linux 7
Solaris 9、Solaris 10、Solaris 11
SUSE Linux Enterprise Server 9、SUSE Linux Enterprise Server 10 SP1、 SUSE Linux
Enterprise Server 11、SUSE Linux Enterprise Server 12
CentOS 5、CentOS 6、CentOS 7
Debian GNU/Linux 5、Debian GNU/Linux 6、Debian GNU/Linux 7、Debian GNU/Linux 8
Oracle Linux 5、Oracle Linux 6、Oracle Linux 7
Ubuntu Linux Server 10.04、Ubuntu Linux Server 12.04、Ubuntu Linux Server 14.04
2016/09/10 14
16. System Center 2016 TP 5 Management
Pack for UNIX/Linux
https://technet.microsoft.com/ja-jp/system-center-docs/system-
requirements/system-center-agents
2016/09/10 15
17. System Center Management Pack for
UNIX/Linux
インストール時のTips
DNSによる名前解決を可能にしておく
IPアドレス指定の場合は、逆引きも必要
SCOMサーバーのローカル管理者グループにOMアクションアカウントを追
加
Linuxのドメイン名をSCOMサーバーと同じにしておく
通信に使う証明書の生成時にエラー発生
Linuxのファイアウォールを開ける
1270/TCP
ssh
Linuxにsshでアクセス可能なアカウントを用意
特権アカウントもしくはsudo可能なアカウント
16
System Center 2012 R2 Operations ManagerでLinux監視 その3
http://sashiz.wordpress.com/2013/12/29/system-center-2012-
r2-operations-manager-linux3/
2016/09/10
18. System Center Management Pack for
UNIX/Linux
System Center 2016 TP5 Operations Manager 管理パックのインポート
2016/09/10 17
19. System Center Management Pack for
UNIX/Linux
System Center 2016 TP5 Operations Managerデモンストレーション
2016/09/10 18
21. System Center Management Pack for OSS
System Center 2016 Technical Preview 2 Management Packs for Open Source Software
https://www.microsoft.com/en-us/download/details.aspx?id=46924
System Center 2016 Management Pack for UNIX/Linuxが必要です。
AIX, Solaris、HP-UXはサポートされていません。
Apache HTTP Server version 2.2 と 2.4を監視します。
busy workersとidle workersを監視
メモリーとCPUの使用率を監視
Virtual hostsにおける“Requests per Minute”と“Errors per Minute”の統計を提供
SSL証明書の有効期限切れを警告
MySQL Server 5.0, 5.1, 5.5, 5.6と5.7を監視します。
上記バージョンとともにMariaDB Server version 5.5, and 10.0をサポート
データベースを監視
サーバーとデータベースのディスク使用量を監視
Key Cache, Query CacheとTable Cacheの統計を提供
スローダウンしているクエリー、接続の失敗、フルテーブルスキャンを警告
2016/09/10 20
22. System Center Management Pack for OSS
httpd、MySQLの監視コンポーネントは、System Center 2016 TP5 Operations
ManagerのLinuxエージェントに含まれています。
2016/09/10 21
23. System Center Management Pack for OSS
httpd、MySQLの監視コンポーネントは、System Center 2016 TP5 Operations
ManagerのLinuxエージェントに含まれています。
2016/09/10 22
27. MySQL
追加設定として、まずモニター用のユーザーをMySQLに作成し、権限を設定します。
create user ‘scxagent’@‘localhost’ identified by ‘パスワード';
mysql> grant select on information_schema.* to 'scxagent'@'localhost';
mysql> grant select on mysql.* to 'scxagent'@'localhost';
2016/09/10 26
29. MySQL
追加設定として、Set Default MySQL Credentialsを実行します。これは、
MySQLが監視できるような状態になってから行います。具体的な方法は、下記
ページをご覧ください。
Microsoft Operations Management Suite Agent for Linux その4 MySQL
http://sshzk.blogspot.jp/2016/08/microsoft-operations-management-suite.html
2016/09/10 28
おわび
設定手順に沿って確認してみましたが、
System Center 2016 TP5 Operations
Managerに情報が表示されていません。
35. OMS Agent for Linux GA v1.2.0-25
https://github.com/Microsoft/OMS-Agent-for-Linux/releases
2016/09/10 34
36. OMS Agent for Linux GA v1.2.0-25
2016/09/10 35
wget
https://github.com/Microsoft
/OMS-Agent-for-
Linux/releases/download/OM
SAgent_GA_v1.2.0-
25/omsagent-1.2.0-
25.universal.x64.sh
※2016/08/28時点のダウン
ロードファイル
37. OMS Agent for Linux GA v1.2.0-25
2016/09/10 36
sha256sum ./omsagent-1.2.0-
25.universal.x64.sh
※2016/08/28時点のダウン
ロードファイル
38. OMS Agent for Linux GA v1.2.0-25
2016/09/10 37
sudo sh ./omsagent-1.2.0-
25.universal.x64.sh --upgrade -
w <YOUR OMS WORKSPACE ID> -
s <YOUR OMS WORKSPACE
PRIMARY KEY>
※2016/08/28時点のダウンロー
ドファイルでアップグレード!
42. syslog
2016/09/10 41
Agentインストール後、追加設定をOMS側で行います。
Microsoft Operations Management Suite Agent for Linux その3 に概要をまとめて
います。
Configuring Syslog collection from the OMS portal
https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/docs/OMS-Agent-for-
Linux.md#configuring-syslog-collection-from-the-oms-portal
Configuring Linux Performance Counter collection from the OMS portal
https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/docs/OMS-Agent-for-
Linux.md#configuring-linux-performance-counter-collection-from-the-oms-portal
43. Configuring Syslog collection from the
OMS portal
2016/09/10 42
[設定]→[DATA]→[Syslog]の順で設定画面にアクセスできます。
設定できるファシリティは下記の通り。
Auth、authpriv、cron、daemon、ftp、kern、
local0、local1、local2、local3、local4、local5、local6、local7、
lpr、mail、news、syslog、user、uucp
設定後は、 [Save]をクリック! [+]でファシリティを追加
44. Configuring Linux Performance Counter
collection from the OMS portal
2016/09/10 43
設定後は、 [Save]をクリック!
既定値として表示されます。
[+]でパフォーマンスカウンターを追加
45. Configuring Linux Performance Counter
collection from the OMS portal
2016/09/10 44
設定後は、 [Save]をクリック!
https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/docs/OMS-Agent-for-Linux.md#appendix-available-performance-metrics
63. 参考資料
Linux Integration Services download Version 4.1.2
https://blogs.technet.microsoft.com/virtualization/2016/08/10/linux-
integration-services-download-version-4-1-2/
System Center 2012 Management Pack for UNIX and Linux Operating Systems
(2016/02)
https://www.microsoft.com/en-us/download/details.aspx?id=29696
Operations Management Suite Blog
https://blogs.technet.microsoft.com/msoms/
2016/09/10 62
64. 参考資料
Appendix B: Database Permissions Required for MySQL Performance Counters
https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/docs/OMS-
Agent-for-Linux.md#appendix-b-database-permissions-required-for-mysql-
performance-counters
Appendix C: Managing MySQL monitoring credentials in the authentication file
https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/docs/OMS-
Agent-for-Linux.md#appendix-c-managing-mysql-monitoring-credentials-in-
the-authentication-file
Enabling MySQL Performance Counters
https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/docs/OMS-
Agent-for-Linux.md#enabling-mysql-performance-counters
2016/09/10 63
監視のお話に入る前に 5min
System Center Management Pack for UNIX/Linux 5min
Best Practices for running * on Hyper-V
Linux Integration Services Version 4.1.2
System Center Management Pack for OSS 15min
管理パック(Management Pack、MP) 5min
Apache httpd 5min
MySQL 5min
Operations Management Suite 25min
OMSの動向 5min
Operations Management Suite Agent for Linux Public Preview 5min
Syslog 5min
Apache httpd 5min
MySQL 5min
Docker 5min