bback.cgi and cookies

nico nico at crysto.org
Wed Feb 11 18:36:54 CET 2009


Hi,

I'd like to send ack events to multiple BBDISPLAY.

To do that, i did a change on hobbitserver.cfg with this configuration:

http://www.hswn.dk/hobbiton/2005/10/msg00203.html

1) In hobbitserver.cfg on both display servers, after the BBDISPLAY
   setting add
        # For the enable/disable and acknowledge scripts.
        maint/BBDISP="0.0.0.0"
        maint/BBDISPLAYS="10.0.0.1 172.16.12.10"
   (replace with your display-server IP-adresses)
2) In hobbitcgi.cfg, change the line for the bb-ack.cgi tool:
        # bb-ack.cgi options
        CGI_ACK_OPTS="--area=maint
--env=/usr/lib/hobbit/server/etc/hobbitserver.cfg"

The first problem is that it seems to not send acks events to the multiples
IP but only to local.

The second problem is that when i modified BBDISP with the IP of another
hobbit server, we got an error:

2009-02-11 17:02:52 Cookie 338777 not found, dropping ack
2009-02-11 17:06:34 Cookie 338777 not found, dropping ack

The reason is that the cookie is different for the same host/test:

serverA$ ${BB} ${BBSERVERIP}:${BBPORT} "hobbitdboard color=red,yellow
fields=hostname,testname,cookie"
cusaa-ws02|ftp|640796

serverB$ ${BB} ${BBSERVERIP}:${BBPORT} "hobbitdboard color=red,yellow
fields=hostname,testname,cookie"
cusaa-ws02|ftp|338777

We tried to disable cookie by adding "--no-cookies" into CGI_ACK_OPTS
variable of hobbitcgi.cfg but the problem still happens.

Is there any way to fix it please ?

Regards,
nicolas





More information about the Xymon mailing list