1、创建repo文件vi /etc/yum.repos.d/hp-mngmt.repo
[HP-spp]
name=HP Service Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/spp/RHEL/$releasever/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ssp
[HP-mcp]
name=HP Management Component Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/$releasever/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp
2、安装
必要:
yum install hp-health hpssacli hp-snmp-agents hpssa hpssacli hp-smh-templates hpsmh hp-snmp-agents
全:
yum install hp-health hpssacli hp-snmp-agents hpssa hpssacli hp-smh-templates hpsmh hponcfgyum hp-snmp-agents
3、运行:/sbin/hpsnmpconfig
snmpd配置:vim /etc/snmp/snmpd.conf
添加:
#Following entries were added by HPE Insight Management Agents at
#Tue Dec 20 19:48:05 CST 2016
dlmod cmaX /usr/lib64/libcmaX64.so
rwcommunity readonly 10.0.0.1
rocommunity readonly 10.0.0.1
trapcommunity readonly
syscontact Root <[email protected]> (configure /etc/snmp/snmp.local.conf)
#---------------------- END --------------------
4、启动服务:
service hp-snmp-agents restart
service snmpd restart
service hp-health start
service snmpd start
service hpsmhd start
添加到启动项:
chkconfig hp-health on
chkconfig snmpd on
chkconfig hpsmhd on
注意:如果只是snmp监控的话,可以不开启hpsmhd服务
原文地址:http://blog.51cto.com/backkom/2070163
时间: 2024-10-05 05:04:51