When checking 6.x servers (from 6.0.2 CF1 to 6.5) I get an error Statistics could not be checked). When doing a show stats manually I see that the 6.x servers add a line (1 statistics found) to the result.
So I went out for the BCC5.5 and the notes c++ api and even without experience in C++ ( or C for that matter) I changed the code in the statcheck function as follows:
//get the text to the right of the = sign and convert to a number<br/>
LNString stat_value_string;<br/>
LNNumber stat_value_set = LNString(stat_value_item[x]);<br/>
LNINT len = 0;<br/>
<br/>
// Added to take the extra line of domino 6 servers into account<br/>
LNINT loceol=0; // Location of eol<br/>
LNSTATUS erroreol; // result of search for eol<br/>
erroreol = response.Find ("\n", loc, &loceol);// search for eol<br/>
if (erroreol == 0 && loceol > 0) len = loceol - loc - 2;<br/>
else len = response.GetCharacterCount() - loc -1;<br/>
// end of modification
<br/>
response.GetSubString(loc+1, len, &stat_value_string);<br/>
LNNumber stat_value_found = stat_value_string;<br/>
The result is that it now works and that I got more ideas that I will try to work out.