Chef infra 我可以使用curl查询jmx端口以检查jmx是否正常工作吗?

Chef infra 我可以使用curl查询jmx端口以检查jmx是否正常工作吗?,chef-infra,jmx,inspec,Chef Infra,Jmx,Inspec,是否可以使用curl从jmx端口查询一些/任何数据?我正在编写inspec(chef)测试,以检查jmx是否工作正常 # curl https://localhost:9114 curl: (35) Encountered end of file # curl -s -w "%{http_code}\n" https://localhost:9114 -o /dev/null 000 简单地执行curl不会返回任何有用的结果 感谢阅读。据我所知,您想检查jmx是否正常工作;这和厨师一点关系都

是否可以使用curl从jmx端口查询一些/任何数据?我正在编写inspec(chef)测试,以检查jmx是否工作正常

# curl https://localhost:9114
curl: (35) Encountered end of file

# curl -s -w "%{http_code}\n" https://localhost:9114 -o /dev/null
000
简单地执行curl不会返回任何有用的结果


感谢阅读。

据我所知,您想检查jmx是否正常工作;这和厨师一点关系都没有。在撰写本文时,inspec没有测试jmx的工具

考虑以下测试jmx的方法:

  • 使用(而不是jconsole或任何gui)客户机连接jmx。例如,请参见`并根据需要查询jmx
  • 取样并分析。例如,它是否通过了某个阈值

  • 我的docker容器中没有jmxterm,但是curl是可用的。