1

I got the metrics from JMX port by using the Nagios agent through curl command here is the syntax.

curl -s -X POST http://${hostname}:${agentport}/p1/kdc/monitor -d " {\"hostname\": \"${hostname}\", \"port\": \"${jmxport}\", \"metric\": \"${metric}\"}"'

curl -s -X POST http://manikya.devops.com/p1/kdc/monitor -d '{"hostname":"manikya.devops.com", "port":"9999", "metric": "bytes_in_per_second"}'

I want the same thing by Java.

Enamul Hassan
  • 5,266
  • 23
  • 39
  • 56

1 Answers1

0

There are a large number of JMX plug-ins available on the Nagios Exchange that give you what you want, you can find them here: Nagios/JMX plug-ins

Jim Black
  • 1,422
  • 1
  • 13
  • 26