usmanismail / jmxeval Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/jmxeval
License: Other
Automatically exported from code.google.com/p/jmxeval
License: Other
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
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
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
(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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.