Module: check_mk
Branch: master
Commit: b87c7760b095680d6c87f8e115dc0dc8fdc58e44
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b87c7760b09568…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 14 09:09:04 2015 +0200
#2679 FIX hp_proliant_power: Not discoverying when host is reporting "absent" state
When the host is reporting a state of "absent" for power metering, this check
is useless, so not discovering the service when this state is reported.
---
.werks/2679 | 10 ++++++++++
ChangeLog | 1 +
checks/hp_proliant_power | 14 +++++++++++---
3 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/.werks/2679 b/.werks/2679
new file mode 100644
index 0000000..00f9c39
--- /dev/null
+++ b/.werks/2679
@@ -0,0 +1,10 @@
+Title: hp_proliant_power: Not discoverying when host is reporting "absent" state
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1444806472
+Class: fix
+
+When the host is reporting a state of "absent" for power metering, this check
+is useless, so not discovering the service when this state is reported.
diff --git a/ChangeLog b/ChangeLog
index 76a482f..96903d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -220,6 +220,7 @@
* 2657 FIX: windows agent: fixed failure to resolve named performance counters...
* 2676 FIX: cisco_asa_failover: Failover state is not treated as warning state anymore...
* 2658 FIX: logwatch: unacknowledged messages exceeding the max size are now dropped, even if they were already stored due to a previous bug...
+ * 2679 FIX: hp_proliant_power: Not discoverying when host is reporting "absent" state...
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce unhandled exceptions...
diff --git a/checks/hp_proliant_power b/checks/hp_proliant_power
index b837ce6..eeef5fc 100644
--- a/checks/hp_proliant_power
+++ b/checks/hp_proliant_power
@@ -24,15 +24,23 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+# .2 cpqHePowerMeterStatus
+# Description: This value specifies whether Power Meter reading is supported by this Server .
+# The following values are supported:
+# other(1) Could not read the Power Meter status.
+# present(2) The Power Meter data is available.
+# absent(3) The Power Meter data is not available at this time.
+
hp_prolaint_power_default_levels = ( 300, 400 )
def inventory_hp_proliant_power(info):
- if len(info) > 0 and info[0][0] != '0':
+ if len(info) > 0 and info[0][0] not in ['0', '3']:
return [ ( None, 'hp_prolaint_power_default_levels') ]
def check_hp_proliant_power(item, params, info):
status_table = {
1 : "other",
+ 2 : "present",
3 : "absent",
}
status, reading = map(int, info[0])
@@ -43,10 +51,10 @@ def check_hp_proliant_power(item, params, info):
levels = ''
if reading >= crit:
state = 2
- levels = '( Warning/Critical %s/%s )' % ( warn, crit )
+ levels = ' (Warning/Critical %s/%s)' % ( warn, crit )
elif reading >= warn:
state = 1
- levels = '( Warning/Critical %s/%s )' % ( warn, crit )
+ levels = ' (Warning/Critical %s/%s)' % ( warn, crit )
perf = [ ('watt', reading, warn, crit ) ]
return state, "Current reading: %d Watt" % reading + levels, perf
Module: check_mk
Branch: master
Commit: 29ef58dfd4c23ac5c6fad3973dc4d2eeb02cee68
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=29ef58dfd4c23a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 13 12:00:31 2015 +0200
Updated bug entries #2380
---
.bugs/2380 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.bugs/2380 b/.bugs/2380
new file mode 100644
index 0000000..d272700
--- /dev/null
+++ b/.bugs/2380
@@ -0,0 +1,17 @@
+Title: Speedup SNMP scan by bulk fetching of OIDs
+Component: core
+State: open
+Date: 2015-10-13 11:56:48
+Targetversion: future
+Class: nastiness
+
+The SNMP scan needs currently a lot of round trips (> 10) because some of the checks
+need to fetch non-standard OIDs. We should speed up this. Only idea is to fetch
+multiple OIDs in parallel. SNMP GET can do this. In SNMP v2c the response packet
+can also contain multiple error messages of type "NoSuchOID". v1 only allows *one*
+error message per packet. So that legacy devices need one round trip per non-existing
+OID. But since the usual case is v2c this optimization should work.
+
+Implemention: Check fetching non-standard-OIDs during scan need to declare them
+in check_info. Check_MK prefetches all these and also the standard OIDs into the
+OID cache.
Module: check_mk
Branch: master
Commit: 02fbf76f6e5446709d1a7360fcb15ea3afb2668c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02fbf76f6e5446…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 13 09:49:06 2015 +0200
#2678 LDAP: New sync plugin: Groups to custom user attributes
The new LDAP sync plugin can be used to set custom user attributes
based on the group memberships in LDAP.
This plugin can be used to set custom user attributes to specified values
for all users which are member of a group in LDAP.
If a user is not a member of a group, the attribute will be left at it's
default value. When a single attribute is set by multiple groups and a
user is member of multiple of these groups, the later plugin in the list
will override the others.
---
.werks/2678 | 18 ++++
ChangeLog | 1 +
web/plugins/userdb/ldap.py | 204 +++++++++++++++++++++++++++++++++++---------
3 files changed, 181 insertions(+), 42 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=02fbf76f6e…