Parsing errors when collectiong from monit(beta 2) to m/monit(beta 3)

Jan-Henrik Haukeland hauk at tildeslash.com
Tue Aug 5 08:31:49 CEST 2008


On 4. aug.. 2008, at 18.12, Rafael G. wrote:


> The m/monit logs said:
>
> M/Monit:
> 2008-08-04 17:34:47 AssertException:XML parse error -- Parse error  
> at line [113] near "eof" -- syntax error, unexpected $end, expecting  
> CLOSE_TAG when processing message posted from monit at host  
> '11.22.33.44'  <<- Aha! parse error. Then m/monit don't accept the  
> conection.

As Martin mentioned in his reply, this looks to be related to M/Monit  
only reading and parsing a partial XML message from Monit. We have an  
extremely short (10 milliseconds) read timeout in the XML parser which  
read the XML message from Monit in chunks. From the error message you  
get, I strongly suspect the parse gets a read timeout and don't get  
the full message from Monit.

This timeout was a leftover from before we refactored the XML  
processing code and I forgot to remove it in this version. A new beta  
version should be out early next week, which should fix this problem  
if you can wait until then. Otherwise I can try and build an  
intermediate release if its urgent.

Jan-Henrik



More information about the mmonit-user mailing list