- Can a hobbitd worker subscribe to more than one channel without launching multiple workers? Can you add a:
[frazzle] ENVFILE /home/hobbit/server/server/etc/hobbitserver.cfg NEEDS hobbitd CMD hobbitd_channel --channel=stachg,status,notes --log= $BBSERVERLOGS/frazzle.log hobbitd_frazzle
so the hobbitd_frazzle worker gets stachg, status and notes messages?
- What is the hobbitd_filter program? The comment is:
/* Filter for incoming messages. /* This module is invoked when a new status message is received, but /* before it is handled by the daemon. The message is passed from /* hobbitd in shared memory, so this filter can modify the message e.g. /* change the color of the message based on some criteria.
but I don't see where it gets called from hobbitd or launched as a separate process. I'm very intrigued by this code and what I can accomplish with it.
-Jeff
"Fun with Users #1: ln -s /dev/random /etc/motd"
On Thu, Dec 08, 2005 at 03:40:46AM -0500, Jeff Stoner wrote:
- Can a hobbitd worker subscribe to more than one channel without launching multiple workers?
No. One instance of each worker module listens to one channel only. However, you can have the same worker module running in multiple instances, e.g. hobbitd_rrd runs twice - one listens on the "status" channel, the other listens on the "data" channel.
- What is the hobbitd_filter program? The comment is:
/* Filter for incoming messages.
It's a left-over from some early thoughts I had about how to deal with clients.
but I don't see where it gets called from hobbitd or launched as a separate process. I'm very intrigued by this code and what I can accomplish with it.
It was never finished, so you cannot do anything with it. What did you have in mind ?
Henrik
In the event that a Hobbit server has been shutdown or a client is unable to reach that server due to network related isseues, is there a way to flush outstanding alerts to avoid pager floods?
On Thu, 2005-12-15 at 14:53 +0100, Henrik Stoerner wrote:
- What is the hobbitd_filter program? The comment is:
/* Filter for incoming messages.
It's a left-over from some early thoughts I had about how to deal with clients.
but I don't see where it gets called from hobbitd or launched as a separate process. I'm very intrigued by this code and what I can accomplish with it.
It was never finished, so you cannot do anything with it. What did you have in mind ?
Embedding a Perl interpreter, hooking into the message stream, a la mod_perl. hobbitd_filter would be the perfect place for this since hobbitd workers can only connect to one channel. In order to create hooks for the various message types, I'd have to have an embedded perl worker running for each channel and they wouldn't be able to (easily) share cached code, memory, etc.
There may be other ways to accomplish what I'm doing. I'll keep researching.
-- --Jeff "Go to Jail. Do not pass Go. Do not collect $200."
participants (3)
-
henrik@hswn.dk
-
sblee@tazmania.org
-
stoners@verizon.net