zabbix企业应用之windows系统安装omsa硬件监控
具体请参考 作者:dl528888http://dl528888.blog.51cto.com/2382721/1421335
大致
1.安装OMSA http://zh.community.dell.com/techcenter/systems-management/w/wiki/559.omsawindows
2.客户端配置文件添加基本参数
UserParameter=hardware_battery,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_battery UserParameter=hardware_cpu_model,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_cpu_model UserParameter=hardware_fan_health,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_fan_health UserParameter=hardware_memory_health,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_memory_health UserParameter=hardware_nic_health,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_nic_health UserParameter=hardware_cpu,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_cpu UserParameter=hardware_power_health,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_power_health UserParameter=hardware_temp,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_temp UserParameter=hardware_physics_health,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_physics_health UserParameter=hardware_virtual_health,c:\zabbix\bin\zabbix_monitor_hardware.bat hardware_virtual_health3.在c:\zabbix\bin\里添加一个脚本,名字为zabbix_monitor_hardware.bat
@echo off::goto programgoto %1::check hardware_battery:hardware_batteryfor /f "tokens=2 delims=:" %%b in ('omreport chassis batteries^|find /i "Health"') do set hardware_battery=%%bSet hardware_battery=%hardware_battery: =%if %hardware_battery% EQU Ok (set hardware_battery=1) else set hardware_battery=0echo %hardware_battery%exit::check hardware_cpu_model:hardware_cpu_modelfor /f "tokens=2 delims=:" %%b in ('omreport chassis biossetup^|find /i "C State"') do set hardware_cpu_crontol=%%bSet hardware_cpu_crontol=%hardware_cpu_crontol: =%if %hardware_cpu_crontol% EQU Enabled (set hardware_cpu_crontol=1) else set hardware_cpu_crontol=0for /f "tokens=2 delims=:" %%b in ('omreport chassis biossetup^|findstr /i "C1[-|E]"') do set hardware_cpu_c1=%%bSet hardware_cpu_c1=%hardware_cpu_c1: =%if %hardware_cpu_c1% EQU Enabled (set hardware_cpu_c1=1) else set hardware_cpu_c1=0if %hardware_cpu_crontol% == 1 if %hardware_cpu_c1% == 1 (set hardware_cpu_model=1) else set hardware_cpu_model=0echo %hardware_cpu_model%exit::check hardware_fan_health:hardware_fan_healthfor /f %%b in ('omreport chassis fans^|find /i /C "Index"') do set hardware_fan_number=%%bfor /f %%b in ('omreport chassis fans^|find /i /C "Ok"') do set hardware_fan=%%bif %hardware_fan_number% == %hardware_fan% (set hardware_fan_health=1) else set hardware_fan_health=0echo %hardware_fan_health%exit::check hardware_memory_health:hardware_memory_healthfor /f "tokens=2 delims=:" %%b in ('omreport chassis memory^|find /i "Health"') do set hardware_memory=%%bSet hardware_memory=%hardware_memory: =%if %hardware_memory% EQU Ok (set hardware_memory_health=1) else set hardware_memory_health=0echo %hardware_memory_health%exit::check hardware_nic_health:hardware_nic_healthfor /f %%b in ('omreport chassis nics^|find /i /C "Interface Name"') do set hardware_nic_number=%%bfor /f %%b in ('omreport chassis nics^|find /i /C "Connection Status"') do set hardware_nic=%%bif %hardware_nic_number% == %hardware_nic% (set hardware_nic_health=1) else set hardware_nic_health=0echo %hardware_nic_health%exit::check hardware_cpu:hardware_cpufor /f "tokens=2 delims=:" %%b in ('omreport chassis processors^|find /i "Health"') do set hardware_cpu=%%bSet hardware_cpu=%hardware_cpu: =%if %hardware_cpu% EQU Ok (set hardware_cpu=1) else set hardware_cpu=0echo %hardware_cpu%exit::check hardware_power_health:hardware_power_healthfor /f %%b in ('omreport chassis pwrsupplies^|find /i /C "Index"') do set hardware_power_number=%%bfor /f %%b in ('omreport chassis pwrsupplies^|find /i /C "Ok"') do set hardware_power=%%bif %hardware_power_number% == %hardware_power% (set hardware_power_health=1) else set hardware_power_health=0echo %hardware_power_health%exit::check hardware_temp:hardware_tempfor /f "tokens=2 delims=:" %%b in ('omreport chassis temps^|findstr /i "Status"') do set hardware_temp=%%bSet hardware_temp=%hardware_temp: =%if %hardware_temp% EQU Ok (set hardware_temp=1) else set hardware_temp=0echo %hardware_temp%exit::check hardware_physics_health:hardware_physics_healthfor /F %%b in ('omreport storage pdisk "controller=0"^|findstr /i "^State"^|find /i /C "State"') do set hardware_physics_disk_number=%%bfor /F %%b in ('omreport storage pdisk "controller=0"^|find /i /C "Online"') do set hardware_physics_disk=%%bif %hardware_physics_disk_number% == %hardware_physics_disk% (set hardware_physics_health=1) else set hardware_physics_health=0echo %hardware_physics_health%exit::check hardware_virtual_health:hardware_virtual_healthfor /F %%b in ('omreport storage vdisk "controller=0"^|findstr /i "^State"^|find /i /C "State"') do set hardware_virtual_disk_number=%%bfor /F %%b in ('omreport storage vdisk "controller=0"^|find /i /C "Ready"') do set hardware_virtual_disk=%%bif %hardware_virtual_disk_number% == %hardware_virtual_disk% (set hardware_virtual_health=1) else set hardware_virtual_health=0echo %hardware_virtual_health%exit4.重新启动Agentd
5.添加zabbix模板
6.将模板关联至需监控主机
zabbix企业应用之windows系统安装omsa硬件监控的更多相关文章
- zabbix企业应用:通过SNMP和iDRAC监控DELL服务器硬件
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://qicheng0211.blog.51cto.com/3958621/174998 ...
- Zabbix监控工具介绍及软件监控、硬件监控及报警练习
zabbix介绍 zabbix([`zæbiks])是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供 ...
- Zabbix agent on Microsoft Windows
1.在Windows上创建目录: C:\Windows\zabbix\ 2.下载安装包并解压到新建的目录 3.下载地址:http://www.zabbix.com/downloads/3.0.0/za ...
- 【硬件】DELLserver硬件监控及DELL系统管理工具OMSA介绍
1.1.1. DELLserver硬件监控及DELL系统管理工具OMSA介绍 本文介绍採用使用Nagios和OMSA监控DELLserver的硬件健康状态,Nagios监控的方式是NRPE模式,须要配 ...
- 【硬件】DELLserver硬件监控和DELL系统管理工具OMSA介绍
1.1.1. DELLserver硬件监控和DELL系统管理工具OMSA介绍 本文介绍了利用使用Nagios和OMSA显示器DELLserver硬件健康状况,Nagios监控的方式是NRPE模式,须要 ...
- windows 系统安装git的方法
windows 系统安装git的方法 msysgit是Windows版的Git,从https://git-for-windows.github.io下载 安装默认步骤,一步步安装即可 安装完成后,在开 ...
- TensorFlow学习笔记(一)--windows系统安装配置
1.关于Tensorflow 国际惯例,先来个总体的简要介绍,摘自一个很强大的TensorFlow中文学习网站(http://www.tensorfly.cn/)的简介 TensorFlow™ 是一个 ...
- 64位windows系统安装javaee6.0不成功解决方案
64位windows系统安装javaee6.0不成功解决方案 (2013-01-19 14:59:51) 转载▼ 标签: 杂谈 could not find the required versio ...
- zabbix企业微信告警配置教程
前言: zabbix企业微信告警只需要配置一次就可以使用很久了,但是发现再次配置时,总会有遗忘,很麻烦又要去重新熟悉,所以,现在记录一份详细的配置过程,方便日后再次配置. 1.zabbix_serve ...
随机推荐
- jquery ajax 回调函数
function test(callback){ $.ajax({ url:'/mall/credit', type: 'get', dataType:'json', processData: fal ...
- string operation in powershell
https://blogs.technet.microsoft.com/heyscriptingguy/2014/07/15/keep-your-hands-clean-use-powershell- ...
- Remove '@override' annotation解决办法
最近刚刚配置了新机器,将原来的代码放在eclipse上执行,总会出现Remove '@override' annotation,如果要一个个手动删除相当麻烦,最后在网上找了一下原因原来是编译器版本的问 ...
- 字符串输出输入函数,const修饰符,内存分区,动态内存管理,指针和函数,结构体
1.字符串输出输入函数 读入字符串的方法: 1) scanf 特点:不能接收空格 2) gets 特点:可以接受含有空格的字符串 ,不安全 3) fgets(); 特点:可以帮我们自动根据数组的长度截 ...
- I.MX6 bq27441 GPOUT interrupt
/******************************************************************** * I.MX6 bq27441 GPOUT interrup ...
- 并不对劲的bzoj5340:loj2552:uoj399:p4564: [Ctsc2018]假面
题目大意 有\(n\)(\(n\leq200\))个非负整数\(m_1,m_2,...,m_n\)(\(\forall i\in[1,n],m_i\leq100\)),有\(q\)(\(q\leq2* ...
- 并不对劲的LCT
LCT,是连猫树(link-cat-tree)的缩写.它是树链剖分和splay的结合版本. 由于有很多关于LCT的文章以及这并不是对劲的文章,并不对劲的人并不打算讲得太详细. 推荐:详细的LCT-&g ...
- JSOI2010 联通数
传送门 这道题的题目描述看起来很奇怪.实际上的意思是要求在这个有向图之内能到达的点对有多少,解释一下题里的图片就是(1,1),(1,2),(1,3),(1,4),(1,5),(2,2),(2,3),( ...
- 第十八周 Leetcode 72. Edit Distance(HARD) O(N^2)DP
Leetcode72 看起来比较棘手的一道题(列DP方程还是要大胆猜想..) DP方程该怎么列呢? dp[i][j]表示字符串a[0....i-1]转化为b[0....j-1]的最少距离 转移方程分三 ...
- Swift4 基本数据类型(范围型, Stride型, 数组, 字符串, 哈希表)
创建: 2018/02/28 完成: 2018/03/04 更新: 2018/05/03 给主要标题加上英语, 方便页内搜索 [任务表]TODO 范围型(Range)与Stride型 与范围运算符相 ...