Like any good sysadmin, you want to know if anything is happening to your Dell hardware at any given moment. Here is what I did to get Dell Openmanage installed in Citrix XenServer 5.6, 6.0, and 6.1. Once openmanage is installed and working, you can then have Nagios ssh into the Xenserver host and run a check (this maybe covered in another post).
- I now send you on a quest. Head to the dell website and start searching for the software. Get something named “Dell OpenManage Server Administrator Managed Node (Distribution Specific)” or also called “OpenManage Supplemental Pack” or “OpenManage Server Administrator Managed Node” or “OM-SrvAdmin-Dell-Web-LX-7.1.0-5304.XenServer60_A00.iso” or this link?
- Transfer the iso to your xenserver host via scp.
mount –o loop <openmanange-supplemental-pack-filename>.iso /mnt
cd /mnt
./install.sh
/etc/init.d/dataeng start
- Logout and back in and this command should work:
omreport storage pdisk controller=0
/usr/sbin/useradd nagios
passwd nagios
cd /home/nagios
mkdir .ssh
- Now we need to generate or install a ssh key for Nagios to login without a password. Here is how you would generate one:
ssh-keygen -t dsa -b 1024 -f .ssh/id_dsa
cat .ssh/id_dsa.pub >> .ssh/authorized_keys chown -R nagios:nagios .ssh
chmod 750 .ssh
chmod 640 .ssh/*
mkdir bin
chown -R nagios:nagios bin
chmod 750 bin
- Get the nagios check script, this will be excuted by Nagios when it logins via ssh
wget http://folk.uio.no/trondham/software/files/check_openmanage-3.7.3.tar.gz
tar -xzvf check_openmanage-3.7.3.tar.gz
cp check_openmanage-3.7.3/check_openmanage bin/
- If you are running Xenserver 6 or higher, you will need to run this command
chmod o+rx /
- Log into your Nagios server
- Copy ssh id_dsa/.pub to nagios server, in nagios’s ~/.ssh
- Test logging in without a password
- Setup nagios checks (I plan posting this someone day)
Helpful links: