raritan_pdu_inlet, ups_socomec_outphase:
renamed services to be
consistent
Message-ID: <54e60875.Jomx55fKIwuGNY9L%mk(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: e2835ad6b5aa3d4845eca9a9115fcdc36b75f111
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e2835ad6b5aa3d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 19 16:59:43 2015 +0100
#1999 FIX raritan_pdu_inlet_summary, raritan_pdu_inlet, ups_socomec_outphase: renamed services to be consistent
These three checks have been converted to the new generic implementation
for electrical phases. That way the service descriptions have been renamed
to consistently begin with <tt>Input</tt> or <tt>Output</tt>. Also the word
<tt>Phase</tt> has been moved into the item. And the name of the performance
value <tt>load</tt> has been renamed to <tt>output_load</tt>. This means
that you need to redo service discovery and new RRD databases will be created.
---
.werks/1999 | 14 +++
ChangeLog | 2 +
checks/elphase.include | 162 ++++++++--------------------------
checks/raritan_pdu_inlet | 5 +-
checks/raritan_pdu_inlet.include | 8 +-
checks/raritan_pdu_inlet_summary | 2 +-
checks/ups_socomec_outphase | 14 +--
web/plugins/metrics/check_mk.py | 44 +++++++--
web/plugins/wato/check_parameters.py | 10 +--
9 files changed, 113 insertions(+), 148 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e2835ad6b5…
Module: check_mk
Branch: master
Commit: d69c5b6808fbcb1e9a0de22bdb579185438735d0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d69c5b6808fbcb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 19 13:33:39 2015 +0100
#1998 statgrab_net: New implementation of network interface monitoring via statgrab
Previously when monitoring network interfaces on Solaris and HP-UX you would have
tree checks per Interface: For state, counters, and speed. These three have now
been replaced by one new check simply named {Interface}. This uses the same implementation
as all other interface checks in Check_MK now. This means that you can do configuration
via WATO, have all features like averaging and predictive monitoring, interface grouping
and much more.
Note: This is an incompatible change. You will have to redo service discovery on the
machines using statgrab. The old services will then vanish. New ones will appear. As
long as you do not do this, the existing checks will go to UNKNOWN.
---
.werks/1998 | 18 +++
ChangeLog | 2 +
checkman/statgrab_net | 22 ++++
checkman/statgrab_net.ctr | 24 ----
checkman/statgrab_net.link | 33 -----
checkman/statgrab_net.params | 33 -----
checks/if64 | 4 +-
checks/statgrab_net | 199 +++++++------------------------
pnp-templates/check_mk-statgrab_net.php | 1 +
web/plugins/perfometer/check_mk.py | 1 +
10 files changed, 91 insertions(+), 246 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d69c5b6808…
Module: check_mk
Branch: master
Commit: 66e9fbc12372946001fb293859fb21302a79df45
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=66e9fbc1237294…
Author: Lutz Helwing <lh(a)mathias-kettner.de>
Date: Thu Feb 19 12:21:04 2015 +0100
added forgotten AKCP expansion dry contact check
---
checkman/akcp_exp_drycontact | 15 +++++++++++++++
checks/akcp_exp_drycontact | 43 ++++++++++++++++++++++++++++++++++++++++++
checks/akcp_sensor.include | 25 ++++++++++++++++++++++--
3 files changed, 81 insertions(+), 2 deletions(-)
diff --git a/checkman/akcp_exp_drycontact b/checkman/akcp_exp_drycontact
new file mode 100644
index 0000000..53a843c
--- /dev/null
+++ b/checkman/akcp_exp_drycontact
@@ -0,0 +1,15 @@
+title: AKCP Expansion Dry Contact Sensor
+agents: snmp
+catalog: hw/environment/akcp
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the state of all online dry contact sensors on AKCP securityProbe environment monitoring boards which have expansion boards
+ daisy chained to them.
+ All states other than 'normal' result to CRIT.
+
+item:
+ The description of the sensor as string as specified by the user during board configuration.
+
+inventory:
+ All online dry contact sensors are automatically detected and inventorized.
diff --git a/checks/akcp_exp_drycontact b/checks/akcp_exp_drycontact
new file mode 100644
index 0000000..bf3a944
--- /dev/null
+++ b/checks/akcp_exp_drycontact
@@ -0,0 +1,43 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | "_ \ / _ \/ __| |/ / | |\/| | " / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2014 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+# Example for contents of info
+# description state online
+# ["Diesel1 Generatorbetrieb", "2", "1"]
+
+check_info["akcp_exp_drycontact"] = {
+ "check_function" : check_akcp_sensor_drycontact,
+ "inventory_function" : lambda info: inventory_akcp_sensor(info),
+ "service_description" : "Dry Contact %s",
+ "snmp_scan_function" : snmp_scan_akcp_exp,
+ "snmp_info" : ( ".1.3.6.1.4.1.3854.2.3.4.1", [
+ 2, # SPAGENT-MIB::sensorDryContactDescription
+ 6, # SPAGENT-MIB::sensorDryContactStatus
+ 8, # SPAGENT-MIB::sensorDryContactGoOffline
+ ] ),
+ "includes" : [ "akcp_sensor.include" ],
+}
diff --git a/checks/akcp_sensor.include b/checks/akcp_sensor.include
index eee5fd4..073ae59 100644
--- a/checks/akcp_sensor.include
+++ b/checks/akcp_sensor.include
@@ -48,6 +48,16 @@ relay_states = {
"9" : (0, "relay off" ),
}
+# States for dry contact sensors as they are defined in SPAGENT-MIB
+drycontact_states = {
+ "1" : (2, "no status" ),
+ "2" : (0, "normal" ),
+ "4" : (2, "high critical" ),
+ "6" : (2, "low critical" ),
+ "7" : (2, "sensor error" ),
+ "8" : (2, "output low" ),
+ "9" : (2, "output high" ),
+}
# States for sensors with levels as they are defined in SPAGENT-MIB
level_states = {
@@ -78,14 +88,14 @@ def inventory_akcp_sensor(info, default_levels_name = None):
yield line[0], default_levels_name
-def check_akcp_sensor_relay(item, _no_params, info):
+def check_akcp_sensor_drycontact(item, _no_params, info):
for description, status, online in info:
if description == item:
# Online is set to "2" if sensor is offline
if online != "1":
return 2, "sensor is offline"
- state, state_name = relay_states[status]
+ state, state_name = drycontact_states[status]
return state, "State: %s" % state_name
@@ -121,6 +131,17 @@ def check_akcp_sensor_humidity(item, params, info):
return 0, infotext, perfdata
+def check_akcp_sensor_relay(item, _no_params, info):
+ for description, status, online in info:
+ if description == item:
+ # Online is set to "2" if sensor is offline
+ if online != "1":
+ return 2, "sensor is offline"
+
+ state, state_name = relay_states[status]
+ return state, "State: %s" % state_name
+
+
def check_akcp_sensor_temperature(item, params, info):
for description, degree, unit, status, \
low_crit, low_warn, high_warn, high_crit, \
Module: check_mk
Branch: master
Commit: 8240bcf0c8ab4268dcf45116722ce0d8f05f5048
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8240bcf0c8ab42…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 19 10:11:22 2015 +0100
Fixed some English texts
Conflicts:
web/plugins/wato/check_mk_configuration.py
---
web/htdocs/dashboard.py | 2 +-
web/htdocs/wato.py | 12 ++++++------
web/plugins/wato/active_checks.py | 2 +-
web/plugins/wato/check_mk_configuration.py | 8 ++++----
web/plugins/wato/check_parameters.py | 7 +++----
5 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index 2a0ba54..8a5aed9 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -933,7 +933,7 @@ def page_edit_dashlet():
html.end_context_buttons()
vs_general = Dictionary(
- title = _('General'),
+ title = _('General Settings'),
render = 'form',
optional_keys = ['title', 'title_url'],
elements = [
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index cc4bac1..d20c9ba 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3870,7 +3870,7 @@ def mode_bulk_inventory(phase):
if not complete_folder:
html.write(_("You have selected <b>%d</b> hosts for bulk discovery. ") % len(hostnames))
html.write(_("Check_MK service discovery will automatically find and configure "
- "services to be checked on your hosts.</p>"))
+ "services to be checked on your hosts."))
forms.header(_("Bulk discovery"))
forms.section(_("Mode"))
html.radiobutton("how", "new", True, _("Find only new services") + "<br>")
@@ -6830,12 +6830,12 @@ def mode_snapshot(phase):
status.get("broken_text"))
elif not status.get("checksums") and not config.wato_upload_insecure_snapshots:
if status["type"] == "legacy":
- raise MKUserError("_upload_file", _('The integrity of this snapshot could not be verified.<br><br>'
+ raise MKUserError("_upload_file", _('The integrity of this snapshot could not be verified. '
'You are restoring a legacy snapshot which can not be verified. The snapshot contains '
- 'files which contain code that will be executed during runtime of the monitoring.<br><br>'
+ 'files which contain code that will be executed during runtime of the monitoring. '
'The upload of insecure snapshots is currently disabled in WATO. If you want to allow '
- 'the upload of insecure snapshots you can activate it in the Global Settings under<br>'
- '<tt>Configuration GUI (WATO) -> Allow upload of insecure WATO snapshots</tt>'))
+ 'the upload of insecure snapshots you can activate it in the Global Settings under '
+ '<i>Configuration GUI (WATO) -> Allow upload of insecure WATO snapshots</i>'))
else:
raise MKUserError("_upload_file", _('The integrity of this snapshot could not be verified.<br><br>'
'If you restore a snapshot on the same site as where it was created, the checksum should '
@@ -6945,7 +6945,7 @@ def mode_snapshot(phase):
html.write("<h3>" + _("Restore from uploaded file") + "</h3>")
html.write(_("Only supports snapshots up to 100MB. If your snapshot is larger than 100MB please copy it into the sites "
- "backup directory <tt>%s/wato/snapshots</tt>. It will then show up in the snapshots table.<br><br>") % defaults.var_dir)
+ "backup directory <tt>%s/wato/snapshots</tt>. It will then show up in the snapshots table.") % defaults.var_dir)
html.begin_form("upload_form", method = "POST")
html.upload_file("_upload_file")
html.button("upload_button", _("Restore from file"), "submit")
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index 213f2d2..dc126e6 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -1668,7 +1668,7 @@ register_rule(group,
)),
] + mail_receiving_params + [
('mail_from', EmailAddress(
- title = _('Sender email address'),
+ title = _('From: email address'),
)),
('mail_to', EmailAddress(
title = _('Destination email address'),
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 6ab4429..1e3f1c9 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -1315,7 +1315,7 @@ register_configvar(group,
label = _("Automatically schedule service discovery check after service configuration changes"),
help = _("When this option is enabled then after each change of the service "
"configuration of a host via WATO - may it be via manual changes or a bulk "
- "discovry - the service discovery check is automatically rescheduled in order "
+ "discovery - the service discovery check is automatically rescheduled in order "
"to reflect the new service state correctly immediately."),
default_value = True,
))
@@ -2485,9 +2485,9 @@ register_rule(group,
Transform(
CascadingDropdown(
title = _("Check for correct version of Check_MK agent"),
- help = _("If you want to make sure all of your Check_MK agents are running"
- " one specific version, you may set it by this rule. Agents running "
- " some different version return a none ok state then"),
+ help = _("Here you can make sure that all of your Check_MK agents are running"
+ " one specific version. Agents running "
+ " a different version return a non-OK state."),
choices = [
("ignore", _("Ignore the version")),
("site", _("Same version as the monitoring site")),
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 0a6fc6b..3cf1574 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1586,7 +1586,7 @@ register_check_parameters(
Dictionary(
elements = [
( "power", Tuple(
- title = _("Power"),
+ title = _("Transmit Power"),
help = _("The operational transmit power"),
elements = [
Float(title = _("warning at or below"), unit = "dBmV", default_value = 5.0 ),
@@ -1626,8 +1626,8 @@ register_check_parameters(
default_value = [ 1, 2, 13 ],
)),
( "tx_power", Tuple(
- title = _("Power"),
- help = _(" The operational transmit power"),
+ title = _("Transmit Power"),
+ help = _("The operational transmit power"),
elements = [
Float(title = _("warning at"), unit = "dBmV", default_value = 20.0 ),
Float(title = _("critical at"), unit = "dBmV", default_value = 10.0 ),
@@ -2013,7 +2013,6 @@ register_check_parameters(
( 'levels',
Tuple(
title = _("Maximum Number of E-Mails in Queue"),
- help = _("This rule applies to the number of e-mails in the various Exchange Message Queues"),
elements = [
Integer(title = _("Warning at"), unit = _("E-Mails")),
Integer(title = _("Critical at"), unit = _("E-Mails"))