Centos 6.X服务器安装Dell OMSA监控

王哥哥 Linux 4,965 次浏览 没有评论

安装OMSA

我们使用下面的命令自动安装OMSA,会自动下载需要的关联包

wget -q -O – http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

yum remove Lib_Utils -y

yum install -y srvadmin-all;

安装完成

安装SNMP服务

由于Dell OMSA需要使用snmp进行监控,所以我们需要在安装下snmp服务。

yum install -y net-snmp
yum install -y net-snmp-devel
yum install -y net-snmp-libs
yum install -y net-snmp-perl
yum install -y net-snmp-utils

修改SNMP配置文件


备份默认SNMP配置文件

# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak

删除默认配置文件

# rm /etc/snmp/snmpd.conf

rm: remove regular file `/etc/snmp/snmpd.conf’? y

重新新建配置文件

# vi /etc/snmp/snmpd.conf

请见以下内容黏贴进入

com2sec notConfigUser default public

 

####

# Second, map the security name into a group name:

 

# groupName securityModel securityName

group notConfigGroup v1 notConfigUser

group notConfigGroup v2c notConfigUser

 

####

# Third, create a view for us to let the group have rights to:

 

# Make at least snmpwalk -v 1 localhost -c public system fast again.

# name incl/excl subtree mask(optional)

view systemview included .1.3.6.1.2.1.1

view systemview included .1.3.6.1.2.1.25.1.1

view all     included .1

####

# Finally, grant the group read-only access to the systemview view.

 

# group context sec.model sec.level prefix read write notif

access notConfigGroup “” any noauth exact all none none

 

# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.

 

 

 

syslocation Unknown (edit /etc/snmp/snmpd.conf)

syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)

pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

 

smuxpeer .1.3.6.1.4.1.674.10892.1

 

Trapsink 172.21.30.10(根据你的需要修改为你需要的ip public

 

rocommunity public 172.21.30.10(根据你的需要修改为你需要的ip

重启SNMP服务

service snmpd start

将SNMP服务设置为开机启动

chkconfig snmpd on

启动OMSA服务

sh /opt/dell/srvadmin/sbin/srvadmin-services.sh start ;sh /opt/dell/srvadmin/sbin/srvadmin-services.sh enable

安装完成后重启服务器,然后访问服务器Https://ip:1311端口能打开网页代表安装完成

发表回复

Go