RHEL5
Download hp-health.XXX.rpm from here
Download hp-snmp-agents from here:
RHEL4
These instructions assume you already have SNMP configured for version 3 on RHEL4 HP Proliant DL 360 server and another server with Nagios installed and working.
Download and Install HP RPMs
Necessary RPMs are hp-health and hp-snmp-agents.
You can go to the below link to download hp-health for RHEL4 x86 directly: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=15351&prodSeriesId=452749&prodNameId=3288142&swEnvOID=2025&swLang=8&mode=2&taskId=135&swItem=MTX-11651fcb8d1b4b3fb224959c4e
You can go to the below link to download hp-snmp-agents for RHEL4 x86 directly:
First install the hp-health RPM: rpm -ivh hp-health-XXX.rpm
Start the service: service hp-health start
Install the hp-snmp-agents RPM: rpm -ivh hp-snmp-agents.XXX.rpm
Start the service: service hp-snmp-agents start
Edit SNMP file to add the HP MIB’s to net-snmp: dlmod cmaX /usr/lib/libcmaX.so (for 64-bit) dlmod cmaX /usr/lib64/libcmaX64.so
Configure snmp v3 user: net-snmp-config –create-snmpv3-user -ro -a AuthPasswd -x PrivPasswd -X AES -A SHA snmpuser
Restart SNMP service: service net-snmp restart
Verify you get a response from snmpwalk from your Nagios monitoring server:
snmpwalk -l authPriv -u “snmpuser” -X “PrivPassword” -A “AuthPassword” -a SHA -x AES -v 3 “HOST IP” 1.3.6.1.4.1.232.6.2.6.8.1.3 (HP specific OID)
Add Nagios Service Check
Now the issue is to edit a Nagios check to receive SNMP version 3 parameters … I downloaded the check_hpasm from Nagios exchange. Installed it on my Nagios server. From the command line made sure it worked by calling check_hpasm with the following options: ./check_hpasm -H HOSTNAME/IP -P 3 –username snmpuser –authpassword snmppassword
This should work with the correct username and password.
Add this to your commands.cfg file
# ‘check_hpasm_v3’ command definitiondefine command { command_name check_hpasm_v3 command_line $USER1$/check_hpasm -H $HOSTADDRESS$ -P 3 –username $ARG1$ –authpassword $ARG2$ }
Add this to a service check .cfg file:
define service{
use linux-service
host_name g05
service_description HPASM SNMP v3 Check
check_command check_hpasm_v3!snmpuser!AuthPasswd
normal_check_interval 5
retry_check_interval 1
}
I think you need to have the RPMs from HP installed first on the system you want to monitor. The check_hp is looking for those SNMP values that would be installed by the hp-health.XXX.rpm and hp-snmp-agents from the top of the post. Once those are installed on the system you want to monitor, you should get a response back for the SNMP request made by check_hp.
I hope this helps!