From c3d0b4ecef6074e53e6c55ff53d0d3d6f8388b12 Mon Sep 17 00:00:00 2001 From: Alexander Wirt Date: Wed, 13 Oct 2010 17:27:54 +0200 Subject: [PATCH 1/1] Initial import --- debian/changelog | 5 ++ debian/check-mk-agent.dirs | 5 ++ debian/check-mk-agent.install | 4 + debian/check-mk-livestatus.install | 2 + debian/check-mk-server-common.dirs | 1 + debian/check-mk-server-common.install | 6 ++ debian/check-mk-server-icinga.install | 1 + debian/check-mk-server.debhelper.log | 16 ++++ debian/check-mk-server.substvars | 1 + debian/check-mk-web.install | 3 + debian/compat | 1 + debian/control | 89 +++++++++++++++++++++ debian/defaults.icinga | 38 +++++++++ debian/defaults.nagios3 | 38 +++++++++ debian/rules | 106 ++++++++++++++++++++++++++ 15 files changed, 316 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/check-mk-agent.dirs create mode 100644 debian/check-mk-agent.install create mode 100644 debian/check-mk-livestatus.install create mode 100644 debian/check-mk-server-common.dirs create mode 100644 debian/check-mk-server-common.install create mode 100644 debian/check-mk-server-icinga.install create mode 100644 debian/check-mk-server.debhelper.log create mode 100644 debian/check-mk-server.substvars create mode 100644 debian/check-mk-web.install create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/defaults.icinga create mode 100644 debian/defaults.nagios3 create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e27635d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +check-mk (1.1.2-1) UNRELEASED; urgency=low + + * Initial release. (Closes: #XXXXXX) + + -- Alexander Wirt Wed, 17 Mar 2010 15:33:37 +0100 diff --git a/debian/check-mk-agent.dirs b/debian/check-mk-agent.dirs new file mode 100644 index 0000000..b9d3298 --- /dev/null +++ b/debian/check-mk-agent.dirs @@ -0,0 +1,5 @@ +usr/bin +etc/xinetd.d +usr/lib +usr/lib/check_mk_agent/plugins +usr/lib/check_mk_agent/local diff --git a/debian/check-mk-agent.install b/debian/check-mk-agent.install new file mode 100644 index 0000000..df173db --- /dev/null +++ b/debian/check-mk-agent.install @@ -0,0 +1,4 @@ +usr/share/check_mk/agents/waitmax usr/bin +usr/share/check_mk/agents/mk_logwatch usr/lib/check_mk_agent/plugins +usr/share/check_mk/agents/logwatch.cfg etc/check_mk +usr/share/check_mk/checks diff --git a/debian/check-mk-livestatus.install b/debian/check-mk-livestatus.install new file mode 100644 index 0000000..2e77f51 --- /dev/null +++ b/debian/check-mk-livestatus.install @@ -0,0 +1,2 @@ +usr/lib/check_mk/livestatus.o +usr/bin/unixcat diff --git a/debian/check-mk-server-common.dirs b/debian/check-mk-server-common.dirs new file mode 100644 index 0000000..9ffdbeb --- /dev/null +++ b/debian/check-mk-server-common.dirs @@ -0,0 +1 @@ +etc/check_mk/conf.d diff --git a/debian/check-mk-server-common.install b/debian/check-mk-server-common.install new file mode 100644 index 0000000..40e9c0b --- /dev/null +++ b/debian/check-mk-server-common.install @@ -0,0 +1,6 @@ +etc/check_mk/main.mk +etc/check_mk/conf.d/README +var/lib/check_mk +usr/bin/check_mk +usr/share/doc/check_mk/check_mk_templates.cfg +usr/share/check_mk/modules diff --git a/debian/check-mk-server-icinga.install b/debian/check-mk-server-icinga.install new file mode 100644 index 0000000..42d7836 --- /dev/null +++ b/debian/check-mk-server-icinga.install @@ -0,0 +1 @@ +usr/share/doc/check_mk/check_mk_templates.cfg etc/icinga/objects diff --git a/debian/check-mk-server.debhelper.log b/debian/check-mk-server.debhelper.log new file mode 100644 index 0000000..4607666 --- /dev/null +++ b/debian/check-mk-server.debhelper.log @@ -0,0 +1,16 @@ +dh_prep +dh_installdirs +dh_installchangelogs +dh_installdocs +dh_installexamples +dh_install +dh_installman +dh_link +dh_strip +dh_compress +dh_fixperms +dh_installdeb +dh_shlibdeps +dh_gencontrol +dh_md5sums +dh_builddeb diff --git a/debian/check-mk-server.substvars b/debian/check-mk-server.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/debian/check-mk-server.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/debian/check-mk-web.install b/debian/check-mk-web.install new file mode 100644 index 0000000..592752b --- /dev/null +++ b/debian/check-mk-web.install @@ -0,0 +1,3 @@ +usr/share/check_mk/web +usr/share/check_mk/htdocs/* usr/share/icinga/htdocs +etc/apache2/conf.d/zzz_check_mk.conf diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4769d98 --- /dev/null +++ b/debian/control @@ -0,0 +1,89 @@ +Source: check-mk +Section: admin +Priority: optional +Maintainer: Debian Nagios Maintainer Group +Uploaders: Alexander Wirt , Jan Wagner +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.4 + +Package: check-mk-agent +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, xinetd +Description: general purpose nagios-plugin for retrieving data + Check_mk adopts a new a approach for collecting data from operating systems + and network components. It obsoletes NRPE, check_by_ssh, NSClient and + check_snmp. It has many benefits, the most important of which are: + . + * Significant reduction of CPU usage on the Nagios host. + * Automatic inventory of items to be checked on hosts. + . + This package contains the agent part of check-mk. + +Package: check-mk-server-common +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, python +Description: general purpose nagios-plugin for retrieving data + Check_mk adopts a new a approach for collecting data from operating systems + and network components. It obsoletes NRPE, check_by_ssh, NSClient and + check_snmp. It has many benefits, the most important of which are: + . + * Significant reduction of CPU usage on the Nagios host. + * Automatic inventory of items to be checked on hosts. + . + This package contains the server part of check_mk + +Package: check-mk-server-icinga +Conflicts: check-mk-server-nagios3 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, check-mk-server-common +Description: general purpose nagios-plugin for retrieving data + Check_mk adopts a new a approach for collecting data from operating systems + and network components. It obsoletes NRPE, check_by_ssh, NSClient and + check_snmp. It has many benefits, the most important of which are: + . + * Significant reduction of CPU usage on the Nagios host. + * Automatic inventory of items to be checked on hosts. + . + This package contains the icinga specific part of check_mk + +Package: check-mk-server-nagios3 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, check-mk-server-common +Conflicts: check-mk-server-icinga +Description: general purpose nagios-plugin for retrieving data + Check_mk adopts a new a approach for collecting data from operating systems + and network components. It obsoletes NRPE, check_by_ssh, NSClient and + check_snmp. It has many benefits, the most important of which are: + . + * Significant reduction of CPU usage on the Nagios host. + * Automatic inventory of items to be checked on hosts. + . + This package contains the nagios 3 specific part of check_mk + +Package: check-mk-livestatus +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: xinetd +Description: general purpose nagios-plugin for retrieving data + Check_mk adopts a new a approach for collecting data from operating systems + and network components. It obsoletes NRPE, check_by_ssh, NSClient and + check_snmp. It has many benefits, the most important of which are: + . + * Significant reduction of CPU usage on the Nagios host. + * Automatic inventory of items to be checked on hosts. + . + This package contains livestatus + +Package: check-mk-web +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: xinetd +Description: general purpose nagios-plugin for retrieving data + Check_mk adopts a new a approach for collecting data from operating systems + and network components. It obsoletes NRPE, check_by_ssh, NSClient and + check_snmp. It has many benefits, the most important of which are: + . + * Significant reduction of CPU usage on the Nagios host. + * Automatic inventory of items to be checked on hosts. + . + This package contains the webfrontend to check_mk diff --git a/debian/defaults.icinga b/debian/defaults.icinga new file mode 100644 index 0000000..dc87ae4 --- /dev/null +++ b/debian/defaults.icinga @@ -0,0 +1,38 @@ +# This file has been created during setup +# of check_mk at Sat Mar 20 10:05:23 CET 2010 +# +# Do not edit. If you want to use other +# directories please configure them in +# main.mk +check_mk_version = '1.1.2' +default_config_dir = '/etc/check_mk' +check_mk_configdir = '/etc/check_mk/conf.d' +checks_dir = '/usr/share/check_mk/checks' +check_manpages_dir = '/usr/share/doc/check_mk/checks' +modules_dir = '/usr/share/check_mk/modules' +var_dir = '/var/lib/check_mk' +lib_dir = '/usr/lib/check_mk' +autochecksdir = '/var/lib/check_mk/autochecks' +precompiled_hostchecks_dir = '/var/lib/check_mk/precompiled' +counters_directory = '/var/lib/check_mk/counters' +tcp_cache_dir = '/var/lib/check_mk/cache' +nagios_objects_file = '/etc/icinga/objects/check_mk_objects.cfg' +rrd_path = '/var/lib/check_mk/rrd' +nagios_command_pipe_path = '/var/lib/icinga/rw/icinga.cmd' +nagios_status_file = '/var/lib/icinga/status.dat' +nagios_conf_dir = '/etc/icinga/objects' +nagios_user = 'nagios' +nagios_url = '/icinga' +nagios_cgi_url = '/icinga/cgi-bin' +logwatch_notes_url = '/icinga/logwatch.php?host=%s&file=%s' +www_group = 'www-data' +nagios_config_file = '/etc/icinga/icinga.cfg' +nagios_startscript = '/etc/init.d/icinga' +nagios_binary = '/usr/sbin/icinga' +apache_config_dir = '/etc/apache2/conf.d' +htpasswd_file = '/etc/icinga/htpasswd.users' +nagios_auth_name = 'Nagios Access' +web_dir = '/usr/share/check_mk/web' +checkmk_web_uri = '/check_mk' +livestatus_unix_socket = '/var/lib/icinga/rw/live' +livebackendsdir = '/usr/share/check_mk/livestatus' diff --git a/debian/defaults.nagios3 b/debian/defaults.nagios3 new file mode 100644 index 0000000..8045ed7 --- /dev/null +++ b/debian/defaults.nagios3 @@ -0,0 +1,38 @@ +# This file has been created during setup +# of check_mk at Sun Jan 31 11:42:04 CET 2010 +# +# Do not edit. If you want to use other +# directories please configure them in +# main.mk +check_mk_version = '1.1.2' +default_config_dir = '/etc/check_mk' +check_mk_configdir = '/etc/check_mk/conf.d' +checks_dir = '/usr/share/check_mk/checks' +check_manpages_dir = '/usr/share/doc/check_mk/checks' +modules_dir = '/usr/share/check_mk/modules' +var_dir = '/var/lib/check_mk' +lib_dir = '/usr/lib/check_mk' +autochecksdir = '/var/lib/check_mk/autochecks' +precompiled_hostchecks_dir = '/var/lib/check_mk/precompiled' +counters_directory = '/var/lib/check_mk/counters' +tcp_cache_dir = '/var/lib/check_mk/cache' +nagios_objects_file = '/etc/nagios3/conf.d/check_mk_objects.cfg' +rrd_path = '/var/lib/check_mk/rrd' +nagios_command_pipe_path = '/var/lib/nagios3/rw/nagios.cmd' +nagios_status_file = '/var/cache/nagios3/status.dat' +nagios_conf_dir = '/etc/nagios3/conf.d' +nagios_user = 'nagios' +nagios_url = '/nagios3' +nagios_cgi_url = '/nagios3/cgi-bin' +logwatch_notes_url = '/nagios3/logwatch.php?host=%s&file=%s' +www_group = 'nagios' +nagios_config_file = '/etc/nagios3/nagios.cfg' +nagios_startscript = '/etc/init.d/nagios3' +nagios_binary = '/usr/sbin/nagios3' +apache_config_dir = '/etc/apache2/mods-enabled' +htpasswd_file = '/etc/nagios3/htpasswd.users' +nagios_auth_name = 'Nagios Access' +web_dir = '/usr/share/check_mk/web' +checkmk_web_uri = '/check_mk' +livestatus_unix_socket = '/var/lib/nagios3/rw/live' +livebackendsdir = '/usr/share/check_mk/livestatus' diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f61d15f --- /dev/null +++ b/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + mkdir agents + tar -xzf agents.tar.gz -C agents + mkdir docs + tar -xzf doc.tar.gz -C docs + mkdir config + tar -xzf conf.tar.gz -C config + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #cd agents ; $(MAKE) + #docbook-to-man debian/check-mk.sgml > check-mk.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + rm -rf agents docs config livestatus.src + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + mkdir -p debian/tmp + DESTDIR=debian/tmp ./setup.sh --yes + rm debian/tmp/usr/share/check_mk/modules/defaults + mkdir -p debian/check-mk-server-icinga/usr/share/check_mk/modules/ + cp debian/defaults.icinga debian/check-mk-server-icinga/usr/share/check_mk/modules/defaults + cp debian/tmp/usr/share/check_mk/agents/check_mk_agent.linux debian/check-mk-agent/usr/bin/check_mk_agent + chmod +x debian/check-mk-agent/usr/bin/check_mk_agent + cp debian/tmp/usr/share/check_mk/agents/xinetd.conf debian/check-mk-agent/etc/xinetd.d/check_mk + + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_install + +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure -- 2.30.2