码迷,mamicode.com
首页 > 其他好文 > 详细

通过check_ilo2_health.pl插件监控HP服务器健康状态

时间:2019-01-15 11:59:08      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:exchange   arguments   特殊   nts   xxxxx   health   assign   tar   cto   

通过check_ilo2_health.pl插件监控HP服务器健康状态:

下载地址:

https://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/HP-(Compaq)/check_ilo2_health/details

使用示例:

/usr/lib64/nagios/plugins/check_ilo2_health.pl --ilo3 -u aa -p‘xxxxxx‘ -H 10.0.0.3

注:
1、密码带特殊符号需要用单引号
2、ilo3以上都要加--ilo3
3、开防火墙只需开443端口即可

vi /etc/icinga2/conf.d/templates.conf

object CheckCommand "HPilo" {
import "plugin-check-command"
command = [ PluginDir + "/check_ilo2_health.pl --ilo3" ]
arguments = {
"-H" = "$address$"
"-u" = "$user$"
"-p" = "$pass$"
"-t" = "$t$"
}
}

:wq

vi /etc/icinga2/conf.d/services.conf

apply Service "HPilo" {
import "generic-service"
check_command = "HPilo"
vars.user="aa"
vars.pass="xxxxxx"
vars.t="30"
assign where host.address == "10.0.0.3"
}

:wq

service icinga2 restart

通过check_ilo2_health.pl插件监控HP服务器健康状态

标签:exchange   arguments   特殊   nts   xxxxx   health   assign   tar   cto   

原文地址:http://blog.51cto.com/yangzhiming/2342722

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!