Step by Step procedure to install Octopussy (RSyslog Server) on Ubuntu

Octopussy – Perl/XML Logs Analyzer, Alerter & Reporter. –


This post is OBSOLETE and the Octo(8)pussy project is not maintained anymore.

1. Install Ubuntu Server

Install the Ubuntu server from with the ISO or USB version (you can use the Desktop Edition, but I recommend a light footprint for this, GUI is really not an added value here).

Update Ubuntu (if you have Internet access)

apt-get update
apt-get upgrade

2. Install Some Requirements

apt-get -y install build-essential perl apache2 libapache-asp-perl mysql-server rrdtool nscd librrdp-perl rsyslog rsyslog-mysql htmldoc

3. Install SSH (to access remotely on your server)

apt-get -y install ssh

4. Then install Octopussy:

Get the latest octopussy debian package here.

dpkg -i octopussy_0.
apt-get -f install

Type the mysql root password

Note : Some Perl module are missing for a correct Octopussy setup (Ubuntu Server 10.04).

You can install them with CPAN:

octopussy# cpan
cpan> install Date::Manip
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok

Type for every module ‘install module’ like in the example above (when it asks to build modules now, just hit enter):

cpan> install Date::Manip
cpan> install DBD::mysql
cpan> install JSON
cpan> install Linux::Inotify2
cpan> install LWP
cpan> install Net::LDAP
cpan> install Proc::PID::File
cpan> install Sys::CPU
cpan> install URI

And finally, install Apache::ASP (the Perl extension used to serve the user interface to a browser):

cpan> install Bundle::Apache::ASP

Wait the setup is completed . You can reboot (Optional but can be a good check that all is fine and running).

5. Connect to the Web interface

Get your IP address and connect to the server

 ifconfig eth0
/etc/init.d/octopussy start

Open your browser on http://YOUR.SERVER.IP:8888

Et voilà

6. Notes

If you have some CPAN or @INC errors try this:

/bin/chown -R octopussy:octopussy /etc/octopussy/ /usr/share/octopussy/ /usr/sbin/octo*
/bin/chown -R octopussy:octopussy /var/cache/octopussy/ /var/lib/octopussy/ /var/run/aat/ /var/run/octopussy/
/usr/sbin/adduser --system --disabled-password --no-create-home --group --quiet octopussy
/bin/chown -R octopussy:octopussy /etc/octopussy/ /usr/share/octopussy/ /usr/sbin/octo*
/bin/chown -R octopussy:octopussy /var/cache/octopussy/ /var/lib/octopussy/ /var/run/aat/ /var/run/octopussy/
/bin/ln -f -s /usr/share/aat /usr/share/octopussy/AAT
a2enmod dir
a2enmod ssl
chmod -R 755 /usr/share/perl5
chmod -R 755 /usr/share/perl

Some permission trouble

chmod +x /usr/sbin/octo_sender

“Undefined subroutine &Octopussy::Create_Directory called at /usr/sbin/octo_parser line 308.”

Concerning the undefined subroutine, the problem has been solved, you have to edit your octo_parser, replacing Octopussy::Create_Directory by : Octopussy::FS::Create_Directory at line 308?

Be the first to comment

Leave a Reply

Your email address will not be published.