Module: check_mk
Branch: master
Commit: 727f0720a1872b9a621d04965fa6d55bd7b44265
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=727f0720a1872b…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Sun Dec 1 22:20:18 2013 +0100
check removed since the device cannot be meaningfully checked in this way
---
checks/moxa-iologik-e2242 | 79 ---------------------------------------------
1 file changed, 79 deletions(-)
diff --git a/checks/moxa-iologik-e2242 b/checks/moxa-iologik-e2242
deleted file mode 100755
index b21a962..0000000
--- a/checks/moxa-iologik-e2242
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/usr/bin/python
-# -*- encoding: utf-8; py-indent-offset: 4 -*-
-# +------------------------------------------------------------------+
-# | ____ _ _ __ __ _ __ |
-# | / ___| |__ ___ ___| | __ | \/ | |/ / |
-# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
-# | | |___| | | | __/ (__| < | | | | . \ |
-# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
-# | |
-# | Copyright Mathias Kettner 2013 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.
-
-# "0=Off, 1=On in DI/DO mode or N=Count in DO counter mode"
-inventory_iologik_e2242_defaults = ( 1,1 )
-
-def inventory_iologik_e2242(info):
- inventory = []
- for line in info:
- if line[0]:
- wert = int(line[0])
- inventory.append((wert, inventory_iologik_e2242_defaults))
- return inventory
-
-
-def check_iologik_e2242(item, params, info):
- for line in info:
- if line[0]:
- crit = params
- status = int(line[0])
- infotext = "Status is: %s (warn/crit %s%s)" % ( status, warn, crit )
- perfdata = [ ("iologik_e2242.status", status, warn, crit) ]
- if status >= crit:
- state = 2
- elif status >= warn:
- state = 1
- else:
- state = 0
- return (state, infotext, perfdata )
- return (3, "UNKNOWN - Sensor not found")
-
-
-check_info['moxa-iologik-e2242'] = {
- "check_function" : check_iologik_e2242,
- "inventory_function" : inventory_iologik_e2242,
- "service_description" : "moxa iologik e2242 i/o unit",
- "has_perfdata" : True,
- "group" : "iologik_e2242",
- #"snmp_scan_function" : lambda oid: "E2242-T" in oid(".1.3.6.1.4.1.8691.10.2242.2.0"),
- "snmp_scan_function" : lambda oid: oid(".1.3.6.1.4.1.8691.10.2242.2.0").startswith("E2242-T"),
- "snmp_info" : (".1.3.6.1.4.1.8691.10.2242.10.1.1",
- [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ]
- )
-}
-
-# DIOEntry
-# dioIndex Integer32 (0..11) "The channel dio index."
-# dioType Integer32 (0..1) "The channel dio type. 0=DI, DO=1, AI=2"
-# dioMode Integer32 (0..1) "The channel dio mode. 0=DI, 1=Event Counter"
-# dioStatus Unsigned32 (0..4294967295) "The channel dio(di/do) status. 0=Off, 1=On in DI/DO mode or N=Count in DO counter mode
-# dioFilter Integer32 (1..65535) "The channel dio(di) counter filter. unit=0.5ms"
-# dioTrigger Integer32 (0..1) "The channel dio(di) counter trigger level. 0=L2H, 1=H2L"
-# dioCntStart Integer32 (0..1) "The channel dio(do) counter start/stop. 0=stop, 1=start"
-# dioPulseStart Integer32 (0..1) "The channel dio(do) pulse start/stop. 0=stop, 1=start"
-# dioPulseONWidth Unsigned32 (1..4294967295) "The channel dio(do) signal ON width. unit=0.5ms"
-# dioPulseOFFWidth Unsigned32 (1..4294967295) "The channel dio(do) signal OFF width. unit=0.5ms"
Module: check_mk
Branch: master
Commit: 5c51baf41200b0a058afbf3fbc4ac31740654ea5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5c51baf41200b0…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Sat Nov 30 00:01:28 2013 +0100
modbus_value: New check and Agent to modbus devices
This is the first approach to monitor modbus devices. Modbus is an industry bus wich can
be found for example in power devices for buildings.
---
.werks/102 | 9 +++
ChangeLog | 1 +
agents/special/agent_modbus | Bin 0 -> 7472 bytes
agents/special/agent_modbus.cpp | 109 +++++++++++++++++++++++++++++++
checkman/modbus_value | 17 +++++
checks/agent_modbus | 38 +++++++++++
checks/modbus_value | 65 ++++++++++++++++++
web/plugins/perfometer/check_mk.py | 7 ++
web/plugins/wato/check_parameters.py | 16 +++++
web/plugins/wato/datasource_programs.py | 34 ++++++++++
10 files changed, 296 insertions(+)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=5c51baf412…
Module: check_mk
Branch: master
Commit: 33c6dbdf077e9118179d759708e95d60c99f3750
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33c6dbdf077e91…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Nov 29 17:09:52 2013 +0100
Updated bug entries #0837
---
.bugs/837 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.bugs/837 b/.bugs/837
new file mode 100644
index 0000000..9b732b5
--- /dev/null
+++ b/.bugs/837
@@ -0,0 +1,9 @@
+Title: Service levels are missing in gui
+Component: multisite
+State: open
+Date: 2013-11-29 17:07:45
+Targetversion: 1.2.3i6
+Class: nastiness
+
+Its not possible to see the service levels on Hosts/ Services in Multisite. The Reason is,
+that they are no part of the livestatus output. With cmc its not possible to looking into the configfile to see the sl.
Module: check_mk
Branch: master
Commit: 3855b69e8559f11267929f5e190260b747085bdc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3855b69e8559f1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 29 15:55:19 2013 +0100
FIX Fix computation of hour-of-the-day and day-of-month prediction
This fix addresses two problems in the implementation of the predictive levels:
<ul>
<li>When you selected a prediction for <i>Hour of the day</i> you would get 24
single predictions and 24 separated graphs. This has been replaced by one single
predection for the whole day, which is much more conveniant.</li>
<li>The implementation of the <i>Day of the month</i> was broken. It would create
a prediction of just one day instead. This is fixed now.</li>
</ul>
---
.werks/10 | 17 +++++++++++++++++
ChangeLog | 1 +
2 files changed, 18 insertions(+)
diff --git a/.werks/10 b/.werks/10
new file mode 100644
index 0000000..fb473bc
--- /dev/null
+++ b/.werks/10
@@ -0,0 +1,17 @@
+Title: Fix computation of hour-of-the-day and day-of-month prediction
+Level: 1
+Component: core
+Version: 1.2.3i7
+Date: 1385736766
+Class: fix
+
+This fix addresses two problems in the implementation of the predictive levels:
+
+<ul>
+<li>When you selected a prediction for <i>Hour of the day</i> you would get 24
+single predictions and 24 separated graphs. This has been replaced by one single
+predection for the whole day, which is much more conveniant.</li>
+<li>The implementation of the <i>Day of the month</i> was broken. It would create
+a prediction of just one day instead. This is fixed now.</li>
+</ul>
+
diff --git a/ChangeLog b/ChangeLog
index 1fb1efd..ab595e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
Core & Setup:
* 0217 FIX: More verbose error output for SNMP errors on the command line...
* 0288 FIX: Error messages of datasource programs (e.g. VSphere Agent) are now visible within WATO...
+ * 0010 FIX: Fix computation of hour-of-the-day and day-of-month prediction...
Checks & Agents:
* 0060 cisco_fantray: new check for monitoring fan trays of Cisco Nexus switches
Module: check_mk
Branch: master
Commit: e60c59a82aad2c25887c49f50438550a7ab502ac
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e60c59a82aad2c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 29 15:57:51 2013 +0100
FIX Inline SNMP: Check_MK check helpers are closing UDP sockets now
In previous versions, the Check-Helpers in Check_MK were opening UDP
sockets for each host and caching them during their runtime. This resulted
in too many open sockets with a large amount of hosts. Now closing all
the sockets after an action iteration.
---
.werks/292 | 11 +++++++++++
ChangeLog | 1 +
modules/check_mk.py | 4 ++++
3 files changed, 16 insertions(+)
diff --git a/.werks/292 b/.werks/292
new file mode 100644
index 0000000..bcd1cd7
--- /dev/null
+++ b/.werks/292
@@ -0,0 +1,11 @@
+Title: Inline SNMP: Check_MK check helpers are closing UDP sockets now
+Level: 1
+Component: core
+Version: 1.2.3i7
+Date: 1385736912
+Class: fix
+
+In previous versions, the Check-Helpers in Check_MK were opening UDP
+sockets for each host and caching them during their runtime. This resulted
+in too many open sockets with a large amount of hosts. Now closing all
+the sockets after an action iteration.
diff --git a/ChangeLog b/ChangeLog
index 1fb1efd..0bb936d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
Core & Setup:
* 0217 FIX: More verbose error output for SNMP errors on the command line...
* 0288 FIX: Error messages of datasource programs (e.g. VSphere Agent) are now visible within WATO...
+ * 0292 FIX: Inline SNMP: Check_MK check helpers are closing UDP sockets now...
Checks & Agents:
* 0060 cisco_fantray: new check for monitoring fan trays of Cisco Nexus switches
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 24c5164..3d26e16 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -5069,6 +5069,10 @@ def cleanup_globals():
global g_walk_cache
g_walk_cache = {}
+ if 'g_snmp_sessions' in globals():
+ global g_snmp_sessions
+ g_snmp_sessions = {}
+
# Diagnostic function for detecting global variables that have
# changed during checking. This is slow and canno be used