[Pkg-nagios-changes] [pkg-nagios] r1660 - in nagios-plugins/trunk/debian: . pluginconfig
Jan Wagner
waja at alioth.debian.org
Thu May 14 21:42:36 UTC 2009
Author: waja
Date: 2009-05-14 21:42:36 +0000 (Thu, 14 May 2009)
New Revision: 1660
Modified:
nagios-plugins/trunk/debian/README.Debian
nagios-plugins/trunk/debian/changelog
nagios-plugins/trunk/debian/pluginconfig/nt.cfg
Log:
explanation about predefined check commands
Modified: nagios-plugins/trunk/debian/README.Debian
===================================================================
--- nagios-plugins/trunk/debian/README.Debian 2009-05-14 19:54:24 UTC (rev 1659)
+++ nagios-plugins/trunk/debian/README.Debian 2009-05-14 21:42:36 UTC (rev 1660)
@@ -16,6 +16,38 @@
http://nagios.sourceforge.net/docs/3_0/plugins.html
================================================================================
+predefined / shipped check commands
+================================================================================
+
+we are shipping predefined checks, to make users life easier. at the first look,
+this seems really nice. providing checks for every special case (see check_http)
+may end up in a unsupportable state of our package.
+for example one check is testing a service on a special port, where we provide
+a check command. after some time, this service changes its port after some time,
+cause the developers of this software decided for any reason to do so. changing
+the port in the existing check will break installations, which are using the
+service with the old behavior. new users will getting confused of not using the
+correct port for their shiny service.
+cause of this conflict, we try to provide flexible checks, which may look
+complicated at first, but giving the user more power.
+
+a good example for using such a general approach is check_nt / check_nscp. some
+3rd party sources (guessing they can traced back to one) are suggesting using
+two args in some way like:
+
+define command {
+command_name check_nt
+command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
+}
+
+beside specifying not the port, we are not using "$ARG2$", cause all arguments
+of "$ARG2$" can just be used in "$ARG1$" without any problem.
+this gives you the possibility to use every check in your service definition,
+without the problem about changes in your environment. you can easily change
+your service definition as soon your environment changes without breaking the
+command definition.
+
+================================================================================
different plugin packages and how to avoid installing massive dependencies
================================================================================
@@ -27,7 +59,7 @@
plugins needing root privilege
================================================================================
-the check_dhcp and check_icmp plugins require root privileges to
+the check_dhcp, check_icmp and maybe others plugins require root privileges to
run, because of the low-level packet mangling that they perform.
but, in the interest of the "safe default", these plugins will not
be installed with the suid bit set. there are two recommended ways
Modified: nagios-plugins/trunk/debian/changelog
===================================================================
--- nagios-plugins/trunk/debian/changelog 2009-05-14 19:54:24 UTC (rev 1659)
+++ nagios-plugins/trunk/debian/changelog 2009-05-14 21:42:36 UTC (rev 1660)
@@ -3,6 +3,8 @@
* add trailing $ to check_httpname, thanks Daniel Pocock (Closes: #524629)
* add informations into README.Debian how to use plugins (Closes: #525168)
* add check_nscp which uses the default port of NSClient++ (Closes: #528262)
+ * providing some explanation about predefined check commands in README.Debian
+ * pointing to README.Debian in nt.cfg
* add 43_check_ntp_segfaults.dpatch to fix buffer overflow in check_ntp and
check_ntp_peer, thanks to Andreas Olsson (Closes: #528686)
Modified: nagios-plugins/trunk/debian/pluginconfig/nt.cfg
===================================================================
--- nagios-plugins/trunk/debian/pluginconfig/nt.cfg 2009-05-14 19:54:24 UTC (rev 1659)
+++ nagios-plugins/trunk/debian/pluginconfig/nt.cfg 2009-05-14 21:42:36 UTC (rev 1660)
@@ -1,3 +1,7 @@
+# If you are confused about this command definition, cause you was
+# reading other suggestions, please have a look into
+# /usr/share/doc/nagios-plugins/README.Debian
+
# 'check_nt' command definition
define command {
command_name check_nt
More information about the Pkg-nagios-changes
mailing list