我正在用Icinga2设置监控Kafka作为指定的here。我正在使用Centos7,并遵循下面提到的步骤
步骤1:通过发出以下命令下载Check_JMX插件
wget -c http://snippets.syabru.ch/nagios-jmx-plugin/download/nagios-jmx-plugin.zip步骤2:解压下载的归档文件,并将check_jmx和check_jmx.jar复制到/usr/lib64/nagios/plugins/文件夹
步骤3:通过发出以下命令验证安装
/usr/lib64/nagios/plugins/check_jmx –help并得到以下错误:
Error:
-bash: ./check_jmx: /bin/sh^M: bad interpreter: No such file or directory发布于 2017-08-23 21:15:55
通过安装和使用dos2unix check_jmx解决了此问题
https://stackoverflow.com/questions/45836925
复制相似问题