debian/0000775000000000000000000000000012030360323007160 5ustar debian/rules0000775000000000000000000000374612030256760010263 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ PACKAGE=octopussy POD2MAN=pod2man DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p') override_dh_auto_build: mkdir -p ./usr/share/man/man1 $(POD2MAN) ./usr/sbin/$(PACKAGE) > ./usr/share/man/man1/$(PACKAGE).1 for sbin in `ls -1 ./usr/sbin/octo_*`; \ do \ command=`basename $$sbin`; \ $(POD2MAN) ./usr/sbin/$$command > ./usr/share/man/man1/$$command.1; \ done mkdir -p ./usr/share/man/man3 $(POD2MAN) ./usr/share/perl5/AAT.pm > ./usr/share/man/man3/AAT.3 for pm in `ls -1 ./usr/share/perl5/AAT/*.pm`; \ do \ module=`basename $$pm`; \ $(POD2MAN) ./usr/share/perl5/AAT/$$module > ./usr/share/man/man3/$$module.3; \ done $(POD2MAN) ./usr/share/perl5/Octopussy.pm > ./usr/share/man/man3/Octopussy.3 for pm in `ls -1 ./usr/share/perl5/Octopussy/*.pm`; \ do \ module=`basename $$pm`; \ $(POD2MAN) ./usr/share/perl5/Octopussy/$$module > ./usr/share/man/man3/$$module.3; \ done override_dh_install: # Remove normal db configuration as will be handled by dbconfig-common rm -f var/lib/octopussy/conf/db.xml dh_install find debian/$(PACKAGE)/usr/share -name "*.png" -exec chmod 0644 {} \; # Install dbconfig-common setup cp debian/dbconfig/mysql.sql \ debian/$(PACKAGE)/usr/share/dbconfig-common/data/$(PACKAGE)/install/mysql cp debian/dbconfig/mysql-admin.sql \ debian/$(PACKAGE)/usr/share/dbconfig-common/data/$(PACKAGE)/install-dbadmin/mysql cp debian/conf/db.mysql.xml debian/$(PACKAGE)/usr/share/doc/octopussy/db.xml override_dh_link: # Remove rrd directory from upstream source # this needs to be rw so linked to /var/lib/octopussy/rrd # for this packaging rm -Rf debian/$(PACKAGE)/usr/share/octopussy/rrd dh_link get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename mv ../$(PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \ ../$(PACKAGE)_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz debian/dirs0000664000000000000000000000047112030256760010057 0ustar etc/octopussy var/spool/octopussy var/cache/octopussy var/lib/octopussy/rsyslog var/lib/octopussy/rrd var/lib/octopussy/rrd_png usr/share/dbconfig-common/data/octopussy/install usr/share/dbconfig-common/data/octopussy/install-dbadmin usr/share/dbconfig-common/data/octopussy/upgrade/mysql usr/share/doc/octopussy debian/install0000664000000000000000000000034712030256760010566 0ustar etc/aat etc/octopussy/apache2_debian.conf etc/octopussy etc/rsyslog.d/10-octopussy.conf etc/sysctl.d/octopussy usr/sbin usr/share/aat usr/share/man usr/share usr/share/octopussy usr/share/perl5 var/lib/octopussy/conf etc/octopussy debian/postrm0000664000000000000000000000301212030256760010434 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # Source debconf library. if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then . /usr/share/dbconfig-common/dpkg/postrm.mysql dbc_go octopussy $@ fi case "$1" in purge) # Purge other directories that octopussy may have stuck stuff in rm -Rf /var/lib/octopussy /var/cache/octopussy /var/run/octopussy || true rm -Rf /var/run/aat /var/spool/octopussy || true rm -Rf /usr/share/octopussy || true rm -Rf /etc/octopussy /var/log/octopussy || true # Purge ucf entries for db.xml ucf --purge /etc/octopussy/conf/db.xml || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000664000000000000000000000337012030274260010572 0ustar Source: octopussy Section: net Priority: optional Maintainer: Ubuntu Developers Build-Depends: debhelper (>= 8.0.0), perl Standards-Version: 3.9.3 Homepage: http://www.octopussy.pm/ Package: octopussy Architecture: all Depends: adduser, apache2, debconf, dbconfig-common, htmldoc, libapache-asp-perl, libapache2-mod-perl2, libapp-info-perl, libcache-cache-perl, libcrypt-passwdmd5-perl, libdate-manip-perl, libdatetime-format-strptime-perl, libdbd-mysql-perl, libdbi-perl, libjs-prototype, libjson-perl, liblinux-inotify2-perl, liblist-moreutils-perl, liblocale-maketext-lexicon-perl, libmail-sender-perl, libnet-ldap-perl, libnet-scp-perl, libnet-telnet-perl, libnet-xmpp-perl, libproc-pid-file-perl, libproc-processtable-perl, libreadonly-perl, libregexp-assemble-perl, librrd4|librrd2, libsys-cpu-perl, libterm-progressbar-perl, libunix-syslog-perl, liburi-perl, libwww-perl, libxml-simple-perl, mysql-server, nscd, perl, perl-modules, rrdtool, rsyslog | syslog-ng, sudo, ucf, ${misc:Depends}, ${shlibs:Depends} Suggests: nsca Description: log analyzer, alerter & reporter Octopussy is a log analyzer, alerter & reporter with Web interface. It has the following features: . * LDAP support for Octopussy Users & Contacts * Send alerts by email, IM(Jabber), NSCA(Nagios) & Zabbix_sender * Export reports by Email, FTP & SCP * Create map to show your architecture * Input & output plugins for reports * Reports scheduling * Syslog activity graphs * Wide range of service support * Wizard to easily create new Message/Service definitions for unrecognized logs * Online updates for services, tables & multilanguage * Multilanguage support * Themable interface & report debian/copyright0000664000000000000000000000521712030274335011127 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: octopussy Source: http://www.octopussy.pm/ Files: * Copyright: 2010 Sebastien Thebert License: GPL-2.0+ Files: usr/share/octopussy/JS/swfobject.js Copyright: 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis License: MIT Files: usr/share/octopussy/JS/prototype.js Copyright: (c) 2005-2010 Sam Stephenson License: MIT-PrototypeJS Files: debian/* Copyright: 2010 Sebastien Thebert , 2011 Canonical Ltd (http://www.canonical.com) License: GPL-2.0+ License: GPL-2.0+ On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN License: MIT-PrototypeJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/README.Debian0000664000000000000000000000414412030274216011231 0ustar octopussy for Debian ==================== rsyslog Configuration --------------------- Octopussy for Debian does not enable UDP/TCP network ports in /etc/rsyslog.conf (this differs from the upstream Debian packaging). The following changes must be made to /etc/rsyslog.conf receive syslog from other servers: # provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 # provides TCP syslog reception $ModLoad imtcp $InputTCPServerRun 514 In addition high precision timestamps are required; these can be enabled by commenting out: # # Use traditional timestamp format. # To enable high precision timestamps, comment out the following line. # #$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat syslog-ng Configuration ----------------------- Octopussy can also be used with syslog-ng; an example configuration file for syslog-ng can be found in /usr/share/doc/octopussy/syslog-ng.conf. mysql Configuration ------------------- Octopussy uses a mysql database for storing alert data. This can be automatically setup during installation using dbconfig-common. However if you wish to install the octopussy database on an alternative server you can find an example script to setup the octopussy database, user and schema in /usr/share/doc/octopussy/OCTOPUSSY.sql. Once you have created the mysql schema manually, you will need to create /etc/octopussy/conf/db.xml using the template that can be found in /usr/share/doc/octopussy/db.xml and then restart octopussy to complete the installation. Open Flash Chart ---------------- Octopussy makes use of Open Flash Chart, a flash based charting plugin. This is not currently packaged for Debian and has been removed from the Debian distribution to comply with DFSG. However it can be re-enabled by downloading v2 from: http://teethgrinder.co.uk/open-flash-chart-2 and installing to /usr/share/octopussy/open-free-chart.swf. OFC report type can then be re-enabled by editing /usr/share/octopussy/INC/octo_selector_graphtype.inc. Note that you can still generate array and RRD style reports. -- James Page Wed, 03 Aug 2011 12:41:11 +0100 debian/cron.d0000664000000000000000000000013012030256760010271 0ustar # Perform daily logrotation of octopussy logs @daily octopussy /usr/sbin/octo_logrotate debian/prerm0000664000000000000000000000021212030256760010234 0ustar #!/bin/sh set -e . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.mysql #DEBHELPER# dbc_go octopussy $@ exit 0 debian/config0000664000000000000000000000040012030256760010353 0ustar #!/bin/sh -e . /usr/share/debconf/confmodule if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then . /usr/share/dbconfig-common/dpkg/config.mysql dbc_dbuser=octopussy dbc_dbname=octopussy dbc_go octopussy $@ fi #DEBHELPER# exit 0 debian/dbconfig/0000775000000000000000000000000012030360323010733 5ustar debian/dbconfig/mysql-admin.sql0000664000000000000000000000005612030256760013721 0ustar GRANT FILE ON *.* TO 'octopussy'@'localhost'; debian/dbconfig/mysql.sql0000664000000000000000000000054312030256760012634 0ustar CREATE TABLE octopussy._alerts_ ( log_id bigint(20) NOT NULL auto_increment, alert_id varchar(250) default NULL, status varchar(50) default 'Opened', level varchar(50) default NULL, date_time datetime default NULL, device varchar(250) default NULL, log text default NULL, comment text default NULL, PRIMARY KEY (log_id) ) ENGINE=InnoDB; debian/docs0000664000000000000000000000006112030256760010041 0ustar LINUX/OCTOPUSSY.sql etc/octopussy/syslog-ng.conf debian/orig-tar.sh0000775000000000000000000000070212030256760011253 0ustar #!/bin/sh -e VERSION=$2 TAR=../octopussy_$VERSION.orig.tar.gz DIR=octopussy-$VERSION TAG=$(echo "Octopussy-$VERSION" | sed -re's/~rc/rc/') svn export https://syslog-analyzer.svn.sourceforge.net/svnroot/syslog-analyzer/tags/${TAG}/ $DIR GZIP=--best tar -c -z -f $TAR --exclude '*.swf' $DIR rm -rf $DIR ../$TAG # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir && echo "moved $TAR to $origDir" fi debian/watch0000664000000000000000000000030112030256760010214 0ustar version=3 opts="uversionmangle=s/rc/~rc/,dversionmangle=s/\+dfsg$//" \ https://syslog-analyzer.svn.sourceforge.net/svnroot/syslog-analyzer/tags/ \ Octopussy-(\d.*)/ debian debian/orig-tar.sh debian/init0000664000000000000000000000241112030256760010055 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: octopussy # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Octopussy programs ### END INIT INFO ### BEGIN CHKCONFIG INFO # chkconfig: 2345 90 50 # description: Start/Stop Octopussy programs ### END CHKCONFIG INFO DESC="Octopussy" . /lib/lsb/init-functions # Create octopussy log directory and # file and set permissions so this script # can be run by octopussy user. if [ ! -d /var/log/octopussy ]; then mkdir -p /var/log/octopussy touch /var/log/octopussy/octopussy.log chown -R octopussy:octopussy /var/log/octopussy fi case "$1" in start) log_begin_msg "Starting $DESC" /usr/sbin/octopussy start >> /var/log/octopussy/octopussy.log 2>&1 log_end_msg $? ;; stop) log_begin_msg "Stopping $DESC" /usr/sbin/octopussy stop >> /var/log/octopussy/octopussy.log 2>&1 log_end_msg $? ;; restart|force-reload) log_begin_msg "Restarting $DESC" /usr/sbin/octopussy restart >> /var/log/octopussy/octopussy.log 2>&1 log_end_msg $? ;; *) echo "Usage: $0 {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/changelog0000664000000000000000000000134112030360317011034 0ustar octopussy (1.0.6-0ubuntu1) quantal; urgency=low * New upstream release (LP: #1056016). * d/control: bumped Standards-Version: 3.9.3, no changes. * d/{copyright,control}: Updated upstream URL. * d/README.Debian: Fixed minor typo. -- James Page Tue, 25 Sep 2012 10:27:37 +0100 octopussy (1.0~rc4+dfsg-0ubuntu2) oneiric; urgency=low * debian/control: Depends: libproc-process-perl->libproc-processtable-perl to make package installable again (LP: #852019). -- James Page Fri, 16 Sep 2011 17:31:24 +0100 octopussy (1.0~rc4+dfsg-0ubuntu1) oneiric; urgency=low * Initial release (LP: #818153). -- James Page Wed, 03 Aug 2011 12:41:11 +0100 debian/compat0000664000000000000000000000000212030256760010367 0ustar 8 debian/links0000664000000000000000000000035112030256760010233 0ustar etc/octopussy/apache2_debian.conf etc/octopussy/apache2.conf var/lib/octopussy/rrd_png usr/share/octopussy/rrd etc/octopussy/conf var/lib/octopussy/conf usr/share/javascript/prototype/prototype.js usr/share/octopussy/JS/prototype.js debian/conf/0000775000000000000000000000000012030360323010105 5ustar debian/conf/db.mysql.xml0000664000000000000000000000033212030256760012367 0ustar debian/source/0000775000000000000000000000000012030360323010460 5ustar debian/source/format0000664000000000000000000000001412030256760011677 0ustar 3.0 (quilt) debian/patches/0000775000000000000000000000000012030360323010607 5ustar debian/patches/remove-open-flash-chart.patch0000664000000000000000000000315712030256760016275 0ustar Description: Removes options for Open Free Chart graphs from report generation menus; these can be enabled by the end user if required - see README.Debian. Author: James Page Forwarded: not-needed Index: octopussy-1.0~rc3/usr/share/octopussy/INC/octo_selector_graphtype.inc =================================================================== --- octopussy-1.0~rc3.orig/usr/share/octopussy/INC/octo_selector_graphtype.inc 2011-08-05 16:02:01.895921165 +0100 +++ octopussy-1.0~rc3/usr/share/octopussy/INC/octo_selector_graphtype.inc 2011-08-05 16:04:04.425921251 +0100 @@ -3,13 +3,13 @@ my $name = $arg{name} || "graph_type"; my @types = ( { label => "Array", value => "array" }, - { label => "OFC Area Hollow", value => "ofc_area_hollow" }, - { label => "OFC Bar 3D", value => "ofc_bar_3d" }, - { label => "OFC Bar Cylinder", value => "ofc_bar_cylinder" }, - { label => "OFC Bar Glass", value => "ofc_bar_glass" }, - { label => "OFC Bar Sketch", value => "ofc_bar_sketch" }, - { label => "OFC Horizontal Bar", value => "ofc_hbar" }, - { label => "OFC Pie", value => "ofc_pie" }, +# { label => "OFC Area Hollow", value => "ofc_area_hollow" }, +# { label => "OFC Bar 3D", value => "ofc_bar_3d" }, +# { label => "OFC Bar Cylinder", value => "ofc_bar_cylinder" }, +# { label => "OFC Bar Glass", value => "ofc_bar_glass" }, +# { label => "OFC Bar Sketch", value => "ofc_bar_sketch" }, +# { label => "OFC Horizontal Bar", value => "ofc_hbar" }, +# { label => "OFC Pie", value => "ofc_pie" }, { label => "RRD Graph Lines", value => "rrd_line" }, { label => "RRD Graph Stacks", value => "rrd_stack" } ); debian/patches/rsyslog-permissions.patch0000664000000000000000000000146412030256760015721 0ustar Description: Permissions for syslog are defined in main rsyslog.conf, minor rename of directory for local work to remove local Author: James Page Forwarded: no Index: octopussy-1.0~rc3/etc/rsyslog.d/10-octopussy.conf =================================================================== --- octopussy-1.0~rc3.orig/etc/rsyslog.d/10-octopussy.conf 2011-08-03 12:33:44.363814545 +0100 +++ octopussy-1.0~rc3/etc/rsyslog.d/10-octopussy.conf 2011-08-03 12:34:54.053814593 +0100 @@ -2,12 +2,7 @@ #### GLOBAL DIRECTIVES FOR OCTOPUSSY #### ######################################### -$FileOwner root -$FileGroup adm -$FileCreateMode 0640 -$DirCreateMode 0750 -$Umask 0022 -$WorkDirectory /var/lib/octopussy/local/rsyslog +$WorkDirectory /var/lib/octopussy/rsyslog $CreateDirs on $MaxMessageSize 8k debian/patches/series0000664000000000000000000000007012030257646012036 0ustar rsyslog-permissions.patch remove-open-flash-chart.patch debian/postinst0000664000000000000000000000461212030256760011002 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # Source debconf library. . /usr/share/debconf/confmodule db_version 2.0 . /usr/share/dbconfig-common/dpkg/postinst.mysql dbc_generate_include=template:/etc/octopussy/conf/db.xml dbc_generate_include_owner="octopussy" dbc_generate_include_perms="640" dbc_generate_include_args="-U -o template_infile=/usr/share/doc/octopussy/db.xml" dbc_go octopussy $@ case "$1" in configure) # Create octopussy user if it doesn't exist. if ! id octopussy > /dev/null 2>&1 ; then adduser --system --no-create-home --group \ --disabled-password --quiet octopussy fi # Set permissions on octopussy owned directores chown -R octopussy:octopussy /var/lib/octopussy # Set permissions on config files that need rw chown -R octopussy:octopussy /etc/octopussy/conf # Octopussy FIFO creation (for Rsyslog) if [ ! -p /var/spool/octopussy/octo_fifo ]; then mkfifo /var/spool/octopussy/octo_fifo 2> /dev/null fi chown -R octopussy:octopussy /var/spool/octopussy /var/cache/octopussy # rsyslog is installed - restart to pickup octopussy config if [ -f /etc/rsyslog.conf ]; then # Set permissions on rsyslog owned directories for work chown -R syslog:adm /var/lib/octopussy/rsyslog # Restart rsyslog with new configuration if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d rsyslog restart else service rsyslog restart fi fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac db_stop # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0