码迷,mamicode.com
首页 > 其他好文 > 详细

check mk 监控 HP服务器

时间:2018-02-08 14:17:32      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:oca   eve   nload   注意   nmp   following   tac   ble   lin   

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 <root@localhost> (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服务器

标签:oca   eve   nload   注意   nmp   following   tac   ble   lin   

原文地址:http://blog.51cto.com/backkom/2070163

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!