0
我会从Nagios迁移到Icinga2。我会尝试迁移一个在Nagios中工作的自定义命令,但我无法在Icinga中进行翻译。 我会创建一个我自定义的“对象CheckCommand”以在一些主机中使用。Icinga2 check_by_ssh
在Nagios的我有这样的(如果我从壳新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的参数的参数)的多级,我不能写右“对象CheckCommand”和“对象主机”或“应用服务”。
有人可以帮助我吗?
Best reagrds