Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

francoisd

Reviews(1)
byfrancoisd, July 20, 2015
check_tablespace_mysql
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 ?