Giter Site home page Giter Site logo

jmxeval's People

Watchers

 avatar

jmxeval's Issues

possible enhancements

1) allow variable definitions from the command line
    -- this will allow passing the connection information on 
         the command line instead of having it hard coded 
         into the check scripts (we have 100's of servers to monitor)

2) Use the standard nagios plugin range specification (ugly but standard)
   -- http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

Would you be willing to accept patches for the above? 


Original issue reported on code.google.com by [email protected] on 4 Feb 2013 at 11:50

Don't display performance data for "time" in case of Status UNKNOWN

What steps will reproduce the problem?
1. Force the check to return UNKNOWN, e.g. by configuring a wrong connection 
port

What is the expected output? What do you see instead?
I see the error message together with performance data for "time" which will 
produce an conflict with rrd_update

What version of the product are you using? On what operating system?
1.2.6 / Ubuntu 10.04 LTS

Please provide any additional information below.

To solve the problem I changed the source code in App.java:

...
     // process the evals
      jmxEval.process(context);

      // set elapsed time in seconds
      final double elapsedTime = (System.currentTimeMillis() - startTime) / 1000;

      // return status value to indicate execution status
      returnValue = context.getResponse().getStatus().getValue();

      // Dont produce performance data for "time" in case of return value UNKNOWN
      if (returnValue != 3) {
          context.getResponse().addPerfData(new PerfDataResult(
             "time", String.valueOf(elapsedTime), "s", null, null, null, null));
      }
      // print response
      outputWriter.println(context.getResponse());

    } catch (ConfigurationException e) {
...


Original issue reported on code.google.com by [email protected] on 27 Mar 2013 at 2:46

Need more documentation please

Are there updated entries for the wiki available? All the options at the bottom 
of the getting started guide are things I'm looking to do:

Multiple simple attribute checks (Thread count check)
Using composite attributes and mathematical expressions (Heap memory usage 
check)
Regular expression based check (Tomcat version check)

Any more information about configuring the xml to do these checks would be 
really useful. I'm trying to get data out of a custom tomcat application that 
can't be used with any of the standard tomcat nagios checks. JMX seems to be 
the best way to get data out but I need to do max / current heap usage, max 
/current web container threads, max / current jdbc connections, tomcat version, 
running states, etc from a single command. I also need performance data to be 
generated.

Hopefully some updated documentation will allow me to do that.

Thanks!

- Jim

Original issue reported on code.google.com by [email protected] on 4 Jan 2013 at 6:54

Arithmetic format for tiny values

(Not sure if this awesome project is still alive, let's give it a try.)

What steps will reproduce the problem?
1. Check process CPU load (java.lang:type=OperatingSystem->ProcessCpuLoad)
2. Apply some arithmetic operation on the result (eg: *100 for proper 
percentage)
3. This results in an IllegalArgumentException error if the value is under 0,001

What is the expected output? What do you see instead?
* Expected: 0,0009501108462653976
* Saw:9.501108462653976E-4

What version of the product are you using? On what operating system?
* v1.2.6

The format returned by JMX is not properly interpreted by the library, some 
rounding should be applied for tiny values, or "0" should be returned.

Original issue reported on code.google.com by [email protected] on 27 Nov 2014 at 9:15

All substitutions in <perf> section.

What steps will reproduce the problem?
1. Add <query> section to get the max non-heap memory size.
2. Add "max="${nonHeapMemoryUsageMax"" to the <perf> section

What is the expected output? What do you see instead?
Output should include the maximum non-heap memory size in the performance 
section.  Instead the variable is printed.

What version of the product are you using? On what operating system?
1.2.6

Please provide any additional information below.

<?xml version="1.0"?>
<jmxeval:jmxeval xmlns:jmxeval="http://www.adahas.com/schema/jmxeval-1.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <connection url="service:jmx:rmi:///jndi/rmi://${jmxhost}:${jmxport}/jmxrmi" >
    <eval name="NonHeapMemory">
      <query var="nonHeapMemoryUsage" objectName="java.lang:type=Memory" attribute="used" compositeAttribute="NonHeapMemoryUsage" />
      <query var="nonHeapMemoryUsageMax" objectName="java.lang:type=Memory" attribute="max" compositeAttribute="NonHeapMemoryUsage" />
      <check useVar="nonHeapMemoryUsage" warning="724775731" critical="815372697" message="NonHeapMemoryUsage is ${nonHeapMemoryUsage}" >
        <perf min="0" max="${nonHeapMemoryUsageMax}" unit="B"/>
      </check>
    </eval>
  </connection>
</jmxeval:jmxeval>

$ /check_jmxeval --set jmxhost=jmxhost.example.com --set jmxport=9999 
nonheapmemoryusage-used.xml

JMXEval NonHeapMemory OK - NonHeapMemoryUsage is 482907048 | 
nonHeapMemoryUsage=482907048B;724775731;815372697;0;${nonHeapMemoryUsageMax} 
time=0.0s

Original issue reported on code.google.com by [email protected] on 28 Mar 2013 at 5:28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.