来自:网络
Nagiso 客户端要求必须在dell服务器上安装 OMSA(Openmanage Server Administrator)
Nagios客户端安装OMSA (可参考repo/hardware/OMSA_7.4.0/) nagios安装
1、增加dell的yum库 ( 可以访问 [ /repo/hardware]repo/hardware[/url] 查看最新版本 )
wget -q -O - repo/hardware/OMSA_7.4.0/bootstrap.cgi | bash
2、安装srvadmin
yum install srvadmin-all -y
3、启动srvadmin /opt/dell/srvadmin/sbin/srvadmin-services.sh start
Nagios 服务端配置
1、dell官方OMSA监控脚本下载(下载至Nagios 服务器 /usr/local/nagios/libexec下,并赋nagios执行权限)
wget [ /trondham/software/check_openmanage-3.7.11/check_openmanage]trondham/soft ... 11/check_openmanage[/url]
另,由于check_openmanage为perl脚本,故需perl解释器 需安装 perl-Net-SNMP 开源监控软件 yum install perl-Net-SNMP
2、以下是手动执行脚本获取硬件状态
#电压 ./check_openmanage -H 192.168.1.100 --only voltage
VOLTAGE OK - 20 voltage probes checked
#cpu ./check_openmanage -H 192.168.1.100 --only cpu
PROCESSORS OK - 1 processors checked
#风扇转速 ./check_openmanage -H 192.168.1.100 --only fans nagios配置 FANS OK - 12 fan probes checked
#存储 ./check_openmanage -H 192.168.1.100 --only storage
STORAGE OK - 3 physical drives, 1 logical drives
#内存 ./check_openmanage -H 192.168.1.100 --only memory 监控软件 MEMORY OK - 2 memory modules, 32768 MB total memory
#电池 ./check_openmanage -H 192.168.1.100 --only batteries
BATTERIES OK - 1 batteries checked nagios实施
check_openmanage 脚本更多详细用法请参考:
trondham/software/check_openmanage.html
如果以上无报错时,便可配置到Nagios 中了,配置方法网上较多,在这里就不多说了 nagios培训
#卸载openManage Server Administrator yum erase $(rpm -qa | grep srvadmin)
想做Nagios, Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流 QQ群号 :476809427
|