Module: check_mk
Branch: master
Commit: 2a992e1dd5b7fa84e35cd14e571271602043a78c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2a992e1dd5b7fa…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 28 20:29:42 2010 +0200
ps inventory: make %u optional on GRAB_USER
---
ChangeLog | 2 +-
LIESMICH.zutun | 3 +++
checkman/ps | 6 ++++--
checks/ps | 2 --
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b2d9a24..703bab6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,7 +12,7 @@
* logwatch: Fixed typo in 'too many unacknowledged logs' error message
* ps: fix bug: inventory with fixed user name now correctly puts
that user name into the resulting check - not None.
- * ps: inventory with GRAB_USER: require service description to contain
+ * ps: inventory with GRAB_USER: service description may contain
%u. That will be replaced with the user name and thus makes the
service description unique.
* win_dhcp_pools: better handle invalid agent output
diff --git a/LIESMICH.zutun b/LIESMICH.zutun
index 3c11e35..cf4dadb 100644
--- a/LIESMICH.zutun
+++ b/LIESMICH.zutun
@@ -12,6 +12,9 @@ konsisten mit den übrigen werden sein.
--------------------------------------------------------------------------------
BUGS beheben ab 1.1.9i1
--------------------------------------------------------------------------------
+Wenn zwei Checks mit dem gleichen Namen existieren bei einem Host
+soll mit einem Fehler abgebrochen werden.
+
win_dhcp_pools sendet:
[['MIBCounts:'],
['Discovers', '=', '193.'],
diff --git a/checkman/ps b/checkman/ps
index 01fd674..8a28fee 100644
--- a/checkman/ps
+++ b/checkman/ps
@@ -55,8 +55,10 @@ inventory:
Specifying {GRAB_USER} makes the created check expect the process to run
as the same user as during inventory: the user name will be hardcoded into
- the check. In that case you need to put {%u} into the service description,
- which will be replace by the actual user name during inventory.
+ the check. In that case if you put {%u} into the service description,
+ that will be replaced by the actual user name during inventory. You need
+ that if your rule might match for more than one user - your would create
+ duplicate services with the same description otherwise.
The {warning and critical levels} are simply copied to the created
checks.
diff --git a/checks/ps b/checks/ps
index bb7a163..946e2bf 100644
--- a/checks/ps
+++ b/checks/ps
@@ -80,8 +80,6 @@ def inventory_ps(check_name, info):
if userspec == GRAB_USER:
i_userspec = l_user[0]
- if '%u' not in servicedesc:
- raise MKGeneralException("Invalid entry in inventory_processes: if you use GRAB_USER, you need to put %%u into the service description. Your description is '%s'" % servicedesc)
i_servicedesc = servicedesc.replace("%u", l_user[0])
else:
i_userspec = userspec
Module: check_mk
Branch: master
Commit: 97c8c01ddb7f907cb5c2e2a99d5d67a7f1d5cdde
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97c8c01ddb7f90…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 27 11:03:39 2010 +0200
Fixed small coding error in megaraid_pdisks
---
ChangeLog | 4 ++--
checks/megaraid_pdisks | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a771acb..b2d9a24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,8 +16,8 @@
%u. That will be replaced with the user name and thus makes the
service description unique.
* win_dhcp_pools: better handle invalid agent output
- * hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to
- Andreas Döhler)
+ * hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to Andreas Döhler)
+ * megaraid_pdisks: Fixed coding error
Livestatus:
* Prohibit { and } in regular expressions. This avoids a segmentation
diff --git a/checks/megaraid_pdisks b/checks/megaraid_pdisks
index d327fca..4e2b0db 100644
--- a/checks/megaraid_pdisks
+++ b/checks/megaraid_pdisks
@@ -51,6 +51,7 @@ def check_megaraid_pdisks(item, target_state, info):
# item is "$ENCLOSURE/$SLOT"
# param is the target state
for line in info:
+ found = None
if line[0] == "Enclosure":
enclosure = int(line[-1])
elif line[0] == "Slot":
Module: check_mk
Branch: master
Commit: 4682884a53fb8b4072984fa740fb42b5782f9e46
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4682884a53fb8b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 26 17:44:20 2010 +0200
Updated internal doku
---
LIESMICH.zutun | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/LIESMICH.zutun b/LIESMICH.zutun
index 815e2f4..3c11e35 100644
--- a/LIESMICH.zutun
+++ b/LIESMICH.zutun
@@ -3,9 +3,52 @@ BUGS beheben bis => 1.1.8
--------------------------------------------------------------------------------
CHECK_MK:
+bei den Server Perf Werten "Com. buf. max.total" wird nicht der eigene
+sonderen einer der anderen sites angezeigt,
+Eigentlich: es sollte (meiner Meinung nach) addiert werden oder evtl.
+auch das MAX genommen werden. Oder ganz rausfliegen. Es muss unbedingt
+konsisten mit den übrigen werden sein.
+
--------------------------------------------------------------------------------
BUGS beheben ab 1.1.9i1
--------------------------------------------------------------------------------
+win_dhcp_pools sendet:
+[['MIBCounts:'],
+ ['Discovers', '=', '193.'],
+ ['Offers', '=', '193.'],
+ ['Delayed', 'Offers', '=', '0.'],
+ ['Requests', '=', '14540.'],
+ ['Acks', '=', '11767.'],
+ ['Naks', '=', '2.'],
+ ['Declines', '=', '0.'],
+ ['Releases', '=', '39.'],
+ ['ServerStartTime', '=', '26', 'June', '2010', '04:47:49'],
+ ['Scopes', '=', '1.'],
+ ['Scopes', 'with', 'Delay', 'configured=', '0.'],
+ ['Subnet', '=', '10.3.108.0.'],
+ ['No.', 'of', 'Addresses', 'in', 'use', '=', '40.'],
+ ['No.', 'of', 'free', 'Addresses', '=', '150.'],
+ ['No.', 'of', 'pending', 'offers', '=', '0.']]
+Besser: = als Trenner nehmen, dann ist das parsen einfacher.
+
+ich bin mir nicht sicher ob das nun ein Thruk Problem oder ein Livestatus Problem ist. Vermutlich beides :-)
+Wenn ich im Thruk im Suchfenster einfach Enter drücke, kommt folgende Query bei raus:
+GET services
+Columns: ..
+Filter: description ~~
+Filter: groups >=
+Filter: plugin_output ~~
+Filter: long_plugin_output ~~
+Filter: host_name ~~
+Filter: host_alias ~~
+Filter: host_groups >=
+Filter: comments ~~
+Filter: downtimes ~~
+Or: 2
+Or: 8
+livestatus: Sorry, Operator 4 for lists not implemented.
+
+
Noch ein Problem mit Umlauten: Ein Drucker sendet per SNMP Latin1
kodierte Wert, z.B. Resttonerbehälter. Daraus baut Check_MK eine
Servicedesription, die in nagios/conf.d/check_mk_objects.cfg ein
Module: check_mk
Branch: master
Commit: ba6d73e3dd44f5d4aa0b671cd2bd987fc5e9a228
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba6d73e3dd44f5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 26 15:45:20 2010 +0200
Multisite: fix problem with group filter
---
ChangeLog | 2 ++
web/plugins/views/filters.py | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f870d05..a771acb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,8 @@
spaces)
* Allow non-ASCII character in downtimes and comments
* Added nagvis_base_url to multisite.mk example configuration
+ * Filter for host/service groups: use name instead of alias if
+ user has no permissions for groups
1.1.8b3:
Core, Setup, etc.:
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index db384c7..b9ec53b 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -150,7 +150,7 @@ class FilterGroupCombo(Filter):
current_value = self.current_value(infoname)
if current_value:
alias = html.live.query_value("GET %sgroups\nColumns: alias\nFilter: name = %s\n" %
- (self.what, current_value))
+ (self.what, current_value), current_value)
return alias