Random Project

Great and valuable plugin to connect to AS/400 (IBMi)

You have done an excellent job that lets Nagios (and its flavors) to get deep into iSeries monitoring. It could be easy extended.
One issue that I found is in parseDspMsg when there are a few pages of “need-reply” messages and a new “do not need reply” messages page appears. In this case, where (e.g. k = 334 i=460) we get: Exception in thread “main” java.lang.StringIndexOutOfBoundsException: String index out of range: -126 at java.lang.String.substring(Unknown Source).

This happens in line “String str3 = paramString.substring(i, k);” where the begin is 460 and end is 334 (!!!) that is not possible.

Thank you for your excellent work!