Build precise queries to find exactly what you need
Press ESC to close
@francoisd
Favorites0
Views
Projects0
BUT i have a problem, our tablespace are big and i think i've hit the maximum. higher, i get a java error. this is warning, or the number maximum allowed for a check 2147483647 java -classpath /usr/lib64/nagios/plugins/ check_tablespace_mysql localhost 3306 databasename "user id" "password" 2147483647 270000000 is ok but if i change the warning and add1 byte, 2147483648 produce error message java -classpath /usr/lib64/nagios/plugins/ check_tablespace_mysql localhost 3306 databasename "user id" "password" 2147483648 270000000 Exception in thread "main" java.lang.NumberFormatException: For input string: "2147483648" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:499) at java.lang.Integer.parseInt(Integer.java:527) at check_tablespace_mysql.main(check_tablespace_mysql.java:74) what can i change on the java code to make this working ?
Reviewed 10 years ago