Module: check_mk
Branch: master
Commit: 09fd729b78751febf974041a45afc96a1cda515d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=09fd729b78751f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 28 12:31:56 2011 +0100
setup: fixed help texts
---
scripts/setup.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/setup.sh b/scripts/setup.sh
index b0155c3..cae47b3 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -233,13 +233,13 @@ always have to specify the installation path when calling check_mk"
ask_dir confdir /etc/$NAME $HOMEBASEDIR $OMD_ROOT/etc/check_mk "Check_MK configuration" \
"Directory where check_mk looks for its main configuration file main.mk.
An example configuration file will be installed there if no main.mk is
-present from a previous version."
+present from a previous version"
ask_dir sharedir /usr/share/$NAME $HOMEBASEDIR $OMD_ROOT/local/share/check_mk "Check_MK software" \
"The base directory for the software installation of Check_MK. This
-directory will get the subdirectories checks, modules, web, locale,
-agents and pnp-templates. Note: in previous versions it was possible
-to specify each of those directories separately. This is no longer possible."
+directory will get the subdirectories checks, modules, web, locale and
+agents. Note: in previous versions it was possible to specify each of
+those directories separately. This is no longer possible"
ask_dir docdir /usr/share/doc/$NAME $HOMEBASEDIR/doc $OMD_ROOT/local/share/check_mk/doc "documentation" \
"Some documentation about check_mk will be installed here. Please note,
Module: check_mk
Branch: master
Commit: da16d4b4df9517b39aff093dbc01bb290227dbbe
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da16d4b4df9517…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 28 12:24:26 2011 +0100
Updated bug entries #0088
---
.bugs/88 | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.bugs/88 b/.bugs/88
index 84b5611..ba70af7 100644
--- a/.bugs/88
+++ b/.bugs/88
@@ -1,12 +1,16 @@
Title: Move check_mk_templates.cfg to /usr/share/check_mk
Component: core
+State: done
+Class: cleanup
Benefit: 1
-State: open
Cost: 2
Date: 2011-01-04 13:51:15
-Class: cleanup
Targetversion: 1.2.0
The directory /usr/share/doc is not optimal since the templates
are no longer an example but a vital part - usually never changed
by the admin.
+
+2011-12-28 12:05:26: changed state open -> done
+This is now implemented. Positive tests are still being waited
+for.
Module: check_mk
Branch: master
Commit: 45b1c1d52133cbda0e343b434d983fc6f739893f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=45b1c1d52133cb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 28 12:03:46 2011 +0100
Moved check_mk_templates.cfg to share/check_mk
Currently that file was living in doc/, which does not
make sense. In order for that the setup process was
slightly changed. Instead of five separate directories
for agents, checks, etc. there is now one share_dir.
---
Makefile | 1 +
check_mk.spec | 1 +
...heck_mk_templates.cfg => check_mk_templates.cfg | 0
scripts/setup.sh | 49 ++++++++------------
4 files changed, 21 insertions(+), 30 deletions(-)
diff --git a/Makefile b/Makefile
index 71eb3b6..569484d 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,7 @@ dist: mk-livestatus
@echo "Making $(DISTNAME)"
rm -rf $(DISTNAME)
mkdir -p $(DISTNAME)
+ tar czf $(DISTNAME)/share.tar.gz $(TAROPTS) check_mk_templates.cfg
tar czf $(DISTNAME)/checks.tar.gz $(TAROPTS) -C checks $$(cd checks ; ls)
tar czf $(DISTNAME)/checkman.tar.gz $(TAROPTS) -C checkman $$(cd checkman ; ls)
tar czf $(DISTNAME)/web.tar.gz $(TAROPTS) -C web htdocs plugins
diff --git a/check_mk.spec b/check_mk.spec
index 989884d..6ea088e 100644
--- a/check_mk.spec
+++ b/check_mk.spec
@@ -145,6 +145,7 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/check_mk/checks
/usr/share/check_mk/modules
/usr/share/check_mk/pnp-templates/*
+/usr/share/check_mk/check_mk_templates.cfg
/usr/share/doc/check_mk
%dir /var/lib/check_mk
%dir %attr(-,nagios,root) /var/lib/check_mk/counters
diff --git a/doc/check_mk_templates.cfg b/check_mk_templates.cfg
similarity index 100%
rename from doc/check_mk_templates.cfg
rename to check_mk_templates.cfg
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 60d9667..b0155c3 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -235,26 +235,11 @@ ask_dir confdir /etc/$NAME $HOMEBASEDIR $OMD_ROOT/etc/check_mk "Check_MK configu
An example configuration file will be installed there if no main.mk is
present from a previous version."
-ask_dir checksdir /usr/share/$NAME/checks $HOMEBASEDIR/checks $OMD_ROOT/local/share/check_mk/checks "check_mk checks" \
- "check_mk's different checks are implemented as small Python scriptlets
-that parse and interpret the various output sections of the agents. Where
-shall those be installed"
-
-ask_dir modulesdir /usr/share/$NAME/modules $HOMEBASEDIR/modules $OMD_ROOT/local/share/check_mk/modules "check_mk modules" \
- "Directory for main componentents of check_mk itself. The setup will
-also create a file 'defaults' in that directory that reflects all settings
-you are doing right now"
-
-ask_dir web_dir /usr/share/$NAME/web $HOMEBASEDIR/web $OMD_ROOT/local/share/check_mk/web "Check_MK Multisite GUI" \
- "Directory where Check_mk's Multisite GUI should be installed. Multisite is
-an optional replacement for the Nagios GUI, but is also needed for the
-logwatch extension. That directory should [4;1mnot[0m be
-in your WWW document root. A separate apache configuration file will be
-installed that maps the directory into your URL schema"
-
-ask_dir localedir /usr/share/$NAME/locale $HOMEBASEDIR/locale $OMD_ROOT/local/share/check_mk/locale "Localization dir" \
- "Base directory for gettext localization files. Multisite comes prepared for localzation
-but does not ship any language per default."
+ask_dir sharedir /usr/share/$NAME $HOMEBASEDIR $OMD_ROOT/local/share/check_mk "Check_MK software" \
+ "The base directory for the software installation of Check_MK. This
+directory will get the subdirectories checks, modules, web, locale,
+agents and pnp-templates. Note: in previous versions it was possible
+to specify each of those directories separately. This is no longer possible."
ask_dir docdir /usr/share/doc/$NAME $HOMEBASEDIR/doc $OMD_ROOT/local/share/check_mk/doc "documentation" \
"Some documentation about check_mk will be installed here. Please note,
@@ -270,10 +255,6 @@ ask_dir vardir /var/lib/$NAME $HOMEBASEDIR/var $OMD_ROOT/var/check_mk "working d
other files into this directory. The setup will create several subdirectories
and makes them writable by the Nagios process"
-ask_dir agentsdir /usr/share/$NAME/agents $HOMEBASEDIR/agents $OMD_ROOT/local/share/check_mk/agents "agents for operating systems" \
- "Agents for various operating systems will be installed here for your
-conveniance. Take them and install them onto your target hosts"
-
ask_title "Configuration of Linux/UNIX Agents"
@@ -433,6 +414,11 @@ other systems. Currently this is only Nagvis, but other might follow
later."
fi
+checksdir=$sharedir/checks
+modulesdir=$sharedir/modules
+web_dir=$sharedir/web
+localedir=$sharedir/locale
+agentsdir=$sharedir/agents
create_defaults ()
{
@@ -450,6 +436,7 @@ cat <<EOF
check_mk_version = '$VERSION'
default_config_dir = '$confdir'
check_mk_configdir = '$confdir/conf.d'
+share_dir = '$sharedir'
checks_dir = '$checksdir'
check_manpages_dir = '$checkmandir'
modules_dir = '$modulesdir'
@@ -615,6 +602,8 @@ do
fi
if [ -z "$YES" ] ; then echo ")" ; fi
fi &&
+ mkdir -p $DESTDIR$sharedir &&
+ tar xzf $SRCDIR/share.tar.gz -C $DESTDIR$sharedir &&
mkdir -p $DESTDIR$modulesdir &&
create_defaults > $DESTDIR$modulesdir/defaults &&
mkdir -p $DESTDIR$localedir &&
@@ -676,14 +665,14 @@ do
ln -snf check_mk $DESTDIR$bindir/cmk &&
echo -e "#!/bin/sh\nexec python $modulesdir/check_mk.py -P "'"$@"' > $DESTDIR$bindir/mkp &&
chmod 755 $DESTDIR$bindir/mkp &&
- sed -i "s#@BINDIR@#$bindir#g" $DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@VARDIR@#$vardir#g" $DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@CHECK_ICMP@#$check_icmp_path#g" $DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@CGIURL@#${url_prefix}nagios/cgi-bin/#g" $DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@PNPURL@#${url_prefix}pnp4nagios/#g" $DESTDIR$docdir/check_mk_templates.cfg &&
+ sed -i "s#@BINDIR@#$bindir#g" $DESTDIR$sharedir/check_mk_templates.cfg &&
+ sed -i "s#@VARDIR@#$vardir#g" $DESTDIR$sharedir/check_mk_templates.cfg &&
+ sed -i "s#@CHECK_ICMP@#$check_icmp_path#g" $DESTDIR$sharedir/check_mk_templates.cfg &&
+ sed -i "s#@CGIURL@#${url_prefix}nagios/cgi-bin/#g" $DESTDIR$sharedir/check_mk_templates.cfg &&
+ sed -i "s#@PNPURL@#${url_prefix}pnp4nagios/#g" $DESTDIR$sharedir/check_mk_templates.cfg &&
mkdir -p "$DESTDIR$nagconfdir"
if [ ! -e $DESTDIR$nagconfdir/check_mk_templates.cfg ] ; then
- ln -s $docdir/check_mk_templates.cfg $DESTDIR$nagconfdir 2>/dev/null
+ ln -s $sharedir/check_mk_templates.cfg $DESTDIR$nagconfdir 2>/dev/null
fi
if [ -n "$nagiosaddconf" -a -n "$DESTDIR$nagios_config_file" ] ; then
echo "# added by setup.sh of check_mk " >> $DESTDIR$nagios_config_file
Module: check_mk
Branch: master
Commit: 3b028040348d584fdf3e32bdeebbdb4ccf583b83
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3b028040348d58…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 28 11:05:03 2011 +0100
Cleaned up comments in check_mk_templates.cfg
---
doc/check_mk_templates.cfg | 33 ++++++++++++++++++++++-----------
1 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/doc/check_mk_templates.cfg b/doc/check_mk_templates.cfg
index 4b8fb15..47fd36d 100644
--- a/doc/check_mk_templates.cfg
+++ b/doc/check_mk_templates.cfg
@@ -1,15 +1,25 @@
-# This is an example configuration file for integrating
-# check_mk into Nagios. It defines several templates for
-# hosts and services that are referred to by the Nagios-
-# configuration output by check_mk. It also defines
-# commands called by active check_mk-checks.
+# These file contains templates for monitoring objects. The
+# configuration that Check_MK creates uses these templates.
+# You *can* modify this file, but if you want to change parameters
+# for hosts and services a better idea is using extra_host_conf
+# and extra_service_conf.
+#
+# OMD users: your modifications to this file are handled
+# by 'omd update' so no problems should arise during an
+# update as long as your modifications to not collide
+# with modifications due to new versions of the file. OMD
+# will let you interactively resolve such a conflict.
+#
+# Non-OMD users: Usually this file is created as a symlink
+# in nagios/etc/conf.d (or objects or whatever directory
+# you are using) pointing to the shipped file. If you want
+# to modify this file, then replace the symlink with a true
+# copy of the file. Note, however, that a software update
+# of Check_MK will not update your check_mk_templates.cfg
+# anymore and you might get incompatible as time goes by.
# ------------------------------------------------------------------
-# In most cases it should be sufficient to copy or
-# symlink this file into your nagios object-directory
-# without changing it.
-
# ____ _ _
# / ___|___ _ __ | |_ __ _ ___| |_ ___
# | | / _ \| '_ \| __/ _` |/ __| __/ __|
@@ -18,11 +28,12 @@
#
# This contact is only needed while you have not configured contacts
-# for your hosts and services with the varibables
+# for your hosts and services with the variables
# service_contactgroups and host_contactgroups. This is, because
# Nagios does not allow a host or service to not have a contact.
# And we want this default configuration file to be complete
# and work.
+
define contact {
contact_name check_mk
alias check_mk dummy contact
@@ -234,7 +245,7 @@ define service {
# the configuration variable service_dependencies. Since we
# only deal with passive checks the dependencies are not
# used to suppress service checks. But they are very useful
-# for suppression notifications. If you set inherits_parent
+# for suppressing notifications. If you set inherits_parent
# to 1, then if A depends on B and B depends on C, A will
# automatically depend on C. This is usually what you want.
# If A depends on B and B is in WARNING state, the notification
Module: check_mk
Branch: master
Commit: e92ba21038509ff2fe297a0ea2ab8cef9dfb88bb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e92ba21038509f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 28 09:53:04 2011 +0100
Updated bug entries #0061
---
.bugs/61 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/61 b/.bugs/61
index 6f7d209..fc5d568 100644
--- a/.bugs/61
+++ b/.bugs/61
@@ -1,10 +1,10 @@
Title: Installation von FreeBSD Agent dokumentieren
Component: docu
+State: done
+Class: todo
Benefit: 1
-State: open
Cost: 2
Date: 2010-12-21 22:19:48
-Class: todo
Targetversion: 1.2.0
Auf der Homepage sollte ein Hinweis platziert werden, dass es einen neuen
@@ -25,3 +25,6 @@ Eventuell kann man eine Verteilerseite machen, in der die Installation der
Agenten auf allen Betriebssystemen beschrieben wird - inklusive Link zum
(separaten) Download der Agenten.
+
+2011-12-28 09:53:01: changed state open -> done
+Ein neuer Artikel existiert nun.