標籤:1.3 com community error: device init.d 安裝 mail 其他
Nagios Check_hp HP2014年11月18日下午 08:49 https://IP:2381 [[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驅動 (必須),先安裝SNMP再Agent(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 drivesRedhat系統下安裝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 fineLinux下配置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 http://www.hpiss.com/7740.html
(Nagios)-check_hpasm[HP]