Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having critical less than warning does not work #23

Open
GoogleCodeExporter opened this issue Sep 14, 2015 · 3 comments
Open

Having critical less than warning does not work #23

GoogleCodeExporter opened this issue Sep 14, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
# ./check_jmx -U 
service:jmx:rmi:///jndi/rmi://10.10.10.10:50500/alfresco/jmxrmi -O 
java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used 
-vvvv -w 10 -c 100 -username monitorRole -password change_asap
JMX CRITICAL - HeapMemoryUsage.used=415501352 | 
HeapMemoryUsage.used=415501352,committed=2619736064;init=2684354560;max=26197360
64;used=415501352

# ./check_jmx -U 
service:jmx:rmi:///jndi/rmi://10.10.10.10:50500/alfresco/jmxrmi -O 
java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used 
-vvvv -w 10 -c 100 -username monitorRole -password change_asap
JMX CRITICAL - HeapMemoryUsage.used=449934952 | 
HeapMemoryUsage.used=449934952,committed=2619736064;init=2684354560;max=26197360
64;used=449934952

In the 1st example, critical is more than warning, the return value is more 
than both, this is working as expected.

In the 2st example, critical is less than warning, the return value is more 
than both, still return critial.

What is the expected output? What do you see instead?
Should return OK when critial is less than warning and the return is more than 
both.

What version of the product are you using? On what operating system?
jmxquery-1.3

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 19 Dec 2012 at 6:14

@GoogleCodeExporter
Copy link
Author

I did some testing, it was working in 1.0 but does not work in 1.1, 1.2 and 
1.3.  Thank  you!

Original comment by [email protected] on 19 Dec 2012 at 6:28

@GoogleCodeExporter
Copy link
Author

Still appears to be an issue in the latest snapshot.

Original comment by [email protected] on 11 Sep 2013 at 4:54

@GoogleCodeExporter
Copy link
Author

I think I've fixed this.  Attached is a patch.  Can someone in the project 
apply it?

Original comment by [email protected] on 12 Sep 2013 at 7:24

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant