bbcombotest doesn't work on 64bit centos 5.3 xymon 4.3.0 beta2 [SOLVED]
andrea lisci
suam8 at hotmail.com
Thu Sep 3 10:38:24 CEST 2009
I solved the problem patching bbcombotest.c
in this part of code
hobbitdresult = sendmessage("hobbitdboard fields=hostname,testname,color", NULL, BBTALK_TIMEOUT, sres);
if ((hobbitdresult != BB_OK) || (board == NULL)) {
board = "";
*errptr += sprintf(*errptr, "Could not access hobbitd board, error %d\n", hobbitdresult);
return COL_CLEAR;
}
board is always null
so I patched the code with the following one that eliminate board null check
hobbitdresult = sendmessage("hobbitdboard fields=hostname,testname,color", NULL, BBTALK_TIMEOUT, sres);
if ((hobbitdresult != BB_OK)) {
board = "";
*errptr += sprintf(*errptr, "Could not access hobbitd board, error %d\n", hobbitdresult);
return COL_CLEAR;
}
hope it helps
bye
Al1ta
From: suam8 at hotmail.com
To: hobbit at hswn.dk
Subject: bbcombotest doesn't work on 64bit centos 5.3 xymon 4.3.0 beta2
Date: Thu, 3 Sep 2009 03:47:48 +0200
I can't able to use bbcombotest on xymon 4.3.0 beta2 running on a CentOS 5.3 64bit
whatever I put on bbcombotest.cfg, I get clear color and an error dumped on the web page that says:
Errors occurred during evaluation:
Could not access hobbitd board, error 0
the color is 'clear' and the check dowsn't work
running by hand hobbitboard it seems to work, for example:
/opt/xymon/server/bin/bb 11.113.1.165 'hobbitdboard fields=hostname,testname,color'
works
it seems a problem on bbcombotest.c when it calls sendmessage
the lines involved in the errors seems to be
hobbitdresult = sendmessage("hobbitdboard fields=hostname,testname,color", NULL, BBTALK_TIMEOUT, sres);
if ((hobbitdresult != BB_OK) || (board == NULL)) {
board = "";
*errptr += sprintf(*errptr, "Could not access hobbitd board, error %d\n", hobbitdresult);
return COL_CLEAR;
}
With Windows Live, you can organize, edit, and share your photos.
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090903/8d483efd/attachment.html>
More information about the Xymon
mailing list