我正在按照指定的here使用Icinga2设置监控Kafka。我正在使用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