# Problems in Communicating with BroCluster Using Broccoli

**URL:** <https://community.zeek.org/t/problems-in-communicating-with-brocluster-using-broccoli/3085>\
**Category:** Zeek\
**Created:** [April 26, 2014, 3:25pm UTC](https://community.zeek.org/t/problems-in-communicating-with-brocluster-using-broccoli/3085 "2014-04-26T15:25:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user35](https://avatars.discourse-cdn.com/v4/letter/u/d07c76/32.png) [@user35](https://community.zeek.org/u/user35)\
**Post date:** [April 26, 2014, 3:25pm UTC](https://community.zeek.org/t/problems-in-communicating-with-brocluster-using-broccoli/3085/1 "2014-04-26T15:25:57Z")

</div>

Hi all,  
Sorry to trouble! Now I encountered a problem when I tries to implement a programme that is capable of communicating with Bro CLuster. The programme functions well when communicating with single Bro, but has problem when I installed the scripts to BroCluster.  
The Bro-end is something like:

@load frameworks/communication/listen

redef Communication::listen\_port = 49889/tcp;  
redef Communication::listen\_ssl = F;

global ping\_log = open\_log\_file(“alert”);  
global alert: event(t: string, id: string, sip: string, sp: string, dip: string, dp: string);  
redef Communication::nodes += { [“pingevent”] = [$host = 202.197.165.213, $events = /alert/, $connect=T, $ssl=F] };  
event alert(t: string, id: string, sip: string, sp: string, dip: string, dp: string)  
{  
print ping\_log, fmt(“Alert received, %s”,id);  
print fmt(“alert event recieved! %s %s %s %s %s %s”,t,id,sip,sp,dip,dp); }  
}

And the other end sends Bro events to the Bro-end.  
Now, the problem is while this script works well when communicating with single Bro which uses the command “bro”, but it has problems when I install them to the Bro Cluster nodes, e.g. local-manager.bro or local-worker.bro. My script and programme is listed in the attachment. Hope for help!! Thanks a lot!

[local-worker.bro](https://community.zeek.org/uploads/short-url/lPcyGHTa4XUlHAxlX2bvFaoOKZK.bro) (751 Bytes)

[pingevent.c](https://community.zeek.org/uploads/short-url/pWdL4MEo4u42MWqZYGScgoMo6R2.c) (8.17 KB)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:41pm UTC](https://community.zeek.org/t/problems-in-communicating-with-brocluster-using-broccoli/3085/2 "2022-05-06T15:41:44Z")

</div>


