Hi,
I've sucessfully installed Nagwin and it looks great, but i require to add a jmx checks. Is there a way to do so. I've tired to add the "jmxeval" plugin, but it was a failure, I get the below error whenever i run the command "check_jmxeval.bat"
I've followed the steps in the below link.
https://code.google.com/archive/p/jmxeval/wikis/GettingStarted.wiki
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/kohsuke/args4j/Cm
dLineException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.kohsuke.args4j.CmdLineException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
Thanks and Regards.
Error messages are Java related. Can you run the batch file from Nagwin bash prompt ?
Thanks for your respond.
I knew the problem was due to the missing class, so I've added the required class in the plugin(jmxeval.bat) directory, Now my issue is when running my first check. I got the below from the CMD.
the command is C:\Nagwin_x64\plugins>check_jmxeval C:\Nagwin_x64\etc\jmxeval-threadcount.xml
and the below exception is produced.
Exception in thread "main" java.lang.ClassCastException: com.adahas.tools.jmxeval.model.impl.Eval cannot be cast to com.
adahas.tools.jmxeval.model.impl.JMXEval
at com.adahas.tools.jmxeval.App.execute(App.java:50)
at com.adahas.tools.jmxeval.App.main(App.java:110)
Thanks.
Hi;
Thanks. It needed to have the "args4j-2.0.16.jar" file in the plugin directory and I was able to get something now, but there is still an exception going on here. I am not an expert in bash commands, it would be helpfull if you could check this output or which command shall I run from the Nagwin bash prompt.
C:\Nagwin_x64\plugins>check_jmxeval.bat C:\Nagwin_x64\etc\jmxeval-threadcount.xml
Exception in thread "main" java.lang.ClassCastException: com.adahas.tools.jmxeva
l.model.impl.Eval cannot be cast to com.adahas.tools.jmxeval.model.impl.JMXEval
at com.adahas.tools.jmxeval.App.execute(App.java:50)
at com.adahas.tools.jmxeval.App.main(App.java:110)
Thanks & Regards.