(Nagios)-check_hpasm[HP]

Posted 请点..头像

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了(Nagios)-check_hpasm[HP]相关的知识,希望对你有一定的参考价值。

Nagios Check_hp HP
2014年11月18日
下午 08:49
 
 
  [[email protected] ~]# tar zxvf check_hp_bladechassis-1.0.1.tar.gz
  [[email protected] check_hp_bladechassis-1.0.1]# ./check_hp_bladechassis -H xxx.xxx.xxx.xxx
  SNMP ERROR: Can‘t determine model name
  [[email protected] check_hp_bladechassis-1.0.1]# snmpwalk -Os -c public -v 1 xxx.xxx.xxx
  [[email protected] libexec]# ./check_hpasm -H xxx.xxx.xxx -C public
  CRITICAL - snmpwalk returns no product name (cpqsinfo-mib), wrong device
windows端安装ilo驱动 (必须),先安装SNMPAgent(cp024529_log_th.exe  cp024617_ilo_th.exe  cp022559_hp_agents_w2008.exe)
  [[email protected] libexec]# ./check_hpasm -H xxx.xxx.xxx
  OK - System: ‘proliant dl380p gen8‘, S/N: ‘*******‘, ROM: ‘P70 03/01/2013‘, hardware working fine, da: 2 logical drives, 16 physical drives
Redhat系统下安装agent
  [[email protected] ~]# rpm -ivh hpacucli-9.40-12.0.x86_64.rpm(不必须)
  rpm -ivh hp-health-9.50-1631.33.rhel5.x86_64.rpm(必须)
  rpm -ivh hp-snmp-agents-9.50-2564.34.rhel5.x86_64.rpm(必须)
  /etc/init.d/hp-snmp-agents start
  需要配置snmp
  /sbin/hpsnmpconfig
  /etc/init.d/hp-health restart
  /etc/init.d/hp-asrd restart
  /etc/init.d/hp-snmp-agents restart
其他Server访问不了
  [[email protected] libexec]# ./check_hpasm -H xxx.xxx.xxx
  CRITICAL - snmpwalk returns no product name (cpqsinfo-mib), wrong device
但本地能检查出数据,所以是snmp配置有误。
  [[email protected] plugins-scripts]# ./check_hpasm
  OK - System: ‘proliant dl380p gen8‘, S/N: ‘*******‘, ROM: ‘P70 03/01/2013‘, hardware working fine
Linux下配置snmp(可从其他机台copy过来)
  [[email protected] plugins-scripts]# vim /etc/snmp/snmpd.conf
  #add (网上参考) <http://javatechnology.iteye.com/blog/768001>
  #       sec.name  source          community
  com2sec notConfigUser  [監控主機]      public
 
  .1表示所有设备信息
  view    systemview    included   .1
  修改process checks(去掉注释)
  # proc mountd
  # proc ntalkd 4
  # proc sendmail 10 1
  修改Executables/scripts配置(去掉注释)
  #exec echotest /bin/echo hello world
  修改disk checks配置(去掉注释)
  #disk / 10000
  修改load average checks配置(去掉注释)
  #load 12 14 14
  [[email protected] plugins-scripts]# service snmpd restart
  其他Server获取信息ok
  [[email protected] libexec]# ./check_hpasm -H xxx.xxx.xxx
  OK - System: ‘proliant dl380p gen8‘, S/N: ‘*******‘, ROM: ‘P70 03/01/2013‘, hardware working fine, da: 1 logical drives, 14 physical drives
 
  注意:proliant dl380 gen9
  rpm -ivh hp-health-10.10-1710.30.rhel6.x86_64.rpm
  rpm -ihv hp-snmp-agents-10.10-2732.25.rhel6.x86_64.rpm
 
cp029394_ilo_Interface.exe
cp029429_ilo_Management.exe 
cp030048_Agent.exe
 
 
 
 
 
 
 
 
 
 

以上是关于(Nagios)-check_hpasm[HP]的主要内容,如果未能解决你的问题,请参考以下文章

通过check_ilo2_health.pl插件监控HP服务器健康状态

nagios服务器搭建与使用

nagios安装部署

nagios安装(nrpe安装)

实战Nagios网络监控——Nagios 微信报警

nagios配置邮件告警