IT IS TIME


不管是企业机房还是IDC数据中心,由于稳定性、安全性等各方面因素使用linux操作系统不在少数,而Microsoft的产品SCOM2012,利用相关的MP包,可以简单实现对其监控。

群里的 “小刀”发帖,问题为在安装时候出现了配置问题无法完成监控

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_SCOM 2012

从错误提示来看,是连接问题,推荐几种方法后,故障依旧,于是自己在VMware workstation上搭建测试环境,解决问题

环境:

A windows server 2008 R2 (配置AD ,DNS,IIS ,.net framework 4.0 ,Report viewer 2008 )

B 安装SQL server 2008 R2以上版本, 其中SQL 排序规则需设置为: SQL_Latin1_General_CP1_CI_AS,SQL Full Text Search 被要求安装且服务启动。

C 根据安装文档安装好SCOM 2012

D 本人的SCOM 是Beta版本,自带的liunx MP包主要支持 redhat suse ,,故安装redhat linux 6.0( 之前安装了Centos 5.6,到添加主机时候提示不支持,centos的MP包也没有搜索到,浪费了不少时间,特别是T410+workstation的环境)

 

有了 ABCD 四个步骤,注意下细节,下面我们就开始详细配置。

1 安装windows server 2008 R2 ,.net framework 4.0,Report viewer 2008 ,配置AD,DNS ,IIS

此处域名virtualbox.local,IP 192.168.1.60, 安装SQL 注意一下地方

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_system center 2012_02  Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_03

2 安装SCOM 2012 beta

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_监控_04

3  安装时会检查条件是否满足,如出现WinRM service 没有运行的错误,Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_监控_05

4 可以开启本机远程访问。

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_监控_06

5 安装完成后,新建redhat linux 6.0系统的虚机,作为管理对象

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_winRM_07

6 用ifconfig 配置同网段IP(192.168.1.61),用hostname配置主机名,用/etc/init.d/sshd start 开启SSH服务,用service iptables stop关闭防火墙,确保linux主机ping通SCOM 服务器。

7 域控制器上添加linux主机的DNS解析记录,本人添加了正向及反向

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_SCOM 2012_08

8 前期工作完成,开始配置,首先进入Administration(管理区),进入run as configuration  右键UNIX/Linux account, create run as account Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_09

9 填写显示名称及备注

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_system center 2012_10

10 根据实际情况选择object:

 Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_11

11 完成后,在该工作区Run as configration ,右键选择Import Management packs ,本人选择了Microsoft Linux Library.MP&Mircrosoft Linux RHEL 6.MP.

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_12

12 接下来在该子项,右键Discovery Wizard,选择UNIX/Linux computers

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_system center 2012_13

13 如在添加过程中出现错误,根据提示操作,如出现以下的问题,关闭linux防火墙

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_14

11  如没有出现错误,会提示成功添加

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_15 Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_winRM_16

12 根据服务器的响应速度,state可能出现no monitor,请等一段时间,如长时间未改变,请手动推送scom agent,正常状态为Healthy,监控完成

Microsoft System Center 2012(七)-SCOM 2012监控redhat linux 6.0_linux_17

 备注: 前期准备环境工作需要非常仔细,否则就和我一样,浪费不少时间装SQL ,装linux上,排错反而花的时间较少。