监控端,被控端NSClient++的安装请百度
将check_openmanage放到NSclient++安装目录下的plugins目录,
nsc.ini文件中可以指定监控如下
[NRPE Handlers] command[check_omsa]=C:\Program Files\NSClient++\plugins\check_openmanage.exe -b ctrl_fw\/ctrl_driver=all -p command[check_openmanage]=C:\Program Files\NSClient++\plugins\check_openmanage.exe -b ctrl_fw\/ctrl_driver=all -p --no-storage command[check_temp]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only temp command[check_fans]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only fans command[check_power]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only power command[check_memory]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only memory command[check_cpu]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only cpu command[check_voltage]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only voltage command[check_batteries]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only batteries command[check_amperage]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only amperage command[check_intrusion]=C:\Program Files\NSClient++\plugins\check_openmanage.exe --only intrusion check_CU=scripts\check_tcp -H 220.199.6.27 -p 8801 -w 200 -c 300 check_CM=scripts\check_tcp -H 221.130.33.92 -p 7890 -w 200 -c 300 check_BW=scripts\check_tcp -H 211.103.155.244 -p 8080 -w 200 -c 300
使用check_openmanage监控win主机的一些常见写法
原文地址:http://itanony.blog.51cto.com/4791506/1717027