Manually installing HP SIM
Verify that SNMP & hp-snmp-agent is installed by executing the following command
[root@client.local ~]# rpm -qa | grep snmp
[root@client.local ~]# rpm -qa | grep hp-snmp
If above packages are not installed, please install it before proceeding the HP SIM Installation
Step 1: HP SNMP Agent
Previously, this was known as hpasm, but now HP renamed it to
• hp-health
• hp-snmp-agents
Step 2: HP Yum Repositories
There is a dedicated Redhat Repository by HP, which is configured like the following.
[root@client.local ~]# vim /etc/yum.repos.d/hp.repo
[HP-Proliant]
name=HP Proliant Red Hat Enterprise Linux $releasever - $basearch
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
baseurl=http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/$releasever/$basearch/current/
#http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/5/x86_64/current/
enabled=1
gpgcheck=1
gpgkey=http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/GPG-KEY-ProLiantSupportPack
Step 3: Installation
yum remove hpasm is required, as it is deprecated, and will cause conflicts!
[root@client.local ~]# yum install hp-snmp-agents hp-health hpacucli
Step 4: SNMP Configuration
Do not forget to stop the SNMP services before making the changes.
Save the old configuration file and make sure the new configuration file have the correct permissions
[root@client.local ~]# cd /etc/snmp/
[root@client.local ~]# cp snmpd.conf snmpd.conf.old
[root@client.local ~]# vi snmpd.conf
Add the following in first line of snmpd.conf file
rocommunity TEST-Server
trapsink 192.168.1.5
Configure Linux to start SNMP services on each reboot with the chkconfig
[root@client.local ~]# chkconfig snmpd on
[root@client.local ~]# /etc/init.d/snmpd start
Test whether SNMP can read the system and interface MIBs using the snmpwalk command.
[root@client.local ~]# snmpwalk -v 1 TEST-Server -c localhost system
[root@client.local ~]# snmpwalk -v 1 TEST-Server -c localhost interface
Test the snmp is working from any other linux machine.
[root@server.local ~]# snmpwalk -v 1 TEST-Server -c client.local system
[root@server.local ~]# snmpwalk -v 1 TEST-Server -c client.local interface
[root@server.local ~]# snmpwalk -v 1 TEST-Server -c client.local .1.3.6.1.4.1.232
Step 5: Nagios Configuration
1. Download and install check_hpasm plugin
[root@client.local ~]# wget http://labs.consol.de/download/shinken-nagios-plugins/check_hpasm-4.6.3.2.tar.gz
[root@client.local ~]# tar zxvf check_hpasm-4.6.3.2.tar.gz
[root@client.local ~]# cd check_hpasm-4.6.3.2
[root@client.local ~]# ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-perl=/usr/bin/perl --with-noinst-level=ok --enable-perfdata --enable-hpacucli
[root@client.local ~]# make
[root@client.local ~]# make install
2. Check whether check_hpasm plugin working
[root@client.local libexec]# ./check_hpasm
OK - System: 'proliant dl360 g5', S/N: 'AAAAAAAAAA', ROM: 'P58 10/11/2009', hardware working fine
3. Sudo configuration changes
[root@client.local ~]# visudo
Add the following lines in EOF
nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli
nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/check_hpasm
Defaults:nagios !requiretty
4. Now execute step 2 as nagios user, if everything is working fine
[nagios@client.local libexec]$ /usr/local/nagios/libexec/check_hpasm
OK - System: 'proliant dl360 g5', S/N: 'AAAAAAAAAA', ROM: 'P58 10/11/2009', hardware working fine