1. 程式人生 > >check mk 監控 HP服務器

check mk 監控 HP服務器

fig lib down unity load oca ssa strong conf

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服務器