【发布时间】:2017-03-27 13:39:58
【问题描述】:
我会从 Nagios 迁移到 Icinga2。我会尝试迁移一个在 Nagios 中工作的自定义命令,但我无法在 Icinga 中翻译。 我会创建一个我的自定义“对象 CheckCommand”以在某些主机中使用。
在 nagios 我有这个(如果我从 shell 在新的 Icinga2 服务器上执行,仍然可以工作)
./check_by_ssh -H myHostName -t 15 -l myLoginUsername -C "/opt/jboss/scripts/check_file_size.sh --maxwarn 80000000 --maxcrit 150000000 /opt/jboss/domain/servers/*/log/* /opt/jboss/domain/log/*" -E
由于多级参数(check_by_ssh的参数和check_file_size_ssh的参数)我不能写正确的“object CheckCommand”和“object Host”或“Apply Service”。
有人可以帮我吗?
最佳回复
【问题讨论】: