These forums are read-only!
Anyone running God on ubuntu hardy with event-based monitoring?
  • After installing god, running sudo god check gives:

    saimon@bootie:~$ sudo god check
    using event system: netlink
    starting event handler
    forking off new process
    forked process with pid = 17883
    killing process
    [fail] never received process exit event

    From this thread (http://groups.google.com/group/god-rb/browse_thread/thread/e185481f83fe1d38) it appears the cn module has to be compiled into the kernel running my slice for god events to work.

    But chatting to PickledOnion in campfire, he said he knew that a few slicehosters out there were already using it.
    Are you guys just using polling configs or anyone actually managed to get event-based monitoring working?

    Regards,

    Saimon
  • Dear Saimon,

    I'm running into the same problem. But I already have God working on a slice with the same OS (ubuntu 7.10 and 8.04). The difference seems to be the kernel, 2.6.18-xen works, 2.6.24-19-xen does not.

    It has to do with loading the kernel module cn but it seems I already have it loaded (sudo modprobe --first-time cn).

    The workaround I opted for is to remove the functionality from my god script that depends on the event handling (process_exit and transition). This will reduce the responsiveness but allows god to run even if the last check fails (sudo god check).

    Best regards,
    Sytse Sijbrandij
  • I've used God on Ubuntu 64bit with polling, but it leaked memory like crazy so I had to switch to monit, which uses 2MB of RAM instead.
  • For those still having problems with getting God's events to work on some Slicehost builds, you probably need to upgrade your kernel.

    My older kernel didn't work, so I used the point-n-click upgrade via the Slicehost website and all is well again...

    NO DICE:
    2.6.24-23-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86_64 GNU/Linux

    WORKS FINE:
    2.6.32.9-rscloud #6 SMP Thu Mar 11 14:32:05 UTC 2010 x86_64 GNU/Linux

    More details here...
    http://chris.finne.us/2010/04/09/god-events-not-working-on-slicehost-ubuntu---resolved/