requires an event system but none has been loaded

224 views
Skip to first unread message

Lukas Rieder

unread,
Jul 21, 2008, 10:22:59 AM7/21/08
to god.rb
Hy,

I'm having the problem that many have these days. My Connector is
loaded into the kernel as a Module.

lsmod | grep cn
cn 13768 0

But god.rb still can't access it:

I [2008-07-21 16:12:07] INFO: Using pid file directory: /var/run/god
E [2008-07-21 16:12:07] ERROR: Condition
'God::Conditions::ProcessExits' requires an event system but none has
been loaded

So I've written a nice configuration file for mysql and sshd, but I
can throw them away.

After some research on this problem, I discovered that the Connector
has to be compiled into the kernel, and I have to build a custom
kernel in order to use god.
I'd love to use god, because it's ruby style and configuration is a
ride in an amusement park.

Do I really have to switch back to monit?

Has someone found a solution to get god.rb running with the event
system?
Or has someone a good resource on how to extend (recompile) your
existing kernel and avoid crashing the machine? I've never build a
kernel on my own, so I'd rely on a good failsafe tutorial.

When the problem is solved (I document my work on this server, because
it should go production) I'd like to contribute my experienced in form
of a tutorial or something.

Thanks,


Lukas Rieder

Matt Murphy

unread,
Jul 21, 2008, 10:57:19 AM7/21/08
to god...@googlegroups.com
Lukas,

I have not seen such a tutorial. It would also be useful to have a
tutorial on how to set up god w/o requiring the event system -- the
benefits you mention don't require the cn module at all and god was
originally written to simply use polling.

However the example configs I've seen for god all use the events
syntax, and so it would seem to require a fair bit of trial and error
(or a thorough look at the source) to determine how to use simple
polling.

For now I went back to monit after running into the issue you did but
taking a look at god sans events is on my eventual to-do list. Not
sure if anyone on the list has a polling config that they'd be willing
to pastie for us.

Lukas Rieder

unread,
Jul 21, 2008, 12:22:37 PM7/21/08
to god.rb
Hy,

thanks your answer.
Ok, to receive god's blessing you can configure it to use polling.
But I've learned the configuration only through the event system wich
doesn't work ;)

If someone has a working config file (based on polling, not event-
system) wich includes

* process monitoring, restarting, notifier
* service monitoring (http, ... requests)

it would be great to share it for all "non-cn kernel users" of god.rb.

Cheers,

Lukas

On 21 Jul., 16:57, "Matt Murphy" <mmm...@gmail.com> wrote:
> Lukas,
>
> I have not seen such a tutorial.  It would also be useful to have a
> tutorial on how to set up god w/o requiring the event system -- the
> benefits you mention don't require the cn module at all and god was
> originally written to simply use polling.
>
> However the example configs I've seen for god all use the events
> syntax, and so it would seem to require a fair bit of trial and error
> (or a thorough look at the source) to determine how to use simple
> polling.
>
> For now I went back to monit after running into the issue you did but
> taking a look at god sans events is on my eventual to-do list.  Not
> sure if anyone on the list has a polling config that they'd be willing
> to pastie for us.
>
Reply all
Reply to author
Forward
0 new messages