--- icinga-1.13.3.orig/debian/.gitignore +++ icinga-1.13.3/debian/.gitignore @@ -0,0 +1,6 @@ +*.log +*.substvars +*.debhelper +files +tmp/ +icinga*/ --- icinga-1.13.3.orig/debian/README.Debian +++ icinga-1.13.3/debian/README.Debian @@ -0,0 +1,47 @@ +Welcome to the icinga package for Debian GNU/Linux! +Below are some debian-specific notes which may be of help to you. + +If you have questions about using/configuring nagios, you should probably +contact the nagios-users mailing list and NOT the maintainers: + + nagios-users@lists.sourceforge.net + +Of course we'd be happy to hear about any bugs you find, and are always +open to discussing any ideas you might have for improvement. you can +contact the debian icinga maintainers at: + + pkg-nagios-devel@lists.alioth.debian.org + +External Commands +^^^^^^^^^^^^^^^^^ +Icinga is not configured to look for external commands in the +default configuration as a security feature. To enable external +commands, you need to allow the web server write access to the +nagios command pipe. the simplest way of doing this is to +set check_external_commands=1 in your Icinga configuration, +and then change the permissions in a way which will be maintained +across package upgrades (otherwise dpkg will overwrite your +permission changes). The following is the recommended approach: + +- activate external command checks in the Icinga configuration. this + can be done by setting check_external_commands=1 in the file + /etc/icinga/icinga.cfg. + +- perform the following commands to change directory permissions and + to make the changes permanent: + +service icinga stop +dpkg-statoverride --update --add nagios www-data 2710 /var/lib/icinga/rw +dpkg-statoverride --update --add nagios nagios 751 /var/lib/icinga +service icinga start + +Manually Providing / Overriding Authentication Configuration +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The default debian configuration for icinga+apache is to use +an htpasswd style file in /etc/icinga/htpasswd.users. if you +choose not to (or otherwise didn't) provide a password during package +configuration, we assume that you know what you're doing and will +not get in your way. however, if you don't know what you're doing, +you should either dpkg-reconfigure icinga-cgi and provide +a password, or read the fine manual for htpasswd(1). --- icinga-1.13.3.orig/debian/README.source +++ icinga-1.13.3/debian/README.source @@ -0,0 +1,2 @@ +We use dpatch for patch handling inside our icinga packages. Please see +/usr/share/doc/dpatch/README.source.gz (if you have installed dpatch) for documentation about dpatch. --- icinga-1.13.3.orig/debian/apache2.conf +++ icinga-1.13.3/debian/apache2.conf @@ -0,0 +1,24 @@ +# apache configuration for icinga + +ScriptAlias /cgi-bin/icinga /usr/lib/cgi-bin/icinga + +# Where the stylesheets (config files) reside +Alias /icinga/stylesheets /etc/icinga/stylesheets + +# Where the HTML pages live +Alias /icinga /usr/share/icinga/htdocs + + + Options FollowSymLinks + + DirectoryIndex index.html + + AllowOverride AuthConfig + Order Allow,Deny + Allow From All + + AuthName "Icinga Access" + AuthType Basic + AuthUserFile /etc/icinga/htpasswd.users + Require valid-user + --- icinga-1.13.3.orig/debian/changelog +++ icinga-1.13.3/debian/changelog @@ -0,0 +1,582 @@ +icinga (1.13.3-2ubuntu0.1) xenial; urgency=medium + + * Backport 'Classic UI: fixed menu disappear with jQuery 1.11+'. + Closes LP: #1593319. + - Do not backport the jQuery source change, as it's not strictly + necessary to fix the syntax; we depend on the system jQuery. + - https://dev.icinga.org/issues/11732 + - https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=d3158e0140b19bc578556d0172a5ec69c943d4d1;js=1 + + -- Nishanth Aravamudan Wed, 13 Jul 2016 17:47:34 -0700 + +icinga (1.13.3-2) unstable; urgency=medium + + * [9f7081e] Add myself as uploader + * [4877e88] Add missing sources for jquery-ui (Closes: #788723) + * [8522150] Override mis-detected missing source + + -- Markus Frosch Wed, 30 Dec 2015 12:50:51 +0100 + +icinga (1.13.3-1) unstable; urgency=medium + + * [8197b77] Imported Upstream version 1.13.3 + + -- Alexander Wirt Wed, 15 Jul 2015 15:27:22 +0200 + +icinga (1.13.2-1) unstable; urgency=medium + + * [d7ee3a5] Imported Upstream version 1.13.2 + * [af0ed78] Install new database schema + * [7349514] Add turkish debconf translation. (Closes: #760330) + * [500332d] Update 52_icinga.cfg-debianize + + -- Alexander Wirt Sat, 13 Jun 2015 08:15:35 +0200 + +icinga (1.12.2-2) experimental; urgency=medium + + * [17f0a2c] Fix plugin package name + + -- Alexander Wirt Sat, 14 Mar 2015 07:42:11 +0100 + +icinga (1.12.2-1) experimental; urgency=medium + + * [ffdb896] Imported Upstream version 1.12.2 + * [b357b73] Prefer monitoring-plugins over nagios-plugins + * [0d3040d] Imported Upstream version 1.12.0 + * [09bf1ee] Install 1.12.0 sql db upgrades + + -- Alexander Wirt Thu, 12 Mar 2015 14:02:59 +0100 + +icinga (1.11.6-1) unstable; urgency=medium + + * [67f8e61] Imported Upstream version 1.11.6 + * [cea2d5d] Install schema upgrades + * [677ebfd] Check for existance of resources.cfg before setting permissions. + (Closes: #757103) + + -- Alexander Wirt Thu, 07 Aug 2014 13:49:19 +0200 + +icinga (1.11.5-1) unstable; urgency=medium + + * [2098d80] Imported Upstream version 1.11.5 + * [cef043d] bump standards version + + -- Alexander Wirt Fri, 20 Jun 2014 15:25:10 +0200 + +icinga (1.11.4-1) unstable; urgency=medium + + * [4b8b43e] Update copyright file (Closes: #748015) + * [f87dd9b] Imported Upstream version 1.11.4 + * [28a3f90] Remove obsolete patch 96_fix_postgres_11.3_upgrade.dpatch + + -- Alexander Wirt Thu, 29 May 2014 17:38:05 +0200 + +icinga (1.11.3-3) unstable; urgency=medium + + * [9d1836b] Check if apache init script exists before invoking it. + Thanks to Georg Schönberg for bringing this up + * [e315571] Fix postgresql upgrade script for 1.11.3 (Closes: #749581) + + -- Alexander Wirt Wed, 28 May 2014 14:48:44 +0200 + +icinga (1.11.3-2) unstable; urgency=medium + + * [b8c228e] Install schema for 1.11.3 + + -- Alexander Wirt Wed, 21 May 2014 14:10:22 +0200 + +icinga (1.11.3-1) unstable; urgency=medium + + * [ffe47a4] Imported Upstream version 1.11.3 + - Remove libtap and JSON_checker_lib.c due to + license conflicts (Icinga bugs #6022 and 6023) + + -- Alexander Wirt Mon, 12 May 2014 22:12:13 +0200 + +icinga (1.11.1-1) unstable; urgency=high + + * [a8a977f] Imported Upstream version 1.11.1 + - Fix bufferoverflows in classic-ui + (This is a fix for CVE-2014-2386) + + -- Alexander Wirt Sun, 30 Mar 2014 13:33:43 +0200 + +icinga (1.11.0-2) unstable; urgency=medium + + [ Alexander Wirt ] + * [469b573] Implement initial support for the cgi/cgi-bin split + * [807e01e] Fix database schema installation + + [ Markus Frosch ] + * [0c1c1c4] Added tilde to dependencies of -cgi for rebuilt versions + * [bc7d732] Fixed cleanup of jquery{,-ui} in installed files + * [5b5593c] Moved libjs-jquery* deps and links to icinga-cgi-bin + + -- Alexander Wirt Mon, 24 Mar 2014 14:06:34 +0100 + +icinga (1.11.0-1) unstable; urgency=medium + + * [c35f31c] Imported Upstream version 1.11.0 + * [7a31e4e] Install 1.11.0 db upgrade files + + -- Alexander Wirt Thu, 13 Mar 2014 13:14:09 +0100 + +icinga (1.10.3-1) unstable; urgency=high + + * [b84b83c] Update watch file for github + * [0ac07f7] Imported Upstream version 1.10.3 + - include source for jquery and timepicker + (Closes: #736727) + - Check for overflows in cmd.cgi + (This is a fix for CVE-2014-1878) + + -- Alexander Wirt Fri, 14 Feb 2014 09:34:15 +0100 + +icinga (1.10.2-1) unstable; urgency=medium + + * [4b9faee] Imported Upstream version 1.10.2 + + -- Alexander Wirt Sun, 15 Dec 2013 22:02:40 +0100 + +icinga (1.10.1-1) unstable; urgency=low + + * [2b8968a] Install sql upgrade files for 1.10 + * [4ef9215] Add versioned dep to jquery-ui to reenable calendar + * [9fbc042] Imported Upstream version 1.10.1 + - fix problems in postinst (Closes: #728245) + * [27e8455] Update sql file installation + + -- Alexander Wirt Wed, 06 Nov 2013 09:07:00 +0100 + +icinga (1.10.0-1) unstable; urgency=low + + * [3c852fa] Fix typo + * [1e3b0a9] Don't set -e in icingas initscript (Closes: #722261) + * [b2e5497] Enable cgi module for apache 2.4 + * [f9e8662] Imported Upstream version 1.10.0 + * [604c4f6] Bump standards version + + -- Alexander Wirt Thu, 24 Oct 2013 17:26:19 +0200 + +icinga (1.9.3-2) unstable; urgency=low + + * [7e2d81e] Update README.Debian + * [35c5ef6] Fix htpasswd handling on apache < 2.4 + + -- Alexander Wirt Wed, 24 Jul 2013 19:47:41 +0200 + +icinga (1.9.3-1) unstable; urgency=low + + * [db397b3] Remove obsolete debconf po templates + * [de82eae] Don't give the htpasswd password on the commandline + * [d031d94] Fix path to idoutils example config (Closes: #714240) + * [940f7de] Move apache config to /usr/share + * [7b2ec2a] Imported Upstream version 1.9.2 + - Don't crash with fuzzy input (Closes: #716027) + * [e188314] Imported Upstream version 1.9.3 + + -- Alexander Wirt Fri, 19 Jul 2013 21:31:19 +0200 + +icinga (1.9.1-2) unstable; urgency=low + + * [9c53a84] Fix dependency on libgd3 (Closes: #710839) + + -- Alexander Wirt Mon, 03 Jun 2013 08:08:21 +0200 + +icinga (1.9.1-1) unstable; urgency=low + + * [fe88365] Fix dependency on on icinga-doc + * [e07a105] Imported Upstream version 1.9.1 + * [ce07681] Depend on new libgd3 + + -- Alexander Wirt Thu, 23 May 2013 06:50:50 +0200 + +icinga (1.9.0-1) unstable; urgency=low + + * [006e77b] Allow www-data to read those archived logs + * [c732717] Don't destroy symlinked icinga configs with sed (Closes: #698137) + * [4a63fdf] install jquery-ui + * [d905069] Use bundled jquery-ui version + * [8110db1] Imported Upstream version 1.9.0 + - Event profiling is now deprecated (Closes: #614356) + * [91e3d0b] Install 1.9.0 sql files + * [7d35822] Move stylesheets to cgi (Closes: #682334) + * [914bc33] Use debians jquery-ui and fix timepicker locations + * [51e1d00] Improve errorhandling in initscript (Closes: #698139) + * [0ed174a] Add indonesian debconf translation. + Thanks to Mahyuddin Susanto (Closes: #695651) + * [bbaa9f6] Recommend icinga-docs in the icinga metapackage (Closes: #682359) + + -- Alexander Wirt Tue, 07 May 2013 16:18:34 +0200 + +icinga (1.8.4-1) experimental; urgency=high + + * [a466a1e] Replace /etc/init.d with service + * [eb7a611] Imported Upstream version 1.8.4 + - This release fixes CVE-2012-6096 - buffer overflows + in cgis. (Closes: #697931) + + -- Alexander Wirt Mon, 14 Jan 2013 06:22:39 +0100 + +icinga (1.8.3-1) experimental; urgency=low + + * [5330072] Imported Upstream version 1.8.3 + + -- Alexander Wirt Thu, 13 Dec 2012 21:41:33 +0100 + +icinga (1.8.2-1) experimental; urgency=low + + * [868de52] Imported Upstream version 1.8.2 + + -- Alexander Wirt Wed, 28 Nov 2012 17:25:15 +0100 + +icinga (1.8.1-2) experimental; urgency=low + + * [4fb9f91] Fix broker filename in idoutils README.Debian. + Thanks to Michael Friedrich catching this error + + -- Alexander Wirt Sun, 04 Nov 2012 21:57:50 +0100 + +icinga (1.8.1-1) experimental; urgency=low + + * [5947e03] Remove useless echo in do_stop of icingas initscript + * [fb9c4cb] Imported Upstream version 1.8.1 + + -- Alexander Wirt Thu, 25 Oct 2012 07:04:55 +0200 + +icinga (1.8.0-1) experimental; urgency=low + + * [5c6b2b6] Remove build-dep on iputils-ping and do a wrap-and-sort + * [3e31fec] Even more wrap-and-sort + * [0c39b06] Imported Upstream version 1.8.0 + - Fix Conflicting declarations of variable highlight_table_rows + (Closes: #688459) + - Remove buggy sql creation script (never used by packages) + (Closes: #683320) + * [9752230] Remove obsolete patch 80_fix_dbd_handling.dpatch + * [74ea069] Remove obsolete patch 99_fix_epn.dpatch + * [ebc54b8] jquery was updated + * [c3c04db] contexthelp was removed from upstream + * [b876c8c] Fix jquery link + * [eec91d0] Don't ask question if there is no config (Closes: #689601) + * [ce7f089] Fix mainurl + * [7c8cb8d] Add indonesian translation (Closes: #677118) + * [c0ddb94] Update Polish translation (Closes: #678155) + * [7eccc2b] Make apache directory match more strict (Closes: #679476) + * [b0d4ee9] Handle /var/run/icinga on our own (Closes: #689551) + * [e604f8c] Install update sql files for idoutils + + -- Alexander Wirt Fri, 19 Oct 2012 15:58:46 +0200 + +icinga (1.7.2-1) experimental; urgency=low + + * [4394714] Imported Upstream version 1.7.2 + - Fix duplicated events (Closes: #686036) + * [683ca22] Cherrypick epn fix from git + + -- Alexander Wirt Wed, 29 Aug 2012 21:54:35 +0200 + +icinga (1.7.1-2) unstable; urgency=low + + [ Alexander Wirt ] + * [6dee566] Start after postgresql or mysql + + [ Christian Perrier ] + * Debconf templates and debian/control reviewed by the debian-l10n- + english team as part of the Smith review project. Closes: #674024 + * [Debconf translation updates] + * Debconf templates and debian/control reviewed by the debian-l10n- + english team as part of the Smith review project. Closes: #674024 + * [Debconf translation updates] + * Czech (Martin Sin). Closes: #677033 + * Swedish (Martin Bagge / brother). Closes: #677064 + * Russian (Yuri Kozlov). Closes: #677178 + * Slovak (Slavko). Closes: #677240 + * Portuguese (Américo Monteiro). Closes: #677316 + * Dutch; (Jeroen Schot). Closes: #677357 + * Danish (Joe Hansen). Closes: #677808 + * Italian (Luca Monducci). Closes: #677841 + * German (Holger Wansing). Closes: #677914 + * French (Steve Petruzzello). Closes: #677952 + * Galician (). Closes: #678913 + * Spanish; (Omar Campagne). Closes: #678944 + + -- Alexander Wirt Fri, 29 Jun 2012 23:02:35 +0200 + +icinga (1.7.1-1) unstable; urgency=low + + * [b64d290] Imported Upstream version 1.7.1 + * [bcba7da] 80_fix_typos_in_eventhandlers is now upstream + * [abd8b59] icinga 1.7.0 should work with Postgresql >= 9.0 + * [29506e2] Add a patch for better handling of mysql and + pgsql default in ido2b + * [29d6787] Check if ucf really exists during purge + (Closes: #677064) + + -- Alexander Wirt Thu, 21 Jun 2012 00:09:52 +0200 + +icinga (1.7.0-4) unstable; urgency=low + + * [704a3bc] Quote version for dpkg-compare + * [6e25045] Add patch to fix typo in handle-master-proc-event script + (Closes: #676586) + + -- Alexander Wirt Sat, 09 Jun 2012 08:37:42 +0200 + +icinga (1.7.0-3) unstable; urgency=low + + * [7c55fce] Install plpgsql as early as possible into postgres + (Closes: #675536) + + -- Alexander Wirt Sat, 02 Jun 2012 09:06:09 +0200 + +icinga (1.7.0-2) unstable; urgency=medium + + * [57cc621] Fix example path for idoutils broker + * [c27a750] Depend on dpkg >= 1.16.1 for s-s-d --status (Closes: #675041) + * [24e3fc9] Move old retention.dat to new locatation (Closes: #675046) + * [f365185] make icinga-core.postinst a little bit nicer and more verbose + * [e5fd639] Improve retention.dat move + * [4b2e286] Don't overwrite existing files during retention.dat move + * [d3ba784] Fix status.dat location for cgi (Closes: #671908) + * [37d3c92] Remove trailing / in configure (Closes: #675043) + * [c57ac90] Fix filenames for dbconfig-common sql files (Closes: #675277) + + -- Alexander Wirt Fri, 01 Jun 2012 10:12:50 +0200 + +icinga (1.7.0-1) unstable; urgency=low + + * [8ae8e90] Imported Upstream version 1.7.0~beta1 + * [e20c16d] 80_fix_tac_json is now upstream + * [ab9a6aa] Update rules file for 1.7 + * [e17e241] Add NEWS file for idoutils broker move + * [2f26c8d] Update icinga.cfg patch + * [2ebdf35] Update idoutils docs + * [5e02b2e] Fix tempfile path + * [22b4070] Fix status.dat location + * [a938089] Remove not used conf.d from icinga.cfg + * [64b812c] Fix ido2db socket path + * [c3664d6] Imported Upstream version 1.7.0 + * [9364846] Bump standards version + * [7d6f5f4] Cleanup config.log + + -- Alexander Wirt Tue, 15 May 2012 23:38:27 +0200 + +icinga (1.6.1-3) unstable; urgency=medium + + [ Daniel Baumann ] + * [548ece5] Adding debconf handling for icinga check_external_commands option (Closes: #592738). + + [ Alexander Wirt ] + * [d3c349e] Add alternative for libdbi-dev + * [2d0c4bb] Fix broker location in ido example config and enhance README + * [4416c9c] Always display debconf note for external command + * [9dec07f] Build-depend on libpng-dev (Closes: #662374) + * [dfacf10] Add buildalternative for libpng + * [c4a5675] Update translationfiles + * [181d023] Enable hardening buildflags (Closes: #656866) + * [6ec83b0] Fix json output of tac.cgi (Closes: #663224) + * [3fc1a26] Fix endlessloop in idoutils during installation (Closes: #652647) + * [6ff2be5] Fix postgres escaping with postgres 9.1 (Closes: #659675) + * [4c7bac5] Fix db upgrades with postgres (Closes: #663440) + * [46dfeea] Add prepared dbc debug flag into idoutils.postinst + * [495fe20] Install plpgsql for postgres < 9.0 (Closes: #659675) + * [b6bba3b] Remove stale socket on daemon startup and start idoutils before icinga + (Closes: #670201, #663678) + * [309ba7a] Fix db upgrade for postgres (Closes: #641391) + * [c1c3991] Add postgres admin functions for plperl (Closes: #659675) + * [6230476] Update polish and dutch po translations (Closes: #659252, #670365) + * [dfef271] don't install sample configs for idoutils (Closes: #661797) + * [3263424] improve apache configuration. + Thanks to Christoph Anton Mitterer for the patch (Closes: #659896) + + -- Alexander Wirt Fri, 04 May 2012 08:04:12 +0200 + +icinga (1.6.1-2) unstable; urgency=low + + * [56d53d9] fix template for ido2db_check_proc.cfg + * [200d89f] Depend on libdbi-dev (Closes: #653277) + * [69370bc] Add indonesian po translation. + Thanks to Mahyuddin Susanto for the translation (Closes: #654159) + + -- Alexander Wirt Tue, 03 Jan 2012 16:51:45 +0100 + +icinga (1.6.1-1) unstable; urgency=low + + * [0e847f9] Add versioned dep for jquery + * [cf78552] Imported Upstream version 1.6.1 + + -- Alexander Wirt Fri, 02 Dec 2011 15:58:11 +0100 + +icinga (1.6.0-1) unstable; urgency=low + + * [0c69c1a] Fix permissions and remove *.in in contrib files (Closes: #648735) + * [a34927a] Refresh 51_commands.cfg-debianize.dpatch + * [0808c54] Remove mootools + * [0c2f21d] Add changelog + * [0ac1d13] phpapi is now deprecated - removed + * [1edf848] Cleanup javascript + * [ec0f684] Imported Upstream version 1.6.0 + - removes git metadata in upstream tarball + (Closes: #613787) + * [b48970b] Add slovak po translation. + Thanks to Slavko for the translation (Closes: #641985) + + -- Alexander Wirt Wed, 30 Nov 2011 15:52:07 +0100 + +icinga (1.5.1-1) unstable; urgency=low + + * [932cd5e] Imported Upstream version 1.5.1 + + -- Alexander Wirt Sun, 11 Sep 2011 11:16:37 +0200 + +icinga (1.5.0-3) unstable; urgency=low + + * [37c76c6] Fix p1 location + + -- Alexander Wirt Mon, 05 Sep 2011 21:34:59 +0200 + +icinga (1.5.0-2) unstable; urgency=low + + Brown paper bag release. My refresh of icinga.cgi failed... + + * [dbd8173] Fix paths for moste important files + * [dab43df] Re-nable embedded perl + * [85aa90a] Re-enable environment macros + + -- Alexander Wirt Fri, 26 Aug 2011 21:50:17 +0200 + +icinga (1.5.0-1) unstable; urgency=low + + * [06735ad] Imported Upstream version 1.5.0 (Closes: #639271) + * [63670cd] Update 51_commands.cfg-debianize.dpatch + * [c721a5e] Refresh 52_icinga.cfg-debianize.dpatch + * [13699c0] Remove 60_fix_p1.pl_patch_mini_epn (now handled in configure) + * [818764e] Improve description (Closes: #628204) + + -- Alexander Wirt Fri, 26 Aug 2011 08:20:15 +0200 + +icinga (1.4.2-1) unstable; urgency=low + + * New upstream version 1.4.2 + - Fix xss bugs (Closes: #629131) + These issues are liste at mitre as: + CVE-2011-2179 and CVE-2011-1523 + + -- Alexander Wirt Thu, 30 Jun 2011 10:03:39 +0200 + +icinga (1.4.1-1) unstable; urgency=low + + * Remove useless patch + * Imported Upstream version 1.4.1 + - Fixes CVE-2011-2179 + - Fixes CVE-2011-1523 + * Update 70_fix_eventhandler_paths.dpatch + + -- Alexander Wirt Wed, 08 Jun 2011 22:38:28 +0200 + +icinga (1.4.0-2) unstable; urgency=low + + * Install /etc/icinga/modules in -common + * Remove useles patch + * Imported Upstream version 1.4.1 + + -- Alexander Wirt Wed, 08 Jun 2011 22:07:53 +0200 + +icinga (1.4.0-1) unstable; urgency=low + + * New upstream version + * Bump standards version (no changes) + + -- Alexander Wirt Sat, 14 May 2011 08:26:37 +0200 + +icinga (1.3.0-1) unstable; urgency=low + + * new upstream version + + -- Alexander Wirt Sun, 13 Feb 2011 08:04:21 +0100 + +icinga (1.2.1-2) unstable; urgency=low + + * Fix symlink to mootols + + -- Alexander Wirt Mon, 01 Nov 2010 11:02:00 +0100 + +icinga (1.2.1-1) unstable; urgency=low + + * New upstream release + * Add apache vhost example (Closes: #599555) + + -- Alexander Wirt Mon, 25 Oct 2010 08:26:07 +0200 + +icinga (1.2-1) unstable; urgency=low + + * New upstream version + - Remove 80_remove_daemoncheck_cgi (now upstream) + * bump standards version (no changes) + * Icinga Plugins does not exist + * Fix typo in watch file + * Add japanese debconf translation (Closes: #598368) + Thanks Hideki Yamane + + -- Alexander Wirt Mon, 09 Aug 2010 18:23:06 +0200 + +icinga (1.0.2-1) unstable; urgency=low + + * New upstream version + * Bump standards version (no changes needed) + * Fix eventhandler paths + * Remove 40_fix_spurious_dollar_signs_added_to_command_lines - + now upstream + + -- Alexander Wirt Sat, 03 Jul 2010 12:28:08 +0200 + +icinga (1.0.1-4) unstable; urgency=low + + * Fix mini_epn p1 path + * Backport several ido2db fixes from git + * Debconf templates and debian/control reviewed by the debian-l10n- + english team as part of the Smith review project. Closes: #579934 + * [Debconf translation updates] + * Spanish (Omar Campagne). Closes: #579656,#581823 + * Czech (Martin Sin). Closes: #580471 + * Basque (Iñaki Larrañaga Murgoitio). Closes: #580478 + * Danish (Joe Hansen). Closes: #580571,#580572 + * Brazilian Portuguese (Bruno Gurgel Gomes de Oliveira). + Closes: #580656, #581562 + * Russian (Yuri Kozlov). Closes: #580765 + * Italian (Luca Monducci). Closes: #580768 + * Vietnamese (Clytie Siddall). Closes: #581538 + * Portuguese (Américo Monteiro). Closes: #582319 + * German (Matthias Julius). Closes: #582348 + * French (Steve Petruzzello). Closes: #582643 + * Swedish (Martin Bagge). Closes: #582699 + + -- Alexander Wirt Tue, 13 Apr 2010 11:52:52 +0200 + +icinga (1.0.1-3) unstable; urgency=low + + * its nagios-plugins, not icinga-plugins + * Use alternatives for mini_epn (Closes: #577493) + * Don't depend on non-existing virtual facility $icinga + (Closes: #577166) + * Update french po translation (Closes: #577152) + * Update russian po translation (Closes: #577170) + * Update swedish po translation (Closes: #577553) + * Update portuguese po translation (Closes: #577137) + + -- Alexander Wirt Thu, 08 Apr 2010 19:58:16 +0200 + +icinga (1.0.1-2) unstable; urgency=low + + * Fix maintainer address + * Disable context sensitive help + * Recommend php5-mysql | php5-pgsql for the phpapi package + + -- Alexander Wirt Wed, 07 Apr 2010 14:31:39 +0200 + +icinga (1.0.1-1) unstable; urgency=low + + * Initial packaging (Closes: #573880) + + -- Alexander Wirt Sat, 27 Mar 2010 09:59:41 +0100 --- icinga-1.13.3.orig/debian/compat +++ icinga-1.13.3/debian/compat @@ -0,0 +1 @@ +7 --- icinga-1.13.3.orig/debian/conf.d/contacts_icinga.cfg +++ icinga-1.13.3/debian/conf.d/contacts_icinga.cfg @@ -0,0 +1,46 @@ +############################################################################### +# contacts.cfg +############################################################################### + + + +############################################################################### +############################################################################### +# +# CONTACTS +# +############################################################################### +############################################################################### + +# In this simple config file, a single contact will receive all alerts. + +define contact{ + contact_name root + alias Root + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,r + service_notification_commands notify-service-by-email + host_notification_commands notify-host-by-email + email root@localhost + } + + + +############################################################################### +############################################################################### +# +# CONTACT GROUPS +# +############################################################################### +############################################################################### + +# We only have one contact in this simple configuration file, so there is +# no need to create more than one contact group. + +define contactgroup{ + contactgroup_name admins + alias Nagios Administrators + members root + } --- icinga-1.13.3.orig/debian/conf.d/extinfo_icinga.cfg +++ icinga-1.13.3/debian/conf.d/extinfo_icinga.cfg @@ -0,0 +1,13 @@ +## +## Extended Host and Service Information +## + +define hostextinfo{ + hostgroup_name debian-servers + notes Debian GNU/Linux servers +# notes_url http://webserver.localhost.localdomain/hostinfo.pl?host=netware1 + icon_image base/debian.png + icon_image_alt Debian GNU/Linux + vrml_image debian.png + statusmap_image base/debian.gd2 + } --- icinga-1.13.3.orig/debian/conf.d/generic-host_icinga.cfg +++ icinga-1.13.3/debian/conf.d/generic-host_icinga.cfg @@ -0,0 +1,19 @@ +# Generic host definition template - This is NOT a real host, just a template! + +define host{ + name generic-host ; The name of this host template + notifications_enabled 1 ; Host notifications are enabled + event_handler_enabled 1 ; Host event handler is enabled + flap_detection_enabled 1 ; Flap detection is enabled + failure_prediction_enabled 1 ; Failure prediction is enabled + process_perf_data 1 ; Process performance data + retain_status_information 1 ; Retain status information across program restarts + retain_nonstatus_information 1 ; Retain non-status information across program restarts + check_command check-host-alive + max_check_attempts 10 + notification_interval 0 + notification_period 24x7 + notification_options d,u,r + contact_groups admins + register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! + } --- icinga-1.13.3.orig/debian/conf.d/generic-service_icinga.cfg +++ icinga-1.13.3/debian/conf.d/generic-service_icinga.cfg @@ -0,0 +1,26 @@ +# generic service template definition +define service{ + name generic-service ; The 'name' of this service template + active_checks_enabled 1 ; Active service checks are enabled + passive_checks_enabled 1 ; Passive service checks are enabled/accepted + parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) + obsess_over_service 1 ; We should obsess over this service (if necessary) + check_freshness 0 ; Default is to NOT check service 'freshness' + notifications_enabled 1 ; Service notifications are enabled + event_handler_enabled 1 ; Service event handler is enabled + flap_detection_enabled 1 ; Flap detection is enabled + failure_prediction_enabled 1 ; Failure prediction is enabled + process_perf_data 1 ; Process performance data + retain_status_information 1 ; Retain status information across program restarts + retain_nonstatus_information 1 ; Retain non-status information across program restarts + notification_interval 0 ; Only send notifications on status change by default. + is_volatile 0 + check_period 24x7 + normal_check_interval 5 + retry_check_interval 1 + max_check_attempts 4 + notification_period 24x7 + notification_options w,u,c,r + contact_groups admins + register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! + } --- icinga-1.13.3.orig/debian/conf.d/hostgroups_icinga.cfg +++ icinga-1.13.3/debian/conf.d/hostgroups_icinga.cfg @@ -0,0 +1,31 @@ +# Some generic hostgroup definitions + +# A simple wildcard hostgroup +define hostgroup { + hostgroup_name all + alias All Servers + members * + } + +# A list of your Debian GNU/Linux servers +define hostgroup { + hostgroup_name debian-servers + alias Debian GNU/Linux Servers + members localhost + } + +# A list of your web servers +define hostgroup { + hostgroup_name http-servers + alias HTTP servers + members localhost + } + +# A list of your ssh-accessible servers +define hostgroup { + hostgroup_name ssh-servers + alias SSH servers + members localhost + } + + --- icinga-1.13.3.orig/debian/conf.d/localhost_icinga.cfg +++ icinga-1.13.3/debian/conf.d/localhost_icinga.cfg @@ -0,0 +1,59 @@ +# A simple configuration file for monitoring the local host +# This can serve as an example for configuring other servers; +# Custom services specific to this host are added here, but services +# defined in icinga-common_services.cfg may also apply. +# + +define host{ + use generic-host ; Name of host template to use + host_name localhost + alias localhost + address 127.0.0.1 + } + +# Define a service to check the disk space of the root partition +# on the local machine. Warning if < 20% free, critical if +# < 10% free space on partition. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Disk Space + check_command check_all_disks!20%!10% + } + + + +# Define a service to check the number of currently logged in +# users on the local machine. Warning if > 20 users, critical +# if > 50 users. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Current Users + check_command check_users!20!50 + } + + +# Define a service to check the number of currently running procs +# on the local machine. Warning if > 250 processes, critical if +# > 400 processes. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Total Processes + check_command check_procs!250!400 + } + + + +# Define a service to check the load on the local machine. + +define service{ + use generic-service ; Name of service template to use + host_name localhost + service_description Current Load + check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0 + } --- icinga-1.13.3.orig/debian/conf.d/services_icinga.cfg +++ icinga-1.13.3/debian/conf.d/services_icinga.cfg @@ -0,0 +1,17 @@ +# check that web services are running +define service { + hostgroup_name http-servers + service_description HTTP + check_command check_http + use generic-service + notification_interval 0 ; set > 0 if you want to be renotified +} + +# check that ssh services are running +define service { + hostgroup_name ssh-servers + service_description SSH + check_command check_ssh + use generic-service + notification_interval 0 ; set > 0 if you want to be renotified +} --- icinga-1.13.3.orig/debian/conf.d/timeperiods_icinga.cfg +++ icinga-1.13.3/debian/conf.d/timeperiods_icinga.cfg @@ -0,0 +1,50 @@ +############################################################################### +# timeperiods.cfg +############################################################################### + +# This defines a timeperiod where all times are valid for checks, +# notifications, etc. The classic "24x7" support nightmare. :-) + +define timeperiod{ + timeperiod_name 24x7 + alias 24 Hours A Day, 7 Days A Week + sunday 00:00-24:00 + monday 00:00-24:00 + tuesday 00:00-24:00 + wednesday 00:00-24:00 + thursday 00:00-24:00 + friday 00:00-24:00 + saturday 00:00-24:00 + } + +# Here is a slightly friendlier period during work hours +define timeperiod{ + timeperiod_name workhours + alias Standard Work Hours + monday 09:00-17:00 + tuesday 09:00-17:00 + wednesday 09:00-17:00 + thursday 09:00-17:00 + friday 09:00-17:00 + } + +# The complement of workhours +define timeperiod{ + timeperiod_name nonworkhours + alias Non-Work Hours + sunday 00:00-24:00 + monday 00:00-09:00,17:00-24:00 + tuesday 00:00-09:00,17:00-24:00 + wednesday 00:00-09:00,17:00-24:00 + thursday 00:00-09:00,17:00-24:00 + friday 00:00-09:00,17:00-24:00 + saturday 00:00-24:00 + } + +# This one is a favorite: never :) +define timeperiod{ + timeperiod_name never + alias Never + } + +# end of file --- icinga-1.13.3.orig/debian/control +++ icinga-1.13.3/debian/control @@ -0,0 +1,239 @@ +Source: icinga +Section: net +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Nagios Maintainer Group +Uploaders: Alexander Wirt , + Jan Wagner , + Markus Frosch +Standards-Version: 3.9.6 +Vcs-Browser: http://git.debian.org/?p=pkg-nagios/icinga.git +Vcs-Git: git://git.debian.org/pkg-nagios/icinga.git +Build-Depends: autotools-dev, + debhelper (>= 7), + dpatch (>= 2.0.10), + dpkg-dev (>= 1.13.19), + libdbi-dev | libdbi0-dev, + libgd-dev | libgd2-noxpm-dev (>= 2.0.1) | libgd2-xpm-dev (>= 2.0.1), + libperl-dev, + libpng-dev | libpng12-dev, + po-debconf + +Package: icinga-common +Architecture: all +Depends: adduser, + bsd-mailx | mailx, + coreutils (>= 4.5.3), + dpkg (>= 1.16.1), + lsb-base (>= 3.0-6), + monitoring-plugins-basic | nagios-plugins-basic, + ucf (>= 0.28), + ${misc:Depends}, + ${perl:Depends} +Recommends: monitoring-plugins | nagios-plugins +Description: host and network monitoring system - support files + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package contains the common files for all Icinga packages. + +Package: icinga-cgi +Architecture: any +Depends: adduser, + apache2-utils, + coreutils (>= 4.5.3), + icinga-cgi-bin (= ${binary:Version}), + icinga-common (= ${source:Version}), + ucf (>= 0.28), + ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends} +Recommends: apache2 | httpd, nagios-images (>> 0.1) +Description: host and network monitoring system - CGI scripts + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package provides CGI configuration files and the required dependencys. + +Package: icinga-cgi-bin +Architecture: any +Replaces: icinga-cgi (<< 1.11.0-2~), +Breaks: icinga-cgi (<< 1.11.0-2~), +Depends: libjs-jquery (>= 1.4.2-1~), + libjs-jquery-ui (>= 1.10.1+dfsg-1~), + ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends} +Recommends: apache2 | httpd, nagios-images (>> 0.1) +Description: host and network monitoring system - CGI scripts + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package provides CGI binarys and HTML files. + +Package: icinga-idoutils +Architecture: any +Depends: dbconfig-common, + icinga-common (= ${source:Version}), + libdbd-mysql | libdbd-pgsql, + lsb-base (>= 3.0-6), + ucf, + ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends} +Recommends: mysql-client | postgresql-client +Description: host and network monitoring system - icinga-dataobjects support + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package contains icinga-dataobjects support which makes it possible + to import Icinga status information messages into an SQL database. + +Package: icinga +Architecture: any +Depends: icinga-cgi (= ${binary:Version}), + icinga-core (= ${binary:Version}), + ${misc:Depends} +Recommends: icinga-doc +Suggests: nagios-nrpe-plugin +Description: host and network monitoring system - metapackage + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port; + * plugin interface to allow for user-developed service checks + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This is a metapackage which depends on the Icinga core and the web + front-end. + +Package: icinga-core +Architecture: any +Depends: icinga-common (= ${source:Version}), + ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends} +Suggests: nagios-nrpe-plugin +Replaces: icinga +Description: host and network monitoring system - core files + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks; + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package provides the core of Icinga without the web front-end. + +Package: icinga-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} +Description: host and network monitoring system - documentation + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks; + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package provides the documentation for Icinga. + +Package: icinga-dbg +Section: debug +Priority: extra +Architecture: any +Depends: icinga-core (= ${binary:Version}), + ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends} +Description: host and network monitoring system - debug files + Icinga is a modular monitoring framework for hosts, services, and + networks, based on the Nagios project. It is designed to be easy to + understand and modify to fit any need. + . + Features include: + * monitoring of network services via ping, SMTP, POP3, HTTP, NNTP, or + TCP port + * plugin interface to allow for user-developed service checks; + * contact notifications when problems occur and get resolved (via + email, pager, or user-defined method) + * support for proactive problem resolution (handlers can be defined to + be run during service or host events) + * web output: current status, notifications, problem history, log + file, etc. + . + This package provides gdb debugging symbols for the Icinga binaries and + the mini_epn tool which can help in debugging Icinga problems. --- icinga-1.13.3.orig/debian/copyright +++ icinga-1.13.3/debian/copyright @@ -0,0 +1,62 @@ +This package was debianized by Alexander Wirt . + +It was downloaded from http://www.icinga.org/ + +Current Debian Maintainers: The nagios packaging packaging team + http://alioth.debian.org/projects/pkg-nagios/ + +Mailing-List: pkg-nagios-devel@lists.alioth.debian.org + +Upstream Author: Ethan Galstad + Icinga Development Team (info@icinga.org) + +Copyright (c) 1999-2009 Ethan Galstad (nagios@nagios.org) +Copyright (c) 2009-2010 Icinga Development Team (info@icinga.org) + +License: + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + +p1.pl is Copyright 2007 by Stanley Hopcroft + +This program is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. + +On Debian systems, the complete text of the Artistic +License, can be found in /usr/share/common-licenses/Artistic. + +The file common/snprintf.c is Copyright 1995 by Patrick Powell + +This code is based on code written by Patrick Powell (papowell@astart.com) +It may be used for any purpose as long as this notice remains intact +on all source code distributions + + +html/js/jquery-1.8.0.js and jquery-1.8.0.min.js is Copyright 2012 by jQuery +Foundation and other contributors. html/js/jquery.dd.js and html/js/jquery.dd.min.js is Copyright (c) 2009 Marghoob Suleman, http://www.marghoobsuleman.com/. + +The files are released under the MIT License: + +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 THE +SOFTWARE. + --- icinga-1.13.3.orig/debian/db/admin/pgsql +++ icinga-1.13.3/debian/db/admin/pgsql @@ -0,0 +1,18 @@ +CREATE OR REPLACE FUNCTION public.create_plpgsql_language () + RETURNS TEXT + AS $$ + CREATE LANGUAGE plpgsql; + SELECT 'language plpgsql created'::TEXT; + $$ +LANGUAGE 'sql'; + +SELECT CASE WHEN + (SELECT true::BOOLEAN + FROM pg_language + WHERE lanname='plpgsql') + THEN + (SELECT 'language already installed'::TEXT) + ELSE + (SELECT public.create_plpgsql_language()) + END; +DROP FUNCTION public.create_plpgsql_language (); --- icinga-1.13.3.orig/debian/examples/apache_vhost.conf +++ icinga-1.13.3/debian/examples/apache_vhost.conf @@ -0,0 +1,25 @@ +#If you want to run icinga on your own subdomain, you can use this +#example as a starting point + + + + ServerName icinga.mydomain.com + + DocumentRoot /usr/share/icinga/htdocs + + ScriptAlias /cgi-bin/icinga /usr/lib/cgi-bin/icinga + + # Where the stylesheets (config files) reside + Alias /stylesheets /etc/icinga/stylesheets + + + Options FollowSymLinks + Order allow,deny + Allow from all + + + ErrorLog ${APACHE_LOG_DIR}/icinga.error.log + CustomLog ${APACHE_LOG_DIR}/icinga.access.log combined + + + --- icinga-1.13.3.orig/debian/icinga-cgi-bin.dirs +++ icinga-1.13.3/debian/icinga-cgi-bin.dirs @@ -0,0 +1,3 @@ +etc/icinga/stylesheets +usr/share/icinga/htdocs/ssi +usr/lib/cgi-bin --- icinga-1.13.3.orig/debian/icinga-cgi-bin.install +++ icinga-1.13.3/debian/icinga-cgi-bin.install @@ -0,0 +1,8 @@ +usr/lib/cgi-bin/* +usr/share/icinga/htdocs/*.html +usr/share/icinga/htdocs/jquery-ui-addon +usr/share/icinga/htdocs/images +usr/share/icinga/htdocs/js/* +usr/share/icinga/htdocs/media +usr/share/icinga/htdocs/robots.txt +usr/share/icinga/htdocs/stylesheets/* /etc/icinga/stylesheets/ --- icinga-1.13.3.orig/debian/icinga-cgi-bin.links +++ icinga-1.13.3/debian/icinga-cgi-bin.links @@ -0,0 +1,2 @@ +usr/share/javascript/jquery/jquery.min.js usr/share/icinga/htdocs/js/jquery-1.8.0.min.js +usr/share/javascript/jquery-ui usr/share/icinga/htdocs/jquery-ui --- icinga-1.13.3.orig/debian/icinga-cgi.config +++ icinga-1.13.3/debian/icinga-cgi.config @@ -0,0 +1,35 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_fget icinga/adminpassword seen || true +password_seen="$RET" + +if [ "$1" = "reconfigure" ]; then + password_seen=false +fi + +if [ "$password_seen" != "true" ]; then + # the passwords are reset at the end of every postinst run, + # however, they are left in the "seen" state so that the + # admin is not prompted for them at every upgrade. + while [ ! "$passwordsmatch" ]; do + #only ask for a password if no htpasswd exists + db_input high icinga/adminpassword || true + db_input high icinga/adminpassword-repeat || true + db_go || true + db_get icinga/adminpassword + p1="$RET" + db_get icinga/adminpassword-repeat + p2="$RET" + if [ "$p1" = "$p2" ]; then + passwordsmatch="yes" + else + db_fset icinga/adminpassword seen false + db_fset icinga/adminpassword-repeat seen false + db_fset icinga/adminpassword-mismatch seen false + db_input critical icinga/adminpassword-mismatch || true + fi + done +fi +db_go || true --- icinga-1.13.3.orig/debian/icinga-cgi.examples +++ icinga-1.13.3/debian/icinga-cgi.examples @@ -0,0 +1 @@ +debian/apache2.conf --- icinga-1.13.3.orig/debian/icinga-cgi.install +++ icinga-1.13.3/debian/icinga-cgi.install @@ -0,0 +1,2 @@ +debian-configs/cgi.cfg /etc/icinga +debian/apache2.conf /usr/share/icinga --- icinga-1.13.3.orig/debian/icinga-cgi.links +++ icinga-1.13.3/debian/icinga-cgi.links @@ -0,0 +1,2 @@ +etc/icinga/stylesheets usr/share/icinga/stylesheets +etc/icinga/apache2.conf etc/apache2/conf-available/icinga.conf --- icinga-1.13.3.orig/debian/icinga-cgi.postinst +++ icinga-1.13.3/debian/icinga-cgi.postinst @@ -0,0 +1,102 @@ +#!/bin/bash + +set -e + +# some shorthands for sanity +en="/etc/icinga" +enc="/etc/icinga/objects/" +usn="/usr/share/icinga" + +. /usr/share/debconf/confmodule +if [ -n "$ICINGADEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +# location of the default apache configuration for icinga +apacheconf=$en/apache2.conf +# location of the default htpasswd authentication file. +htpw=$en/htpasswd.users + +setperm() { + local user="$1" + local group="$2" + local mode="$3" + local file="$4" + shift 4 + # only do something when no setting exists + if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then + chown "$user":"$group" "$file" + chmod "$mode" "$file" + fi +} + +case "$1" in + configure) + if ! getent passwd nagios > /dev/null ; then + echo 'Adding system-user for nagios' 1>&2 + adduser --system --group --home /var/lib/nagios \ + --disabled-login --force-badname nagios > /dev/null + fi + + db_get icinga/adminpassword + admpass="$RET" + + # register apache2.conf via ucf: + ucf --debconf-ok /usr/share/icinga/apache2.conf $apacheconf + + COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) + + # NEW method for Apache >= 2.4 + if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then + . /usr/share/apache2/apache2-maintscript-helper + + apache2_invoke enmod cgi + apache2_invoke enconf icinga + + # remove OLD Apache 2.2 link + [ -L /etc/apache2/conf.d/icinga.conf ] && rm /etc/apache2/conf.d/icinga.conf + + # OLD methods for Apache < 2.4 + elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then + + # create symlink if not existing + [ -f /etc/apache2/conf.d/icinga.conf ] || ln -vs $apacheconf /etc/apache2/conf.d/icinga.conf + + if [ -f /etc/init.d/apache2 ] ; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d apache2 reload 3>/dev/null || true + else + /etc/init.d/apache2 reload 3>/dev/null || true + fi + fi + fi + + # we reset the password every run, so if it exists we're running + # after being specifically given a password and can unconditionally set it. + # XXX there's no way of setting the pw w/out giving it on the cmdline? wtf? + if [ -n "$admpass" ]; then + touch "$htpw" + #unfortunatly that method only works with 2.4 + if htpasswd 2>&1 | grep -q ' -i'; then + echo "$admpass" | htpasswd -i "$htpw" icingaadmin + else + htpasswd -b "$htpw" icingaadmin "$admpass" + fi + fi + + # everything went well, so now let's reset the password + db_set icinga/adminpassword "" + db_set icinga/adminpassword-repeat "" + # ... done with debconf here + db_stop + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-cgi.postrm +++ icinga-1.13.3/debian/icinga-cgi.postrm @@ -0,0 +1,36 @@ +#!/bin/sh -e + +# some shorthands for sanity +en="/etc/icinga" +enc="/etc/icinga/objects" +usn="/usr/share/icinga" +. /usr/share/debconf/confmodule + + +# Apache2 +if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then + echo "disabling Apache2 configuration ..." + . /usr/share/apache2/apache2-maintscript-helper + apache2_invoke disconf icinga ||true +fi +if [ -L /etc/apache2/conf.d/icinga.conf ]; then + echo "removing link /etc/apache2/conf.d/icinga.conf ..." + # remove link to config + rm -f /etc/apache2/conf.d/icinga + # reload webserver + [ -x $(which invoke-rc.d) ] && invoke-rc.d apache2 reload || true +fi + +case "$1" in + remove) + ;; + purge) + rm -f /etc/icinga/htpasswd.users + rm -f /etc/icinga/apache2.conf + if which ucf >/dev/null 2>&1; then + ucf --purge /etc/icinga/apache2.conf || true + fi + ;; +esac + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-cgi.templates +++ icinga-1.13.3/debian/icinga-cgi.templates @@ -0,0 +1,29 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: icinga/adminpassword +Type: password +_Description: Icinga web administration password: + Please provide the password to be created with the "icingaadmin" user. + . + This is the username and password to use when connecting to the Icinga + server after completing the configuration. If you do not provide + a password, you will have to configure access to Icinga manually + later on. + +Template: icinga/adminpassword-repeat +Type: password +_Description: Re-enter password to verify: + Please enter the same user password again to verify you have typed it + correctly. + +Template: icinga/adminpassword-mismatch +Type: error +_Description: Password input error + The two passwords you entered were not the same. Please try again. --- icinga-1.13.3.orig/debian/icinga-common.config +++ icinga-1.13.3/debian/icinga-common.config @@ -0,0 +1,30 @@ +#!/bin/sh -e + + +. /usr/share/debconf/confmodule + +conffile="/etc/icinga/icinga.cfg" + +if [ -e "$conffile" ]; then + check_external_commands="$(grep -E '^ *check_external_commands=' $conffile | sed -e 's|.*check_external_commands=||')" + + # translate icinga option into debconf boolean + # (this is better than using a select in debconf with Choices-C, + # otherwise all translators would need to translate 'yes' and 'no'). + + case $check_external_commands in + 0) + check_external_commands=false + ;; + + 1) + check_external_commands=true + ;; + esac + + db_set icinga/check_external_commands $check_external_commands + db_input high icinga/check_external_commands || true + db_go || true +fi + + --- icinga-1.13.3.orig/debian/icinga-common.dirs +++ icinga-1.13.3/debian/icinga-common.dirs @@ -0,0 +1,11 @@ +etc/init.d +etc/icinga +etc/icinga/objects +etc/icinga/modules +usr/share/icinga/plugins/eventhandlers +var/lib/icinga/rw +var/lib/icinga/spool +var/lib/icinga/spool/checkresults +var/log/icinga/archives +var/cache/icinga +usr/share/icinga/debian --- icinga-1.13.3.orig/debian/icinga-common.docs +++ icinga-1.13.3/debian/icinga-common.docs @@ -0,0 +1,2 @@ +README +UPGRADING --- icinga-1.13.3.orig/debian/icinga-common.examples +++ icinga-1.13.3/debian/icinga-common.examples @@ -0,0 +1,5 @@ +sample-config/template-object/commands.cfg +sample-config/template-object/localhost.cfg +sample-config/resource.cfg +sample-config/icinga.cfg +sample-config/cgi.cfg --- icinga-1.13.3.orig/debian/icinga-common.icinga.default +++ icinga-1.13.3/debian/icinga-common.icinga.default @@ -0,0 +1,16 @@ +# /etc/default/icinga + +# location of the icinga configuration file +ICINGACFG="/etc/icinga/icinga.cfg" + +# location of the CGI configuration file +CGICFG="/etc/icinga/cgi.cfg" + +# nicelevel to run icinga daemon with +NICENESS=5 + +# start ido2db daemon (no/yes) +IDO2DB=no + +# if you use pam_tmpdir, you need to explicitly set TMPDIR: +#TMPDIR=/tmp --- icinga-1.13.3.orig/debian/icinga-common.icinga.init +++ icinga-1.13.3/debian/icinga-common.icinga.init @@ -0,0 +1,258 @@ +#! /bin/sh +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# Clamav version by Magnus Ekdahl +# Nagios version by Sean Finney and probably others +# nagios2 version by Marc Haber +# icinga version by Alexander Wirt + +### BEGIN INIT INFO +# Provides: icinga +# Required-Start: $local_fs $remote_fs $syslog $named $network $time +# Required-Stop: $local_fs $remote_fs $syslog $named $network +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: icinga host/service/network monitoring and management system +# Description: icinga is a monitoring and management system for hosts, services and networks. +### END INIT INFO + +. /lib/lsb/init-functions + +DAEMON=/usr/sbin/icinga +NAME="icinga" +DESC="icinga monitoring daemon" +ICINGACFG="/etc/icinga/icinga.cfg" +CGICFG="/etc/icinga/cgi.cfg" +NICENESS=5 + +[ -x "$DAEMON" ] || exit 0 +[ -r /etc/default/icinga ] && . /etc/default/icinga + +# this is from madduck on IRC, 2006-07-06 +# There should be a better possibility to give daemon error messages +# and/or to log things +log() +{ + case "$1" in + [[:digit:]]*) success=$1; shift;; + *) :;; + esac + log_action_begin_msg "$1"; shift + log_action_end_msg ${success:-0} "$*" +} + +check_run () { + if [ ! -d '/var/run/icinga' ]; + then + mkdir /var/run/icinga + chown nagios:nagios /var/run/icinga + chmod 0750 /var/run/icinga + fi +} + +check_started () { + if [ -e "$CGICFG" ] + then + check_cmd=$(get_config icinga_check_command $CGICFG) + if [ ! "$check_cmd" ]; then + log 6 "unable to determine icinga_check_command from $CGICFG!" + return 6 + fi + else + check_cmd="/usr/lib/nagios/plugins/check_nagios /var/lib/icinga/status.dat 5 '/usr/sbin/icinga'" + fi + + eval $check_cmd >/dev/null + + if [ -f "$THEPIDFILE" ]; then + pid="$(cat $THEPIDFILE)" + if [ "$pid" ] && kill -0 $pid >/dev/null 2>/dev/null; then + return 0 # Is started + fi + fi + return 1 # Isn't started +} + +# +# get_config() +# +# grab a config option from icinga.cfg (or possibly another icinga config +# file if specified). everything after the '=' is echo'd out, making +# this a nice generalized way to get requested settings. +# +get_config () { + CFG=$ICINGACFG + test "$2" && CFG="$2" + if [ "$2" ]; then + set -- `grep ^$1 $2 | sed 's@=@ @'` + else + set -- `grep ^$1 $ICINGACFG | sed 's@=@ @'` + fi + if [ -n "$1" ] + then + shift + echo $* + fi +} + +check_config () { + if $DAEMON -v $ICINGACFG >/dev/null 2>&1 ; then + # First get the user/group etc Icinga is running as + nagios_user="$(get_config icinga_user)" + nagios_group="$(get_config icinga_group)" + log_file="$(get_config log_file)" + log_dir="$(dirname $log_file)" + + return 0 # Config is ok + else + # config is not okay, so let's barf the error to the user + $DAEMON -v $ICINGACFG + fi +} + +check_named_pipe () { + icingapipe="$(get_config command_file)" + if [ -p "$icingapipe" ]; then + return 1 # a named pipe exists + elif [ -e "$icingapipe" ];then + return 1 + else + return 0 # no named pipe exists + fi +} + +if [ ! -f "$ICINGACFG" ]; then + log_failure_msg "There is no configuration file for Icinga." + exit 6 +fi + +THEPIDFILE=$(get_config "lock_file") +[ -n "$THEPIDFILE" ] || THEPIDFILE='/var/run/icinga/icinga.pid' + +start () { + DIRECTORY=$(dirname $THEPIDFILE) + [ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY + chown nagios:nagios $DIRECTORY + + if ! check_started; then + if ! check_named_pipe; then + log_action_msg "named pipe exists - removing" + rm -f $icingapipe + fi + if check_config; then + start_daemon -n $NICENESS -p $THEPIDFILE $DAEMON -d $ICINGACFG + ret=$? + else + log_failure_msg "errors in config!" + log_end_msg 1 + exit 1 + fi + else + log_warning_msg "already running!" + fi + return $ret +} + +stop () { + killproc -p $THEPIDFILE + ret=$? + if [ `pidof icinga | wc -l ` -gt 0 ]; then + echo -n "Waiting for $NAME daemon to die.." + cnt=0 + while [ `pidof icinga | wc -l ` -gt 0 ]; do + cnt=`expr "$cnt" + 1` + if [ "$cnt" -gt 15 ]; then + kill -9 `pidof icinga` + break + fi + sleep 1 + done + fi + if ! check_named_pipe; then + rm -f $icingapipe + fi + test -e $THEPIDFILE && rm $THEPIDFILE + if [ -n "$ret" ]; then + return $ret + else + return $? + fi +} + +status() +{ + log_action_begin_msg "checking $DAEMON" + if check_started; then + log_action_end_msg 0 "running" + else + if [ -e "$THEPIDFILE" ]; then + log_action_end_msg 1 "$DAEMON failed" + exit 1 + else + log_action_end_msg 1 "not running" + exit 3 + fi + fi +} + +check () { + $DAEMON -v $ICINGACFG +} + +reload () { + # Check first + if check_config; then + if check_started; then + killproc -p $THEPIDFILE $DAEMON 1 + else + log_warning_msg "Not running." + fi + else + log_failure_msg "errors in config!" + log_end_msg 6 + exit 6 + fi +} + +check_run + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + start + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + stop + log_end_msg $? + ;; + restart) + log_daemon_msg "Restarting $DESC" "$NAME" + stop + if [ -z "$?" -o "$?" = "0" ]; then + start + fi + log_end_msg $? + ;; + reload|force-reload) + log_daemon_msg "Reloading $DESC configuration files" "$NAME" + reload + log_end_msg $? + ;; + status) + status + ;; + check) + check + ;; + *) + log_failure_msg "Usage: $0 {start|stop|restart|reload|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- icinga-1.13.3.orig/debian/icinga-common.install +++ icinga-1.13.3/debian/icinga-common.install @@ -0,0 +1,8 @@ +contrib/eventhandlers/* usr/share/icinga/plugins/eventhandlers +debian-configs/* /etc/icinga +debian/conf.d/* /etc/icinga/objects +debian/resource.cfg /etc/icinga +sample-config/*.cfg /usr/share/doc/icinga-common/examples +sample-config/README /usr/share/doc/icinga-common/examples +sample-config/template-object/*.cfg /usr/share/doc/icinga-common/examples/template-object +sample-config/template-object/README /usr/share/doc/icinga-common/examples/template-object --- icinga-1.13.3.orig/debian/icinga-common.links +++ icinga-1.13.3/debian/icinga-common.links @@ -0,0 +1 @@ +usr/share/icinga/htdocs/docs usr/share/doc/icinga-common/html --- icinga-1.13.3.orig/debian/icinga-common.lintian-overrides +++ icinga-1.13.3/debian/icinga-common.lintian-overrides @@ -0,0 +1,2 @@ +non-standard-file-perm etc/icinga/resource.cfg 0600 != 0644 +dir-or-file-in-var-run var/run/icinga/ --- icinga-1.13.3.orig/debian/icinga-common.postinst +++ icinga-1.13.3/debian/icinga-common.postinst @@ -0,0 +1,128 @@ +#!/bin/bash + +set -e + +# some shorthands for sanity +en="/etc/icinga" +enc="/etc/icinga/objects" +usn="/usr/share/icinga" + +. /usr/share/debconf/confmodule + +conffile="/etc/icinga/icinga.cfg" + +if [ -n "$ICINGADEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +setperm() { + local user="$1" + local group="$2" + local mode="$3" + local file="$4" + shift 4 + # only do something when no setting exists + if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then + chown "$user":"$group" "$file" + chmod "$mode" "$file" + fi +} + +case "$1" in + configure) + if ! getent passwd nagios > /dev/null ; then + echo 'Adding system-user for nagios' 1>&2 + adduser --system --group --home /var/lib/nagios \ + --disabled-login --force-badname nagios > /dev/null + fi + + # explicitly set permissions on some files that are dependent + # on the uid/gid of the nagios user, which is dynamically created. + [ -f "$en/resource.cfg" ] && setperm root nagios 0640 $en/resource.cfg + setperm nagios adm 2751 /var/log/icinga + setperm nagios adm 2755 /var/log/icinga/archives + setperm nagios nagios 0750 /var/lib/icinga/spool + setperm nagios nagios 0755 /var/lib/icinga + setperm nagios nagios 0750 /var/lib/icinga/spool/checkresults + setperm nagios www-data 02750 /var/cache/icinga + setperm nagios www-data 0700 /var/lib/icinga/rw + + db_get icinga/check_external_commands + check_external_commands="$RET" # boolean + + db_stop + + # translate debconf boolean into icinga option + # (this is better than using a select in debconf with Choices-C, + # otherwise all translators would need to translate 'yes' and 'no'). + + case $check_external_commands in + true) + check_external_commands=1 + ;; + + false) + check_external_commands=0 + ;; + esac + + # If the admin deleted or commented some variables but then set + # them via debconf, (re-)add them to the config file. + + test -z "$check_external_commands" || \ + grep -Eq '^ *check_external_commands=' "$conffile" || \ + echo "check_external_commands=" >> "$conffile" + + sed --follow-symlinks -i -e "s|^ *check_external_commands=.|check_external_commands=$check_external_commands|" \ + "$conffile" + # Stop a not already stopped icinga instance, + # debhelper will start it again automatically at the bottom + status="$(/etc/init.d/icinga status >/dev/null 2>&1; echo $?)" + + if [ "$status" -ne 3 ]; then + if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then + invoke-rc.d icinga stop || true + else + /etc/init.d/icinga stop || true + fi + fi + + case $check_external_commands in + 1) + if ! dpkg-statoverride --list /var/lib/icinga/rw >/dev/null 2>&1; then + dpkg-statoverride --quiet --update --add nagios www-data 2710 /var/lib/icinga/rw + fi + + if ! dpkg-statoverride --list /var/lib/icinga >/dev/null 2>&1; then + dpkg-statoverride --quiet --update --add nagios nagios 751 /var/lib/icinga + fi + ;; + + 0) + if dpkg-statoverride --list /var/lib/icinga/rw >/dev/null 2>&1; then + dpkg-statoverride --quiet --remove /var/lib/icinga/rw + fi + + if dpkg-statoverride --list /var/lib/icinga >/dev/null 2>&1; then + dpkg-statoverride --quiet --remove /var/lib/icinga + fi + ;; + esac + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \$1'" >&2 + exit 1 + ;; +esac + +init_failed () +{ + echo "Icinga was unable to start due to configuration errors."; + echo "Please fix them and manually restart the icinga daemon using"; + echo " ´service start icinga´"; +} + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-common.postrm +++ icinga-1.13.3/debian/icinga-common.postrm @@ -0,0 +1,23 @@ +#!/bin/sh -e + +# some shorthands for sanity +en="/etc/icinga" +enc="/etc/icinga/objetcs" +usn="/usr/share/icinga" + +case "$1" in + remove) + ;; + purge) + for file in $en/resource.cfg /var/log/icinga /var/run/icinga \ + /var/lib/icinga /var/lib/icinga/spool \ + /var/lib/icinga/spool/checkresults \ + /var/cache/icinga /var/lib/icinga/rw; do + dpkg-statoverride --force --remove $file 2>/dev/null || true + done + rm -rf /var/run/icinga /var/log/icinga /var/lib/icinga \ + /var/cache/icinga + ;; +esac + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-common.templates +++ icinga-1.13.3/debian/icinga-common.templates @@ -0,0 +1,19 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: icinga/check_external_commands +Type: boolean +Default: false +_Description: Use external commands with Icinga? + As a security feature, Icinga in its default configuration does not + look for external commands. Enabling external commands will give + the web server write access to the nagios command pipe and is required + if you want to be able to use the CGI command interface. + . + If unsure, do not enable external commands. --- icinga-1.13.3.orig/debian/icinga-core.dirs +++ icinga-1.13.3/debian/icinga-core.dirs @@ -0,0 +1,2 @@ +usr/sbin +usr/lib/icinga --- icinga-1.13.3.orig/debian/icinga-core.examples +++ icinga-1.13.3/debian/icinga-core.examples @@ -0,0 +1 @@ +debian/examples/apache_vhost.conf --- icinga-1.13.3.orig/debian/icinga-core.install +++ icinga-1.13.3/debian/icinga-core.install @@ -0,0 +1,3 @@ +usr/lib/icinga/p1.pl +usr/sbin/icinga +usr/sbin/icingastats --- icinga-1.13.3.orig/debian/icinga-core.links +++ icinga-1.13.3/debian/icinga-core.links @@ -0,0 +1 @@ +usr/share/doc/icinga-common usr/share/doc/icinga-core --- icinga-1.13.3.orig/debian/icinga-core.manpages +++ icinga-1.13.3/debian/icinga-core.manpages @@ -0,0 +1,2 @@ +debian/icinga.8 +debian/icingastats.8 --- icinga-1.13.3.orig/debian/icinga-core.postinst +++ icinga-1.13.3/debian/icinga-core.postinst @@ -0,0 +1,55 @@ +#!/bin/sh -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if dpkg --compare-versions "$2" lt-nl '1.7.0-1'; then + if [ -e "/var/lib/icinga/retention.dat" ] && [ ! -e "/var/cache/icinga/retention.dat" ] + then + echo "Move old retention.dat to new location (/var/cache/icinga/)" + mv /var/lib/icinga/retention.dat /var/cache/icinga/retention.dat + fi + fi + + #if we stop icinga in icinga.prerm we should also start it here.. + if [ -x "/etc/init.d/icinga" ]; then + if ! /etc/init.d/icinga status >/dev/null; then + + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d icinga start || true + else + /etc/init.d/icinga start || true + fi + fi + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-core.prerm +++ icinga-1.13.3/debian/icinga-core.prerm @@ -0,0 +1,16 @@ +#!/bin/sh -e + +# we attempt to stop icinga twice, once in icinga-common's prerm +# and once here. otherwise, if icinga+icinga-common are being purged, +# the /usr/sbin/icinga binary could disappear before icinga-common's +# prerm script runs, which would prevent it from being able to stop +# the binary. +if [ -x "/etc/init.d/icinga" ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d icinga stop || true + else + /etc/init.d/icinga stop || true + fi +fi + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-dbg.manpages +++ icinga-1.13.3/debian/icinga-dbg.manpages @@ -0,0 +1 @@ +debian/mini_epn_icinga.8 --- icinga-1.13.3.orig/debian/icinga-dbg.postinst +++ icinga-1.13.3/debian/icinga-dbg.postinst @@ -0,0 +1,6 @@ +#!/bin/sh -e + +update-alternatives --quiet --install /usr/bin/mini_epn mini_epn /usr/bin/mini_epn_icinga 10 \ + --slave /usr/share/man/man8/mini_epn.8.gz mini_epn.8.gz /usr/share/man/man8/mini_epn_icinga.8.gz + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-dbg.prerm +++ icinga-1.13.3/debian/icinga-dbg.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove mini_epn /usr/bin/mini_epn_icinga +fi + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga-doc.dirs +++ icinga-1.13.3/debian/icinga-doc.dirs @@ -0,0 +1 @@ +usr/share/icinga/htdocs --- icinga-1.13.3.orig/debian/icinga-doc.doc-base +++ icinga-1.13.3/debian/icinga-doc.doc-base @@ -0,0 +1,9 @@ +Document: icinga +Title: Icinga Documentation +Author: Ethan Galstad +Abstract: Icinga user and administrator's documentation +Section: Network/Monitoring + +Format: HTML +Index: /usr/share/icinga/htdocs/docs/index.html +Files: /usr/share/icinga/htdocs/docs/*.html --- icinga-1.13.3.orig/debian/icinga-doc.install +++ icinga-1.13.3/debian/icinga-doc.install @@ -0,0 +1 @@ +usr/share/icinga/htdocs/docs --- icinga-1.13.3.orig/debian/icinga-doc.links +++ icinga-1.13.3/debian/icinga-doc.links @@ -0,0 +1 @@ +usr/share/icinga/htdocs/docs usr/share/doc/icinga-doc/html --- icinga-1.13.3.orig/debian/icinga-doc.lintian-overrides +++ icinga-1.13.3/debian/icinga-doc.lintian-overrides @@ -0,0 +1 @@ +package-contains-empty-directory usr/share/icinga/htdocs/ssi/ --- icinga-1.13.3.orig/debian/icinga-idoutils.NEWS +++ icinga-1.13.3/debian/icinga-idoutils.NEWS @@ -0,0 +1,17 @@ +icinga (1.11.3-1) unstable; urgency=medium + + If you did a fresh install of 1.11.3-1, please ignore the schema + update coming with -2. + + -- Alexander Wirt Wed, 21 May 2014 14:08:43 +0200 + +icinga (1.7.0~beta1-1) unstable; urgency=low + + The location of the idoutils icinga broker changed from + /usr/lib/icinga/idomod.o to /usr/lib/icinga/idomod.so. + The best way to fix this is to remove the broker like from + icinga.cfg and copy + /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample to + /etc/icinga/modules/idoutils.cfg. + + -- Alexander Wirt Sat, 12 May 2012 06:28:56 +0200 --- icinga-1.13.3.orig/debian/icinga-idoutils.README.Debian +++ icinga-1.13.3/debian/icinga-idoutils.README.Debian @@ -0,0 +1,26 @@ +icinga-idoutils for Debian +-------------------------- + +The idoutils include a Nagios event broker module (idomod.so) that exports +data from the Icinga daemon. You have to enable it after installing the package + +To enable the module copy /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample to +/etc/icinga/modules/idoutils.cfg. You can also add the broker to +/etc/icinga/icinga.cfg, but the module way is recommended. + +Don't forget to restart Icinga after changing the configuration: + + invoke-rc.d icinga restart + +After configuring Icinga to use the idoutils broker module, you have to +enable the ido2db daemon in /etc/default/icinga by setting + + IDO2DB=yes + +and start the daemon + + invoke-rc.d ido2db start + +NOTE: If you don't manage your ido2db via debconf adapt /etc/icinga/ido2db.cfg for your need and configure your database before starting the daemon + + -- Alexander Wirt Wed Mar 17 08:58:44 CET 2010 --- icinga-1.13.3.orig/debian/icinga-idoutils.config +++ icinga-1.13.3/debian/icinga-idoutils.config @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +#set -x + +. /usr/share/debconf/confmodule + +if [ -f /usr/share/dbconfig-common/dpkg/config ]; then + dbc_dbtypes="mysql, pgsql" + dbc_dbname="icinga" + dbc_authmethod_user="password" + . /usr/share/dbconfig-common/dpkg/config + dbc_go icinga-idoutils $@ +fi + --- icinga-1.13.3.orig/debian/icinga-idoutils.dirs +++ icinga-1.13.3/debian/icinga-idoutils.dirs @@ -0,0 +1,4 @@ +etc/icinga +usr/lib/icinga +usr/share/dbconfig-common/data/icinga-idoutils/install/ +usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/ --- icinga-1.13.3.orig/debian/icinga-idoutils.examples +++ icinga-1.13.3/debian/icinga-idoutils.examples @@ -0,0 +1 @@ +module/idoutils/db/* --- icinga-1.13.3.orig/debian/icinga-idoutils.ido2db.init +++ icinga-1.13.3/debian/icinga-idoutils.ido2db.init @@ -0,0 +1,194 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: ido2db +# Required-Start: $remote_fs $syslog $named $network $time +# Required-Stop: $remote_fs $syslog $named $network +# X-Start-Before: icinga +# X-Stop-After: icinga +# Should-Start: mysql postgresql +# Should-Stop: mysql postgresql +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: ido2db initscript +# Description: icinga-dataobjects daemon +### END INIT INFO + +# Author: Alexander Wirt +# + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="icinga-dataobjects daemon" +NAME=ido2db +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/icinga/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME +CFG=/etc/icinga/ido2db.cfg + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/icinga ] && . /etc/default/icinga + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +if [ "$IDO2DB" != "yes" ]; then + if [ "$VERBOSE" != no ]; then + log_warning_msg "Not starting ido2db - edit /etc/default/icinga to enable it" + fi + exit 0 +fi + + +check_started () { + start-stop-daemon --quiet --pidfile $PIDFILE --exec $DAEMON --status > /dev/null + if [ $? -eq 0 ] + then + return 1 + else + return 0 + fi +} + +cleanup_socket () { + SOCKET=$( get_config socket_name ) + test -z "$SOCKET" && return + check_started + [ $? -eq 1 ] && return + if [ -e $SOCKET ] + then + log_warning_msg "Remove stale socket $SOCKET" + rm $SOCKET + fi + +} + +# +# get_config() +# +# grab a config option from icinga.cfg (or possibly another icinga config +# file if specified). everything after the '=' is echo'd out, making +# this a nice generalized way to get requested settings. +# +get_config () { + if [ "$2" ]; then + set -- `grep ^$1 $2 | sed 's@=@ @'` + else + set -- `grep ^$1 $CFG | sed 's@=@ @'` + fi + shift + echo $* +} + +# +# Function that starts the daemon/service +# +do_start() +{ + test -d $(dirname $PIDFILE) || mkdir -p $(dirname $PIDFILE) + chown nagios:nagios $(dirname $PIDFILE) + #cleanup stale socket + cleanup_socket + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + -c $CFG \ + || return 2 +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: --- icinga-1.13.3.orig/debian/icinga-idoutils.install +++ icinga-1.13.3/debian/icinga-idoutils.install @@ -0,0 +1,2 @@ +debian/db/admin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/ +module/idoutils/config/ido2db.cfg-sample usr/share/icinga/tmpl --- icinga-1.13.3.orig/debian/icinga-idoutils.links +++ icinga-1.13.3/debian/icinga-idoutils.links @@ -0,0 +1,12 @@ +usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/pgsql/1.6.0-1 + +usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/pgsql/1.5.0-1 + +usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/pgsql/1.4.0-1 + +usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/pgsql/1.2.99-1 + +usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/pgsql/1.0.3-1 + +usr/share/dbconfig-common/data/icinga-idoutils/install-dbadmin/pgsql usr/share/dbconfig-common/data/icinga-idoutils/upgrade-dbadmin/pgsql/1.0.2-2 + --- icinga-1.13.3.orig/debian/icinga-idoutils.manpages +++ icinga-1.13.3/debian/icinga-idoutils.manpages @@ -0,0 +1 @@ +debian/ido2db.8 --- icinga-1.13.3.orig/debian/icinga-idoutils.postinst +++ icinga-1.13.3/debian/icinga-idoutils.postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e +#set -x + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/postinst +#dbc_debug='1' +dbc_generate_include='template:/etc/icinga/ido2db.cfg' +dbc_generate_include_owner='nagios:nagios' +dbc_generate_include_args='--ucf -o template_infile=/usr/share/icinga/tmpl/ido2db.cfg-sample' +dbc_go icinga-idoutils $@ + +if [ -x "/etc/init.d/ido2db" ]; then + update-rc.d ido2db defaults 35 20 >/dev/null + invoke-rc.d ido2db start 3>&- || exit $? +fi + +#DEBHELPER# + --- icinga-1.13.3.orig/debian/icinga-idoutils.postrm +++ icinga-1.13.3/debian/icinga-idoutils.postrm @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e +#set -x + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi +if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then + . /usr/share/dbconfig-common/dpkg/postrm + dbc_go icinga-idoutils $@ +fi + +if [ "$1" = "purge" ]; then + rm -f /etc/icinga/ido2db.cfg + if which ucf >/dev/null; then + ucf --purge /etc/icinga/ido2db.cfg + fi + db_purge +fi + +if [ "$1" = "purge" ] ; then + update-rc.d ido2db remove >/dev/null +fi + +#DEBHELPER# + --- icinga-1.13.3.orig/debian/icinga-idoutils.prerm +++ icinga-1.13.3/debian/icinga-idoutils.prerm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e +#set -x + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/prerm +dbc_go icinga-idoutils $@ + +if [ -x "/etc/init.d/ido2db" ]; then + invoke-rc.d ido2db stop 3>&- || exit $? +fi + +#DEBHELPER# --- icinga-1.13.3.orig/debian/icinga.8 +++ icinga-1.13.3/debian/icinga.8 @@ -0,0 +1,47 @@ +.TH icinga "8" "March 2010" "sean finney" "nagios" +.SH NAME +icinga \- network/systems status monitoring daemon + +.SH SYNOPSIS +.B icinga [\-h] [\-v] [\-s] [\-d] +.br + +.SH DESCRIPTION +.B icinga +is a daemon program that monitors the status of various network +accessible systems, devices, and more. For more information, please +consult the online documentation available at http://www.icinga.org, +or on your Icinga server's web page. + +.SH OPTIONS +.TP +main_config_file +The main configuration file. On debian systems this defaults to +/etc/icinga/icinga.cfg +.TP +\fB\-h\fR +A helpful usage message +.TP +\fB\-v\fR +Reads all data in the configuration files and performs a basic +verification/sanity check. Always make sure you verify your +config data before (re)starting Icinga. +.TP +\fB\-s\fR +Shows projected/recommended check scheduling information based +on the current data in the configuration files. +.TP +\fB\-d\fR +Starts Icinga in daemon mode (instead of as a foreground process). + +.SH FILES +.TP +.IP /etc/icinga +Default configuration directory for Icinga + +.SH AUTHOR +Icinga was started as Nagios by Ethan Galstad . +Icinga is maintained by the Icinga Project . +This manual page was written by sean finney for the Debian +GNU/Linux operating system (but it may be freely used, modified, and +redistributed by others). --- icinga-1.13.3.orig/debian/icinga.links +++ icinga-1.13.3/debian/icinga.links @@ -0,0 +1 @@ +usr/share/doc/icinga-common usr/share/doc/icinga --- icinga-1.13.3.orig/debian/icinga.lintian-overrides +++ icinga-1.13.3/debian/icinga.lintian-overrides @@ -0,0 +1 @@ +usr-share-doc-symlink-without-dependency icinga-common --- icinga-1.13.3.orig/debian/icingastats.8 +++ icinga-1.13.3/debian/icingastats.8 @@ -0,0 +1,51 @@ +.TH icingastats "8" "February 2006" "sean finney " "icinga" +.SH NAME +icingastats \- report statistics information from the Icinga system + +.SH SYNOPSIS +.B icingastats [\-hVL] [\-c config] [\-m] [\-d] +.br + +.SH DESCRIPTION +.B icingastats +Is a program designed to provide information on the running Icinga +system. It can provide a brief summary of information, or it can +be used to export specific information about the nagios system +into an MRTG-compatible format. +For more information please consult the Icinga online documentation +available at http://www.icinga.org or the documentation available +with your icinga server's web page. + +.SH OPTIONS +.TP +\fB\-c\fR|\-\-config=FILE +The main configuration file. On debian systems this defaults to +/etc/icinga/icinga.cfg +.TP +\fB\-m\fR|\-\-mrtg +Print output in MRTG-compatible format. For more details run +icingastats with \-\-help +.TP +\fB\-d\fR|\-\-data=VARS +Comma-seperated list of variables to output in MRTG format. For +more details run icingastats with \-\-help. +.TP +\fB\-h\fR|\-\-help +A helpful usage message +.TP +\fB\-V\fR|\-\-version +Print version information +.TP +\fB\-L\fR|\-\-license +Print license details + +.SH FILES +.TP +.IP /etc/icinga +Default configuration directory for icinga + +.SH AUTHOR +Icinga was started as Nagios by Ethan Galstad . Icinga is +maintained by the Icinga Project . This manual page was +written by sean finney for the Debian GNU/Linux operating +system (but it may be freely used, modified, and redistributed by others). --- icinga-1.13.3.orig/debian/ido2db.8 +++ icinga-1.13.3/debian/ido2db.8 @@ -0,0 +1,51 @@ +'\" t +.\" Title: ido2db +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 03/16/2010 +.\" Manual: ido2db +.\" Source: Nagios/Icinga +.\" Language: English +.\" +.TH "IDO2DB" "8" "03/16/2010" "Nagios/Icinga" "ido2db" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +ido2db \- store icinga events and configs in database +.SH "SYNOPSIS" +.sp +\fBido2db\fR \-c [\-i] [\-f] +.SH "DESCRIPTION" +.sp +Stores Icinga event and configuration data to a database for later retrieval and processing\&. Clients that are capable of sending data to the IDO2DB daemon include the LOG2NDO utility and IDOMOD event broker module\&. +.SH "OPTIONS" +.PP +\fB\-i\fR +.RS 4 +Run under INETD/XINETD\&. +.RE +.PP +\fB\-f\fR +.RS 4 +Don\(cqt daemonize, run in foreground\&. +.RE +.SH "AUTHOR" +.sp +This manpage was written by Alexander Wirt for the Debian Distribution\&. --- icinga-1.13.3.orig/debian/ido2db.8.txt +++ icinga-1.13.3/debian/ido2db.8.txt @@ -0,0 +1,32 @@ +:man source: Nagios/Icinga +:man version: {revnumber} +:man manual: ido2db + +ido2db(8) +========== + +NAME +---- +ido2db - store icinga events and configs in database + +SYNOPSIS +-------- +*ido2db* -c [-i] [-f] + +DESCRIPTION +----------- +Stores Icinga event and configuration data to a database for later retrieval +and processing. Clients that are capable of sending data to the IDO2DB daemon +include the LOG2NDO utility and IDOMOD event broker module. + +OPTIONS +------- +*-i*:: + Run under INETD/XINETD. + +*-f*:: + Don't daemonize, run in foreground. + +AUTHOR +------ +This manpage was written by Alexander Wirt for the Debian Distribution. --- icinga-1.13.3.orig/debian/mini_epn_icinga.8 +++ icinga-1.13.3/debian/mini_epn_icinga.8 @@ -0,0 +1,44 @@ +'\" t +.\" Title: mini_epn +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 09/19/2009 +.\" Manual: mini_epn +.\" Source: Nagios/Icinga +.\" Language: English +.\" +.TH "MINI_EPN" "8" "09/19/2009" "Nagios/Icinga" "mini_epn" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +mini_epn \- too to nagios/icingaplugins inside of an embedded perl interpreter +.SH "SYNOPSIS" +.sp +\fBmini_epn\fR +.SH "DESCRIPTION" +.sp +After calling \fBmini_epn\fR an embedded perl interpreter gets started and asks for you a script to execute under the interpreter\&. To exit the interpreter loop press ^d at the prompt\&. +.SH "EXAMPLES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +# mini_epn +Enter file name: /usr/lib/nagios/plugins/check_linux_raid +embedded perl plugin return code and output was: 0 & \'OK md0 status=[UU]\&. md1 status=[UU]\&. +.fi +.if n \{\ +.RE +.\} +.SH "AUTHOR" +.sp +This manpage was written by Alexander Wirt for the Debian Distribution\&. --- icinga-1.13.3.orig/debian/mini_epn_icinga.8.txt +++ icinga-1.13.3/debian/mini_epn_icinga.8.txt @@ -0,0 +1,31 @@ +:man source: Nagios/Icinga +:man version: {revnumber} +:man manual: mini_epn + +mini_epn(8) +========== + +NAME +---- +mini_epn - too to nagios/icingaplugins inside of an embedded perl interpreter + +SYNOPSIS +-------- +*mini_epn* + +DESCRIPTION +----------- +After calling *mini_epn* an embedded perl interpreter gets started and asks for you a script to execute under the interpreter. To exit the interpreter loop press ^d at the prompt. + +EXAMPLES +-------- + + # mini_epn + Enter file name: /usr/lib/nagios/plugins/check_linux_raid + embedded perl plugin return code and output was: 0 & 'OK md0 status=[UU]. md1 status=[UU]. + +AUTHOR +------ +This manpage was written by Alexander Wirt for the Debian Distribution. + + --- icinga-1.13.3.orig/debian/missing-sources/jquery.ui.autocomplete.js +++ icinga-1.13.3/debian/missing-sources/jquery.ui.autocomplete.js @@ -0,0 +1,610 @@ +/*! + * jQuery UI Autocomplete 1.10.3 + * http://jqueryui.com + * + * Copyright 2013 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * http://api.jqueryui.com/autocomplete/ + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.position.js + * jquery.ui.menu.js + */ +(function( $, undefined ) { + +// used to prevent race conditions with remote data sources +var requestIndex = 0; + +$.widget( "ui.autocomplete", { + version: "1.10.3", + defaultElement: "", + options: { + appendTo: null, + autoFocus: false, + delay: 300, + minLength: 1, + position: { + my: "left top", + at: "left bottom", + collision: "none" + }, + source: null, + + // callbacks + change: null, + close: null, + focus: null, + open: null, + response: null, + search: null, + select: null + }, + + pending: 0, + + _create: function() { + // Some browsers only repeat keydown events, not keypress events, + // so we use the suppressKeyPress flag to determine if we've already + // handled the keydown event. #7269 + // Unfortunately the code for & in keypress is the same as the up arrow, + // so we use the suppressKeyPressRepeat flag to avoid handling keypress + // events when we know the keydown event was used to modify the + // search term. #7799 + var suppressKeyPress, suppressKeyPressRepeat, suppressInput, + nodeName = this.element[0].nodeName.toLowerCase(), + isTextarea = nodeName === "textarea", + isInput = nodeName === "input"; + + this.isMultiLine = + // Textareas are always multi-line + isTextarea ? true : + // Inputs are always single-line, even if inside a contentEditable element + // IE also treats inputs as contentEditable + isInput ? false : + // All other element types are determined by whether or not they're contentEditable + this.element.prop( "isContentEditable" ); + + this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ]; + this.isNewMenu = true; + + this.element + .addClass( "ui-autocomplete-input" ) + .attr( "autocomplete", "off" ); + + this._on( this.element, { + keydown: function( event ) { + /*jshint maxcomplexity:15*/ + if ( this.element.prop( "readOnly" ) ) { + suppressKeyPress = true; + suppressInput = true; + suppressKeyPressRepeat = true; + return; + } + + suppressKeyPress = false; + suppressInput = false; + suppressKeyPressRepeat = false; + var keyCode = $.ui.keyCode; + switch( event.keyCode ) { + case keyCode.PAGE_UP: + suppressKeyPress = true; + this._move( "previousPage", event ); + break; + case keyCode.PAGE_DOWN: + suppressKeyPress = true; + this._move( "nextPage", event ); + break; + case keyCode.UP: + suppressKeyPress = true; + this._keyEvent( "previous", event ); + break; + case keyCode.DOWN: + suppressKeyPress = true; + this._keyEvent( "next", event ); + break; + case keyCode.ENTER: + case keyCode.NUMPAD_ENTER: + // when menu is open and has focus + if ( this.menu.active ) { + // #6055 - Opera still allows the keypress to occur + // which causes forms to submit + suppressKeyPress = true; + event.preventDefault(); + this.menu.select( event ); + } + break; + case keyCode.TAB: + if ( this.menu.active ) { + this.menu.select( event ); + } + break; + case keyCode.ESCAPE: + if ( this.menu.element.is( ":visible" ) ) { + this._value( this.term ); + this.close( event ); + // Different browsers have different default behavior for escape + // Single press can mean undo or clear + // Double press in IE means clear the whole form + event.preventDefault(); + } + break; + default: + suppressKeyPressRepeat = true; + // search timeout should be triggered before the input value is changed + this._searchTimeout( event ); + break; + } + }, + keypress: function( event ) { + if ( suppressKeyPress ) { + suppressKeyPress = false; + if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) { + event.preventDefault(); + } + return; + } + if ( suppressKeyPressRepeat ) { + return; + } + + // replicate some key handlers to allow them to repeat in Firefox and Opera + var keyCode = $.ui.keyCode; + switch( event.keyCode ) { + case keyCode.PAGE_UP: + this._move( "previousPage", event ); + break; + case keyCode.PAGE_DOWN: + this._move( "nextPage", event ); + break; + case keyCode.UP: + this._keyEvent( "previous", event ); + break; + case keyCode.DOWN: + this._keyEvent( "next", event ); + break; + } + }, + input: function( event ) { + if ( suppressInput ) { + suppressInput = false; + event.preventDefault(); + return; + } + this._searchTimeout( event ); + }, + focus: function() { + this.selectedItem = null; + this.previous = this._value(); + }, + blur: function( event ) { + if ( this.cancelBlur ) { + delete this.cancelBlur; + return; + } + + clearTimeout( this.searching ); + this.close( event ); + this._change( event ); + } + }); + + this._initSource(); + this.menu = $( "