Skip to content

Commit

Permalink
Doc improve
Browse files Browse the repository at this point in the history
  • Loading branch information
varas committed Jun 17, 2019
1 parent 0c6886b commit 917699c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ $ ./bin/nrjmx -hostname 127.0.0.1 -port 7199 -username user -password pwd -remot

### Non-Standard JMX Service URI

If your JMX provider uses a non-standard JMX service URI, you can use the flag `-uriPath` to specify the path portion. For example, ForgeRock OpenDJ uses a JMX service URI like `service:jmx:rmi:///jndi/rmi://localhost:1689/org.opends.server.protocols.jmx.client-unknown`
If your JMX provider uses a non-standard JMX service URI path (default path is `jmxrmi`), you can use the flag `-uriPath` to specify the path portion (without `/` prefix).

For example:

- A default URI path could be like: `service:jmx:rmi:///jndi/rmi://localhost:1689/jmxrmi` (path is last path of the URI without the prefix `/`)
- ForgeRock OpenDJ uses a JMX service URI like: `service:jmx:rmi:///jndi/rmi://localhost:1689/org.opends.server.protocols.jmx.client-unknown`

To extract data from this application:
```bash
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/newrelic/nrjmx/JMXFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public JMXFetcher(String hostname, int port, String uriPath, String username, St
/**
* Sends to JMX the queries from the InputStream and sends the JMX results to an OutputStream. Each query is
* read from a single line and the respective result is sent as a line to the outputstream.
* <p>
*
* If the query is wrong, it just ignores it and does not sends any data to the output stream.
*
* @param inputStream Source of the JMX queries.
Expand Down

0 comments on commit 917699c

Please sign in to comment.