Module: check_mk
Branch: master
Commit: 1e0f471359f584f103c434f5fcb609dbe469994c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1e0f471359f584…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Feb 4 15:25:54 2015 +0100
#1934 WATO Web-API: Documentation is finally available
If you want to manage WATO hosts without a graphical user interface
you might have a look at <a href="http://mathias-kettner.com/checkmk_wato_webapi.html">this</a>
documentation.
---
.werks/1934 | 11 +++++++++++
ChangeLog | 1 +
2 files changed, 12 insertions(+)
diff --git a/.werks/1934 b/.werks/1934
new file mode 100644
index 0000000..60886d2
--- /dev/null
+++ b/.werks/1934
@@ -0,0 +1,11 @@
+Title: WATO Web-API: Documentation is finally available
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.7i1
+Date: 1423059355
+Class: feature
+
+If you want to manage WATO hosts without a graphical user interface
+you might have a look at <a href="http://mathias-kettner.com/checkmk_wato_webapi.html">this</a>
+documentation.
diff --git a/ChangeLog b/ChangeLog
index ecda0ef..7a8e64d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -183,6 +183,7 @@
* 1868 "Successfully created the host" message is also shown on host diagnose page now
* 1674 ibm_svc_license / other license checks: now able to configure limits...
NOTE: Please refer to the migration notes!
+ * 1934 WATO Web-API: Documentation is finally available...
* 1761 FIX: Ruleset search is now consistent for host & serviceparameters and manual checks
* 1765 FIX: Fixed bug when generating nagvis backends while having sites with livestatus proxy configured...
* 1789 FIX: Fix preview of passive checks in WATO list of services
Module: check_mk
Branch: master
Commit: 1ada6b897ed10932979e00a66a43f836c10c8d18
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ada6b897ed109…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 2 15:33:48 2015 +0100
The host/service type icon can now be disabled by rule
---
web/plugins/views/painters.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index cbcb475..3b9cc21 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -227,7 +227,9 @@ def paint_type_icon(what, row):
if icon.get('type', 'icon') == 'type_icon':
try:
result = icon['paint'](what, row, tags, custom_vars)
- if result is not None:
+ if result == "":
+ break # Explicitly disabled. Don't show an icon
+ elif result is not None:
if type(result) in [str,unicode]:
result = result, what == 'service' and row['service_description'] or row['host_name']
Module: check_mk
Branch: master
Commit: 61c8b1573d5ff863b27224b6632978c2dcdb44a5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=61c8b1573d5ff8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 4 15:12:44 2015 +0100
#1975 FIX check_bi_aggr: Ignoring proxy settings from environment now
---
.werks/1975 | 10 ++++++++++
ChangeLog | 3 ++-
doc/treasures/active_checks/check_bi_aggr | 5 ++++-
web/plugins/wato/active_checks.py | 4 +++-
4 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/.werks/1975 b/.werks/1975
new file mode 100644
index 0000000..fe568ce
--- /dev/null
+++ b/.werks/1975
@@ -0,0 +1,10 @@
+Title: check_bi_aggr: Ignoring proxy settings from environment now
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1423059135
+
+
diff --git a/ChangeLog b/ChangeLog
index 30b68a6..ecda0ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,9 +71,9 @@
* 1219 synology_disks, synology_fans, synology_info, synology_raid, synology_status, synology_update: Multiple Synology NAS Checks
* 1968 qlogic_fcport, qlogic_sanbox, qlogic_sanbox_fabric_element: Supporting SAN Switch Module for IBM BladeCenter(R) now
* 1220 if,if64: Discovery can now be based on port description...
- * 1860 df and other filesystem checks: process total fs size as perfdata...
* 1930 Windows agent: now able to unpack plugins.cap file (created by Check_MK agent bakery)...
* 1933 esx_vsphere_objects: now able to set a different alert level when the host/vm reports 'unknown'...
+ * 1860 df and other filesystem checks: process total fs size as perfdata...
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
@@ -141,6 +141,7 @@
NOTE: Please refer to the migration notes!
* 1931 FIX: agent_vsphere: no longer crashes when host has no license information
* 1932 FIX: check_http: Check SSL Certificate: did not work when SNI Option was set...
+ * 1975 FIX: check_bi_aggr: Ignoring proxy settings from environment now
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request, added mailto link for error report...
diff --git a/doc/treasures/active_checks/check_bi_aggr b/doc/treasures/active_checks/check_bi_aggr
index 668b961..7e686cb 100755
--- a/doc/treasures/active_checks/check_bi_aggr
+++ b/doc/treasures/active_checks/check_bi_aggr
@@ -26,6 +26,9 @@
import sys, getopt, urllib2, traceback
+# tell urllib2 not to honour "http(s)_proxy" env variables
+urllib2.getproxies = lambda: {}
+
def usage():
sys.stderr.write("""
USAGE: check_bi_aggr -b <BASE_URL> -a <AGGR_NAME> -u <USER> -s <SECRET>
@@ -130,7 +133,7 @@ except urllib2.socket.timeout:
sys.stdout.write('ERROR: Socket timeout while opening URL: %s\n' % (url))
sys.exit(3)
except urllib2.URLError:
- sys.stdout.write("UNKNOWN: Nagios not available.\n")
+ sys.stdout.write("UNKNOWN: Core not available.\n")
sys.exit(3)
except Exception, e:
sys.stdout.write('ERROR: Exception while opening URL (%s): %s\n' %
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index 1488d43..52f63fe 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -1388,7 +1388,9 @@ register_rule(group,
),
TextAscii(
title = _("Aggregation Name"),
- help = _("The name of the aggregation to fetch. It will be added to the service description."),
+ help = _("The name of the aggregation to fetch. It will be added to the service description. You can use "
+ "macros like <tt>$HOSTADDRESS$</tt> and <tt>$HOSTNAME$</tt> within this parameter to make them be replaced by "
+ "the hosts values."),
allow_empty = False
),
TextAscii(
Module: check_mk
Branch: master
Commit: 0097dd594c0fa86d0c2d2b0ae53db4bf9547833a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0097dd594c0fa8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 4 11:52:57 2015 +0100
Fixed some english texts
---
web/htdocs/wato.py | 6 +++---
web/plugins/wato/check_parameters.py | 16 ++++++++--------
web/plugins/wato/mknotifyd.py | 2 +-
web/plugins/wato/notifications.py | 2 +-
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ab78876..a6f93fd 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8375,9 +8375,9 @@ def vs_notification_rule(userid = None):
),
( "match_contactgroups",
GroupChoice("contact",
- title = _("Match Contact Groups (cmc only)"),
- help = _("The host/ service must be in one of the selected contact groups. Only works with Check_MK Microcore. " \
- "If you don't use the CMC, that filter will not apply"),
+ title = _("Match Contact Groups (CMC only)"),
+ help = _("The host/service must be in one of the selected contact groups. This only works with Check_MK Micro Core. " \
+ "If you don't use the CMC that filter will not apply"),
allow_empty = False,
)
),
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 637c6f6..470ae3b 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -3721,22 +3721,22 @@ register_check_parameters(
( "apply_lag",
Tuple(
title = _("Apply Lag Maximum Time"),
- help = _( "The maximum limit for the apply lag in v$dataguard_stats."),
+ help = _( "The maximum limit for the apply lag in <tt>v$dataguard_stats</tt>."),
elements = [
Age(title = _("Warning at"),),
Age(title = _("Critical at"),)])),
( "apply_lag_min",
Tuple(
title = _("Apply Lag Minimum Time"),
- help = _( "The minimum limit for the apply lag in v$dataguard_stats. "
- "This is only usable when Maximum Time has beend configured. "),
+ help = _( "The minimum limit for the apply lag in <tt>v$dataguard_stats</tt>. "
+ "This is only useful if also <i>Apply Lag Maximum Time</i> has been configured."),
elements = [
Age(title = _("Warning at"),),
Age(title = _("Critical at"),)])),
( "transport_lag",
Tuple(
title = _("Transport Lag"),
- help = _( "The limit for the transport lag in v$dataguard_stats."),
+ help = _( "The limit for the transport lag in <tt>v$dataguard_stats</tt>"),
elements = [
Age(title = _("Warning at"),),
Age(title = _("Critical at"),)])),
@@ -7598,7 +7598,7 @@ register_check_parameters(
elements = [
Integer(
title = _("Maximum age"),
- help = _("Maximum accepted age of the reported data in seconds."),
+ help = _("Maximum accepted age of the reported data in seconds"),
unit = _("seconds"),
default_value = 60,
),
@@ -7607,7 +7607,7 @@ register_check_parameters(
allow_empty = False
),
title = _("Expected DC"),
- help = _("The hostname of the expected distinguished controller of the cluster."),
+ help = _("The hostname of the expected distinguished controller of the cluster"),
),
Optional(
Integer(
@@ -7615,14 +7615,14 @@ register_check_parameters(
default_value = 2
),
title = _("Number of Nodes"),
- help = _("The expected number of nodes in the cluster."),
+ help = _("The expected number of nodes in the cluster"),
),
Optional(
Integer(
min_value = 0,
),
title = _("Number of Resources"),
- help = _("The expected number of resources in the cluster."),
+ help = _("The expected number of resources in the cluster"),
),
]
),
diff --git a/web/plugins/wato/mknotifyd.py b/web/plugins/wato/mknotifyd.py
index ed5cc6a..4cb780c 100644
--- a/web/plugins/wato/mknotifyd.py
+++ b/web/plugins/wato/mknotifyd.py
@@ -45,7 +45,7 @@ if mknotifyd_enabled:
help = _("The option will make notifications handled asynchronously. For each notification a spool "
"file will be created and later processes by the notification spooler. This avoids a hanging "
"core in case of notifications that need very long to execute. It also enables a retry in "
- "case of failed notifications. Please not that this is not useful if you only use notification "
+ "case of failed notifications. Please note that this is not useful if you only use notification "
"methods that have their own spooling (like email or SMS tools)."),
default_value = False),
domain = "check_mk"
diff --git a/web/plugins/wato/notifications.py b/web/plugins/wato/notifications.py
index d821fee..ed62b1b 100644
--- a/web/plugins/wato/notifications.py
+++ b/web/plugins/wato/notifications.py
@@ -189,7 +189,7 @@ register_notification_parameters("mkeventd",
( "facility",
DropdownChoice(
title = _("Syslog Facility to use"),
- help = _("The notifications will be converted into syslog message with "
+ help = _("The notifications will be converted into syslog messages with "
"the facility that you choose here. In the Event Console you can "
"later create a rule matching this facility."),
choices = syslog_facilities,
process total fs size as perfdata
Message-ID: <54d101ca.PN716HMBM2MJIM73%gg(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: f6aa51ca381fb724ada14ba386e9e4afd8dee64d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f6aa51ca381fb7…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Tue Feb 3 18:12:52 2015 +0100
#1860 df and other filesystem checks: process total fs size as perfdata
Since the total size of a filesystem may change we store the total size
as additional performance data and plot it with rrdtools like the used space.
As a consequence another rrd database file is created for every filesystem,
and slightly more disk space will be used for the rrd data of your site.
---
.werks/1860 | 13 +++++++++++++
ChangeLog | 1 +
checks/df.include | 1 +
pnp-templates/check_mk-df.php | 22 +++++++++++++---------
4 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/.werks/1860 b/.werks/1860
new file mode 100644
index 0000000..6495038
--- /dev/null
+++ b/.werks/1860
@@ -0,0 +1,13 @@
+Title: df and other filesystem checks: process total fs size as perfdata
+Level: 2
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1422983316
+Class: feature
+
+
+Since the total size of a filesystem may change we store the total size
+as additional performance data and plot it with rrdtools like the used space.
+As a consequence another rrd database file is created for every filesystem,
+and slightly more disk space will be used for the rrd data of your site.
diff --git a/ChangeLog b/ChangeLog
index 6ca25b2..b6f1e91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,7 @@
* 1219 synology_disks, synology_fans, synology_info, synology_raid, synology_status, synology_update: Multiple Synology NAS Checks
* 1968 qlogic_fcport, qlogic_sanbox, qlogic_sanbox_fabric_element: Supporting SAN Switch Module for IBM BladeCenter(R) now
* 1220 if,if64: Discovery can now be based on port description...
+ * 1860 df and other filesystem checks: process total fs size as perfdata...
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
diff --git a/checks/df.include b/checks/df.include
index b48a5eb..921e126 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -309,6 +309,7 @@ def df_check_filesystem_single(hostname, mountpoint, size_mb, avail_mb, reserved
# TODO: In some future version use a fixed name as perf variable
perf_var = mountpoint.replace(" ", "_")
perfdata = [(perf_var, str(used_mb) + 'MB', warn_mb, crit_mb, 0, size_mb)]
+ perfdata.append(('fs_size', str(size_mb) + 'MB'))
if size_gb < 10240:
infotext = "%.1f%% used (%.2f of %.2f GB)" % (used_perc, used_mb / 1024.0, size_gb)
diff --git a/pnp-templates/check_mk-df.php b/pnp-templates/check_mk-df.php
index d936251..1e4126a 100644
--- a/pnp-templates/check_mk-df.php
+++ b/pnp-templates/check_mk-df.php
@@ -66,25 +66,30 @@ $opt[1] = "--vertical-label GB -l 0 -u $maxgb --title '$hostname: Filesystem $fs
# First graph show current filesystem usage. If there is a "reserved" RRD
# then substract that and show as extra area
+$def[1] = "DEF:mb=$RRDFILE[1]:$DS[1]:MAX ";
if (isset($RRD['reserved']))
{
- $def[1] = "DEF:mb=$RRDFILE[1]:$DS[1]:MAX ";
$def[1] .= "DEF:reserved=$RRD[reserved] ";
$def[1] .= "CDEF:used=mb,reserved,- ";
$def[1] .= "CDEF:var1=used,1024,/ ";
- $def[1] .= "AREA:var1#00ffc6:\"used space on $fsname\\n\" ";
+ $def[1] .= "AREA:var1#00ffc6:\"used space on $fsname\" ";
$def[1] .= "CDEF:reserved_gb=reserved,1024,/ ";
- $def[1] .= "AREA:reserved_gb#48b79e:\"reserved for root\\n\" ";
-
+ $def[1] .= "AREA:reserved_gb#B748B2:\"reserved for root\\n\" ";
}
-else
-{
-#
- $def[1] = "DEF:mb=$RRDFILE[1]:$DS[1]:MAX ";
+else {
$def[1] .= "CDEF:var1=mb,1024,/ ";
$def[1] .= "AREA:var1#00ffc6:\"used space on $fsname\\n\" ";
}
+# Optional size of fs plotted
+if(isset($RRD['fs_size'])) {
+ $def[1] .= "DEF:size_plotted_mb=".$RRD['fs_size']." ";
+ $def[1] .= "CDEF:size_plotted_gb=size_plotted_mb,1024,/ ";
+ $def[1] .= "LINE:size_plotted_gb#003300:\"Size $sizegb GB \" ";
+} else {
+ $def[1] .= "HRULE:$maxgb#003300:\"Size ($sizegb GB) \" ";
+}
+
# Optional uncommitted usage e.g. for esx hosts
if (isset($RRD['uncommitted'])) {
$def[1] .= "DEF:uncommitted_mb=".$RRD['uncommitted']." ";
@@ -95,7 +100,6 @@ else {
$def[1] .= "CDEF:total_gb=var1 ";
}
-$def[1] .= "HRULE:$maxgb#003300:\"Size ($sizegb GB) \" ";
$def[1] .= "HRULE:$warngb#ffff00:\"Warning at $warngbtxt GB \" ";
$def[1] .= "HRULE:$critgb#ff0000:\"Critical at $critgbtxt GB \\n\" ";
$def[1] .= "GPRINT:var1:LAST:\"current\: %6.2lf GB\" ";