Module: check_mk
Branch: master
Commit: ebc91c1992a3d6cd2bf3e5b13803b70f56145020
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ebc91c1992a3d6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 9 15:31:55 2014 +0200
Fixed some trailing spaces
---
checkman/cisco_secure | 2 +-
checkman/enterasys_lsnat | 2 +-
checks/cisco_secure | 8 ++++----
checks/enterasys_cpu_util | 2 +-
checks/ibm_svc_nodestats | 4 ++--
checks/ibm_svc_systemstats | 2 +-
web/plugins/views/availability.py | 12 ++++++------
7 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/checkman/cisco_secure b/checkman/cisco_secure
index c79b9cd..41a508f 100644
--- a/checkman/cisco_secure
+++ b/checkman/cisco_secure
@@ -6,7 +6,7 @@ distribution: check_mk
description:
This check monitors the port Security feature of cisco_switches. It returns a {CRITICAL}
state for
each port which is locked due a security isse. If is port security configured but cant
be enabled
- the check returns {WARNING}. If a port goes down, the check ignores that and only shows
a information in the
+ the check returns {WARNING}. If a port goes down, the check ignores that and only shows
a information in the
check output.
item:
diff --git a/checkman/enterasys_lsnat b/checkman/enterasys_lsnat
index 4c4953b..c3c1b16 100644
--- a/checkman/enterasys_lsnat
+++ b/checkman/enterasys_lsnat
@@ -4,7 +4,7 @@ catalog: hw/network/enterasys
license: GPL
distribution: check_mk
description:
- This check monitors the number of current LSNAT bindings if the feature is activated
+ This check monitors the number of current LSNAT bindings if the feature is activated
on this device (oid .1.3.6.1.4.1.5624.1.2.74.1.1.5.0 must contain a value)
inventory:
diff --git a/checks/cisco_secure b/checks/cisco_secure
index f3e9fa6..aa7e030 100644
--- a/checks/cisco_secure
+++ b/checks/cisco_secure
@@ -38,9 +38,9 @@ def inventory_cisco_secure(info):
inventory = []
for name, op_state, enabled, status, violationCount, lastmac in info:
#if portsecurity enabled and port up OR currently there is sercurity issue`
- if ( enabled == 1 and op_state == 1) or status == 3:
+ if ( enabled == 1 and op_state == 1) or status == 3:
inventory.append( (name, None) )
- return inventory
+ return inventory
def check_cisco_secure(item, params, info):
secure_states = {
@@ -72,9 +72,9 @@ check_info["cisco_secure"] = {
"service_description" : "Security Port %s",
"snmp_scan_function" : lambda oid: "cisco" in
oid(".1.3.6.1.2.1.1.1.0").lower() and \
oid(".1.3.6.1.4.1.9.9.315.1.2.1.1.1.*"),
- "snmp_info" : [ (".1.3.6.1.2.1.2.2.1", [OID_END, 2, 8 ] ),
+ "snmp_info" : [ (".1.3.6.1.2.1.2.2.1", [OID_END, 2, 8 ] ),
( ".1.3.6.1.4.1.9.9.315.1.2.1.1",
- [
+ [
OID_END,
"1", #
cpsIfPortSecurityEnable
"2", # cpsIfPortSecurityStatus
diff --git a/checks/enterasys_cpu_util b/checks/enterasys_cpu_util
index fc0de09..0f8317b 100644
--- a/checks/enterasys_cpu_util
+++ b/checks/enterasys_cpu_util
@@ -27,7 +27,7 @@ enterasys_cpu_default_levels = (90, 95)
def inventory_enterasys_cpu_util(info):
# [:-2] to remove the oid end
- return [ ( x[0][:-2], "enterasys_cpu_default_levels" ) for x in info ]
+ return [ ( x[0][:-2], "enterasys_cpu_default_levels" ) for x in info ]
def check_enterasys_cpu_util( item, params, info):
for core, util in info:
diff --git a/checks/ibm_svc_nodestats b/checks/ibm_svc_nodestats
index 5a70883..2e25110 100644
--- a/checks/ibm_svc_nodestats
+++ b/checks/ibm_svc_nodestats
@@ -77,8 +77,8 @@
# 'Drives BLUBBSVC03': {'r_mb': 0, 'w_mb': 0, 'r_io': 0,
'w_io': 0},
# 'Drives BLUBBSVC04': {'r_mb': 0, 'w_mb': 0, 'r_io': 0,
'w_io': 0},
# 'MDisks BLUBBSVC01': {'r_mb': 1, 'w_mb': 16, 'r_io':
15, 'w_io': 865},
-# 'MDisks BLUBBSVC02': {'r_mb': 3, 'w_mb': 6, 'r_io':
245, 'w_io': 361},
-# 'MDisks BLUBBSVC03': {'r_mb': 28, 'w_mb': 5, 'r_io':
1194, 'w_io': 901},
+# 'MDisks BLUBBSVC02': {'r_mb': 3, 'w_mb': 6, 'r_io':
245, 'w_io': 361},
+# 'MDisks BLUBBSVC03': {'r_mb': 28, 'w_mb': 5, 'r_io':
1194, 'w_io': 901},
# 'MDisks BLUBBSVC04': {'r_mb': 0, 'w_mb': 162, 'r_io':
0, 'w_io': 1414},
# 'VDisks BLUBBSVC01': {'r_mb': 0, 'w_mb': 0, 'r_io':
19, 'w_io': 110},
# 'VDisks BLUBBSVC02': {'r_mb': 101, 'w_mb': 13, 'r_io':
1105, 'r_mb': 101},
diff --git a/checks/ibm_svc_systemstats b/checks/ibm_svc_systemstats
index ace12ce..9610fac 100644
--- a/checks/ibm_svc_systemstats
+++ b/checks/ibm_svc_systemstats
@@ -98,7 +98,7 @@ def ibm_svc_systemstats_parse(info):
# | |
# '----------------------------------------------------------------------'
-def inventory_ibm_svc_systemstats_diskio(info):
+def inventory_ibm_svc_systemstats_diskio(info):
inventory = []
parsed = ibm_svc_systemstats_parse(info)
for key in parsed.keys():
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index d55c04e..e57dcaa 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -40,17 +40,17 @@
# done in get_availability_data().
#
# - htdocs/views.py:show_view()
-# - plugins/views/availability.py:render_availability()
+# - plugins/views/availability.py:render_availability()
# - plugins/views/availability.py:get_availability_data()
# - plugins/views/availability.py:do_render_availability()
# - plugins/views/availability.py:render_availability_table()
-#
+#
# 2a) timeline of hosts/services
# It is much the same as for 1a), just that in get_availability_data()
# an additional filter is being added for selecting just one host/serivce.
#
# - htdocs/views.py:show_view()
-# - plugins/views/availability.py:render_availability()
+# - plugins/views/availability.py:render_availability()
# - plugins/views/availability.py:get_availability_data()
# - plugins/views/availability.py:do_render_availability()
# - plugins/views/availability.py:render_timeline()
@@ -59,18 +59,18 @@
# In order to use the filter logic of the aggr datasource, we
# also start in show_view(). But this time we let the actual
# rows being computed - just we make sure that only the two
-# columns aggr_name, aggr_group and aggr_tree are being fetched. The
+# columns aggr_name, aggr_group and aggr_tree are being fetched. The
# other columns won't be displayed. We just need the correct
# result set. With that we fork into render_bi_availability().
# This computes the historic states of the aggregate by using
# data from hosts/services from state_hist.
#
# - htdocs/views.py:show_view()
-# - plugins/views/availability.py:render_bi_availability()
+# - plugins/views/availability.py:render_bi_availability()
# - plugins/views/availability.py:get_bi_timeline()
# - plugins/views/availability.py:do_render_availability()
# - plugins/views/availability.py:render_availability_table()
-#
+#
# 2b) timeline of bi aggregates
# In this case we do not need any logic from the view, since
# we just diplay one element - which is identified by aggr_group