Dell的服务器管理工具 Dell OpenManager Server Administrator
公司的生产服务器一直都在用,很好用的东西,仅对DELL服务器有效.
OpenManage系统管理方案是戴尔公司基于自主研发力量开发的IT系统管理解决方案,通过OpenManage管理系统用户可以方便快速的实现服务器的部署、服务器状态的监控和系统更新等。OpenManage管理系统为用户降低了服务器管理的复杂度,提高工作效率,减少维护和部署的时间,对于IT经验不足的企业来说是个非常好的助手。OpenManage具备标准化的能源监控和警报功能,能够提供各种能源使用信息,确保IT人员能够及时且准确地了解服务器的使用情况,减少总体能耗和成本。
服务器的所有硬件相关信息都可以看到.
以下就是安装和配置的过程:
- #---------------------------------------------------------------
- # DELL srvadmin install and server firmware update.
- #---------------------------------------------------------------
- # Reference Website:
- http://linux.dell.com/repo/hardware/latest/
- 1. Complete this step before any of the steps below.
- [[email protected] ~]# wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
- 2. Installing OpenManage Server Administrator.
- [[email protected] ~]# yum -y install srvadmin-all
- Exit terminal and then re-enter.
- [[email protected] ~]# srvadmin-services.sh start
- [[email protected] ~]# netstat -nat | grep 1311
- 3. Installing firmware-tools to manage BIOS and firmware updates.
- [[email protected] ~]# yum -y install dell_ft_install
- [[email protected] ~]# yum -y install $(bootstrap_firmware)
- 4. Managing BIOS and firmware updates
- # Inventory firmware version levels
- [[email protected] ~]# inventory_firmware
- # Install any applicable updates
- [[email protected] ~]# update_firmware --yes
- 5. Allow iptables access(add one line).
- [[email protected] ~]# vim /etc/sysconfig/iptables
- -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
- -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1311 -j ACCEPT
- [[email protected] ~]# /etc/init.d/iptables restart
- 6. # Addad for Centos 5.5
- [[email protected] ~]# yum -y remove OpenIPMI
- [[email protected] ~]# yum -y install OpenIPMI
- [[email protected] ~]# chkconfig --level 3 dataeng on
- [[email protected] ~]# service dataeng start
- # Dell server admin access URL: https://ip:1311
- 7. Reboot the system.
- [[email protected] ~]# reboot
配合nagios,还能将openmanager server administrator的信息发送给nagios处理,当服务器出现警告时,能以邮件和短信的方式发送通知,非常的方便.
下面是使用nagios的dell openmanager插件来监控dell服务器硬件的配置过程.
首先在被监控的linux服务器上安装 openmanage管理程序.
且安装配置好 nagios客户端程序 (nagios-plugins 和 nrpe).
这个就不介绍了,大家都很熟悉了.
在被监控机上下载openmanage for nagios的插件.
- wget http://folk.uio.no/trondham/software/files/check_openmanage-3.5.7.tar.gz
- tar zxvf check_openmanage-3.5.7.tar.gz
- cd check_openmanage-3.5.7
- [[email protected] ~/check_openmanage-3.5.7]# ls -lhtr
- total 3504
- -rw-r--r-- 1 45150 55150 25K Mar 19 2010 check_openmanage.8
- -rwxr-xr-x 1 45150 55150 1.1K Mar 19 2010 install.sh
- -rwxr-xr-x 1 45150 55150 406B Mar 19 2010 install.bat
- -rw-r--r-- 1 45150 55150 17K Mar 19 2010 check_openmanage.pod
- -rw-r--r-- 1 45150 55150 6.5K Mar 19 2010 check_openmanage.php
- -rwxr-xr-x 1 45150 55150 147K Mar 19 2010 check_openmanage
- -rw-r--r-- 1 45150 55150 2.7K Mar 19 2010 README
- -rw-r--r-- 1 45150 55150 533B Mar 19 2010 INSTALL
- -rw-r--r-- 1 45150 55150 34K Mar 19 2010 COPYING
- -rw-r--r-- 1 45150 55150 19K Mar 19 2010 CHANGES
- -rwxr-xr-x 1 45150 55150 3.1M Mar 19 2010 check_openmanage.exe
- -rw-r--r-- 1 45150 55150 4.4K Mar 19 2010 check_openmanage.spec
解压后就可以使用.
- cp check_openmanage-3.5.7/check_openmanage /usr/local/nagios/libexec/
- cd /usr/local/nagios/libexec/
- chown nagios.nagios check_openmanage
- chmod 775 check_openmanage
check_openmanage有两种方式获得Dell服务器的硬件信息.
1. 通过本地运行获得.
2. 通过snmp的方式获得.
我这里用的是nrpe的插件调用的方式进行监控的.
在被监控机上的配置.
- vim /usr/local/nagios/etc/nrpe.cfg
- # 添加一行.
- command[check_openmanage]=/usr/local/nagios/libexec/check_openmanage
- /etc/init.d/xinetd restart
在nagios监控机上.
- vim /usr/local/nagios/etc/servers/web1.cfg
- # 添加以下内容.
- # Check DEll Server.
- define service{
- use generic-service
- host_name web1
- service_description DELL Server status
- check_command check_nrpe!check_openmanage
- }
这样就可以通过nagios监控到dell服务器的硬件状态了,有故障就会发送警报,很方便.
转载于:https://blog.51cto.com/ritto/729879