本文共 1307 字,大约阅读时间需要 4 分钟。
1、创建repo文件
vi /etc/yum.repos.d/hp-mngmt.repo
[HP-spp]name=HP Service Pack for ProLiantbaseurl=http://downloads.linux.hpe.com/SDR/repo/spp/RHEL/$releasever/x86_64/current/enabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ssp[HP-mcp]name=HP Management Component Pack for ProLiantbaseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/$releasever/x86_64/current/enabled=1gpgcheck=0gpgkey=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 2016dlmod cmaX /usr/lib64/libcmaX64.sorwcommunity readonly 10.0.0.1rocommunity readonly 10.0.0.1trapcommunity readonlysyscontact Root(configure /etc/snmp/snmp.local.conf)#---------------------- END --------------------
4、启动服务:
service hp-snmp-agents restartservice snmpd restartservice hp-health startservice snmpd startservice hpsmhd start
添加到启动项:
chkconfig hp-health onchkconfig snmpd on chkconfig hpsmhd on
注意:如果只是snmp监控的话,可以不开启hpsmhd服务
转载于:https://blog.51cto.com/backkom/2070163