是否可以使用curl从jmx端口查询一些/任何数据?我正在写一个inspec(厨师)测试来检查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的builtin resource。
考虑以下测试jmx的方法:
jmxterm
`并根据需要查询jmx