Install Bandersnatch to log Messages

Warning: this tutorial is not yet complete. Disclaimer: This article provided AS IS. Author is not responsible for any damages, upsets or idiosyncrasies caused by this article.
  1. Install Net::Jabber

    Get the latest Net::Jabber with all requirements. There are several ways, use your favourite:

    • apt on debian

      apt-get install libnet-jabber-perl
    • FreeBSD

      cd /usr/ports/net/p5-Net-Jabber && make all install clean
  2. Get Bandersnatch

    svn co http://oss.svn.funkypenguin.co.za/bandersnatch/
    cd bandersnatch
  3. Configure ejabberd

    Edit ejabberd.cfg and add this line to the 'modules' section:

    {mod_service_log, [{loggers, ["bandersnatch.jabber.myserver.com"]}]},

    Add this to 'listen' section to make ejabberd listen for Bandersnatch connections:

    {5526, ejabberd_service, [{ip, {127, 0, 0, 1}}, {access, all}, 
                              {hosts, ["bandersnatch.jabber.myserver.com"], 
                              [{password, "secret"}]}]},
  4. Create Bandersnatch database

    Read doc/bandersnatch.html and create database:

    mysql -u root -pPASSWORD bandersnatch < bandersnatch.sql
  5. Configure Bandersnatch

    Check config.xml to make sure that we're going to use the same name/secret/port as in ejabberd.cfg.

    <server> 
        <connectiontype>tcpip</connectiontype> 
        <hostname>localhost</hostname> 
        <port>5526</port> 
        <secret>secret</secret> 
    </server> 
    <component> 
        <name>bandersnatch.jabber.myserver.com</name> 
    </component>
  6. Restart ejabberd

  7. Start Bandersnatch

    Run the script:

    perl bandersnatch config.xml

Related Links

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Bandersnatch dead?

It looks like bandersnatch is dead:

http://www.funkypenguin.info/project/bandersnatch wrote:

NOTICE: This domain name expired on 11/28/2010 and is pending renewal or deletion

bandersnatch package was removed from debian in 2008 - http://packages.qa.debian.org/b/bandersnatch.html

Is there any alternative?

Bandersnatch Alternative

Bandersnatch doesn't seem to be supported anymore. Has another utility taken its place?

I just discovered a Guide to

I just discovered in the Ubuntu forums a guide to Install Bandersnatch and ejabberd under Ubuntu.

--
sander

Step #3 is deprecated.

Step #3 is deprecated. Also, the source of bandersnatch has been changed to SVN repo:
http://oss.svn.funkypenguin.co.za/bandersnatch/

Host oss.svn.funkypenguin.co.za not found

$ host oss.svn.funkypenguin.co.za ns.sun.com
Using domain server:
Name: ns.sun.com
Address: 192.9.9.3#53
Aliases:

Host oss.svn.funkypenguin.co.za not found: 3(NXDOMAIN)

Ok, changes done.

Ok, changes done.

Syndicate content