check mk 监控 HP服务器
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了check mk 监控 HP服务器相关的知识,希望对你有一定的参考价值。
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服务
以上是关于check mk 监控 HP服务器的主要内容,如果未能解决你的问题,请参考以下文章
icinga2通过check_hpasm监控HP服务器硬件报警