JMX plugin

Ryan Gravener ryangravener at gmail.com
Thu Mar 6 05:07:29 CET 2008


Sure, I made a google code project:

http://code.google.com/p/jmxquery/source/browse/trunk/src/main/java/jmxquery/JMXQuery.java

And here is the auth code:

if(username!=null) {
                 Map m = new HashMap();
                 m.put(JMXConnector.CREDENTIALS,new String[]
{username,password});
                 connector = JMXConnectorFactory.connect(jmxUrl,m);
         } else {
                 connector = JMXConnectorFactory.connect(jmxUrl);
         }

On 05/03/2008, Chris Lee <clee.hk at gmail.com> wrote:
> Hi Ryan
>
>  You mentioned that you modified check_jmx so that it can take authentication argument. Do you mind showing us the code for doing that?
>
>  Thanks very much,
>
>  - Chris Lee (cleegt)
>
>  -----------------------
>  This thread is located in the archive at this URL:
>  http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=9677
>
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Nagios-users mailing list
>  Nagios-users at lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/nagios-users
>  ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
>  ::: Messages without supporting info will risk being sent to /dev/null
>


-- 
Ryan Gravener
http://ryangravener.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list