Module: check_mk
Branch: master
Commit: 082e28df7b1f22b20721236cbc0513b7893dc291
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=082e28df7b1f22…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 21 11:03:02 2010 +0100
Start converting LIESMICH.zutun to .bugs
---
.bugs/1 | 9 +++++++++
.bugs/10 | 10 ++++++++++
.bugs/2 | 10 ++++++++++
.bugs/3 | 9 +++++++++
.bugs/4 | 11 +++++++++++
.bugs/5 | 10 ++++++++++
.bugs/6 | 12 ++++++++++++
.bugs/7 | 14 ++++++++++++++
.bugs/8 | 16 ++++++++++++++++
.bugs/9 | 14 ++++++++++++++
.bugs/config | 22 ++++++++++++++++++++++
LIESMICH.zutun | 34 ----------------------------------
gb | 35 ++++++++++++++++++++---------------
13 files changed, 157 insertions(+), 49 deletions(-)
diff --git a/.bugs/1 b/.bugs/1
new file mode 100644
index 0000000..718b17b
--- /dev/null
+++ b/.bugs/1
@@ -0,0 +1,9 @@
+Title: Describe StatsGroupBy
+Component: doku
+Benefit: 1
+State: open
+Cost: 1
+Date: 2010-12-21 10:45:58
+Class: todo
+
+multiple columns are allowed now. Columns: used.
diff --git a/.bugs/10 b/.bugs/10
new file mode 100644
index 0000000..3306b0b
--- /dev/null
+++ b/.bugs/10
@@ -0,0 +1,10 @@
+Title: Multisite mit Chrome kompatible machen
+Component: multisite
+Benefit: 1
+State: open
+Cost: 2
+Date: 2010-12-21 11:01:49
+Class: bug
+
+Bekannte Probleme:
+* reschedule Knopf wird nicht animiert
diff --git a/.bugs/2 b/.bugs/2
new file mode 100644
index 0000000..c542023
--- /dev/null
+++ b/.bugs/2
@@ -0,0 +1,10 @@
+Title: Hostnamen in ipaddresses
+Component: doku
+Benefit: 1
+State: open
+Cost: 1
+Date: 2010-12-21 10:50:11
+Class: todo
+
+Dokumentieren, wie man dyndns-Hosts in den Griff bekommen,
+indem man den Hostnamen in ipaddresses einträgt.
diff --git a/.bugs/3 b/.bugs/3
new file mode 100644
index 0000000..90a9924
--- /dev/null
+++ b/.bugs/3
@@ -0,0 +1,9 @@
+Title: Manpages zu Netapp-checks fehlen
+Component: doku
+Benefit: 2
+State: open
+Cost: 2
+Date: 2010-12-21 10:51:29
+Class: todo
+
+df_netapp und df_netapp32 haben noch keine man-Page
diff --git a/.bugs/4 b/.bugs/4
new file mode 100644
index 0000000..55cee59
--- /dev/null
+++ b/.bugs/4
@@ -0,0 +1,11 @@
+Title: Doku zu local-Hierarchie und MKPs in OMD
+Component: doku
+Benefit: 2
+State: open
+Cost: 3
+Date: 2010-12-21 10:52:57
+Class: todo
+
+In der Check_MK-Doku sollte beschrieben werden, wie Check_MK
+in OMD funktioniert im allgemeinen und die local/-Hierarchie
+im besonderen. Auch wie man MKPs unter OMD verwendet.
diff --git a/.bugs/5 b/.bugs/5
new file mode 100644
index 0000000..5fdf8d9
--- /dev/null
+++ b/.bugs/5
@@ -0,0 +1,10 @@
+Title: ALL_SERVICES anstelle von [""] verwenden
+Component: doku
+Benefit: 1
+State: open
+Cost: 1
+Date: 2010-12-21 10:54:20
+Class: todo
+
+Sobald ALL_SERVICES in der aktuelle stabilen Version verfügbar ist,
+in der Doku überall [""] entfernen und dadurch ersetzten.
diff --git a/.bugs/6 b/.bugs/6
new file mode 100644
index 0000000..08f6291
--- /dev/null
+++ b/.bugs/6
@@ -0,0 +1,12 @@
+Title: is_contact_member_of_contactgroup selbst programmieren
+Component: livestatus
+Benefit: 5
+State: open
+Cost: 2
+Date: 2010-12-21 10:55:19
+Class: todo
+
+Diese Funktion ist im CVS schon weg und sehr leicht
+selbst zu programmieren. Sollte man bald mal machen,
+damit ein stabiles Livestatus schon bereit ist, wenn
+das neue Nagios kommt.
diff --git a/.bugs/7 b/.bugs/7
new file mode 100644
index 0000000..030a6bf
--- /dev/null
+++ b/.bugs/7
@@ -0,0 +1,14 @@
+Title: Timeperiod-Übergänge ins Nagios-Log schreiben
+Component: livestatus
+Benefit: 3
+State: open
+Cost: 1
+Date: 2010-12-21 10:56:28
+Class: feature
+
+Livestatus hält ja ohnehin einen Cache der Timeperiods. Immer
+wenn eine umschaltet, sollte ein Logeintrag gemacht werden.
+Auch initial beim Starten des Systems. Anhand dieser Einträge
+ist es später viel einfacher, die Verfügbarkeiten zu berechnen.
+Das sollte man recht bald programmieren, damit die Leute
+schon Gelegenheit haben, Daten zu sammeln.
diff --git a/.bugs/8 b/.bugs/8
new file mode 100644
index 0000000..3ec8b2f
--- /dev/null
+++ b/.bugs/8
@@ -0,0 +1,16 @@
+Title: Inventurcheck: retry-interval konfigurieren
+Component: core
+Benefit: 2
+State: open
+Cost: 2
+Date: 2010-12-21 10:59:01
+Class: feature
+
+Eigentlich könnte der Inventurcheck doch - wenn er nicht OK ist -
+öfters laufen. Auf diese Art wird er schneller von selbst wieder grün,
+wenn man das Problem behebt. Da der Inventurcheck sowieso die Cachefiles
+verwendet, sollte es auch kein Performanceproblem sein, wenn man
+es oft macht (gilt das auch für den SNMP-Scan?).
+
+Lösung könnte sein: in main.mk inventory_check_retry = 5. Und diesen
+Wert per Default auf 5 setzen (5 Minuten).
diff --git a/.bugs/9 b/.bugs/9
new file mode 100644
index 0000000..d621c0c
--- /dev/null
+++ b/.bugs/9
@@ -0,0 +1,14 @@
+Title: Multisite mit IE kompatibel machen
+Component: multisite
+Benefit: 4
+State: open
+Cost: 3
+Date: 2010-12-21 11:01:09
+Class: bug
+
+Multisite: Endgültig kompatibel mit IE machen. Bekannte Probleme:
+* reschedule Knopf geht irgendwie garnicht. Weder Animation noch reschedule.
+ Nur das reload macht er
+* Bug mit Verschieben der Sidebar wo das Tabellengerüst stehen bleibt
+* Snapin "Views": Die Spiegelpunkt sind zu weit links, die Einrückung
+ klappt nicht.
diff --git a/.bugs/config b/.bugs/config
new file mode 100644
index 0000000..fa2ff10
--- /dev/null
+++ b/.bugs/config
@@ -0,0 +1,22 @@
+states = {
+ "open" : tty_blue,
+ "done" : tty_green,
+ "closed" : tty_normal,
+}
+
+components = [
+ "core",
+ "checks",
+ "multisite",
+ "livestatus",
+ "wato",
+ "doku"
+]
+
+classes = [
+ "cleanup",
+ "bug",
+ "todo",
+ "phantasm",
+ "feature",
+]
diff --git a/LIESMICH.zutun b/LIESMICH.zutun
index b8cd8af..b5b5064 100644
--- a/LIESMICH.zutun
+++ b/LIESMICH.zutun
@@ -1,37 +1,3 @@
-DOKU:
---------------------------------------------------------------------------------
-Hostnamen in ipaddresses eintragen: Das sollte man dokumentieren
-(wegen dynamischen Hosts.)
-
-Man-Pages zu df_netapp und df_netapp32 fehlen (df_netapp geht nur mit bulkwalk_hosts!!)
-
-Doku: Check_MK und OMD: Installieren von MKPs, local-Hierarchie
-
-[""] deprecaten, aus der Doku raus und durch ALL_SERVICES ersetzen. Das geht
-aber erst, wenn eine stabile Version das ALL_SERVICES erlaubt!
-
---------------------------------------------------------------------------------
-
-Livestatus: is_contact_member_of_contactgroup selbst programmieren,
- da diese Funktion in Nagios rausfliegen wird.
-
-Inventurcheck: retry_interval evt. anders (kuerzer) einstellbar machen.
-Das geht aber auch mit extra_service_conf. Evtl. reicht hier die Doku.
-Ein sinnvoller Default-Wert wäre aber schon gut.
-
---------------------------------------------------------------------------------
-BUGS beheben ab 1.1.9i1
---------------------------------------------------------------------------------
-Multisite: Endgültig kompatibel mit IE machen. Bekannte Probleme:
-* reschedule Knopf geht irgendwie garnicht. Weder Animation noch reschedule.
- Nur das reload macht er
-* Bug mit Verschieben der Sidebar wo das Tabellengerüst stehen bleibt
-* Snapin "Views": Die Spiegelpunkt sind zu weit links, die Einrückung
- klappt nicht.
-
-Multsite: Kompatible mit Chrome machen. Probleme:
-* reschedule Knopf wird nicht animiert
-
WATO: Wenn ein Agent einen rauswirft (leere Ausgabe, Connection closed), kommt im
WATO bei der Inventur keine sinnvolle Fehlermeldung.
diff --git a/gb b/gb
index 1cadd90..01f9721 100755
--- a/gb
+++ b/gb
@@ -32,14 +32,6 @@ else:
tty_normal = ''
tty_ok = 'OK'
-state_colors = {
- "open" : tty_blue,
- "done" : tty_green,
- "closed" : tty_normal,
-}
-
-components = [ "core", "checks", "multisite",
"livestatus", "wato" ]
-
def bail_out(text):
sys.stderr.write(text + "\n")
sys.exit(1)
@@ -56,6 +48,9 @@ def goto_bugsdir():
sys.stderr.write("Cannot find directory .bugs\n")
sys.exit(1)
+def load_config():
+ execfile("config", globals(), globals())
+
def load_bugs():
global g_bugs
g_bugs = {}
@@ -108,7 +103,10 @@ def save_bug(bug):
os.system("git add %d" % bug["id"])
def next_bug_id():
- return max(g_bugs.keys()) + 1
+ if len(g_bugs) == 0:
+ return 1
+ else:
+ return max(g_bugs.keys()) + 1
def add_comment(bug, title, comment):
bug["description"] += """
@@ -133,11 +131,11 @@ where COMMAND is one of:
def bug_state(bug):
state = bug["state"]
- return "%s%-7s%s" % (tty_bold + state_colors.get(state, ""),
state, tty_normal)
+ return "%s%-7s%s" % (tty_bold + states.get(state, ""), state,
tty_normal)
def list_bug(bug):
- sys.stdout.write("#%04d %-7s %-60s\n" %
- (int(bug["id"]), bug_state(bug), bug["title"]))
+ sys.stdout.write("#%04d %-6s %-7s %-10s %-60s\n" %
+ (int(bug["id"]), bug_state(bug), bug["class"],
bug["component"], bug["title"]))
def show_bug(bug):
list_bug(bug)
@@ -206,7 +204,11 @@ def input_choice(what, choices):
sys.stdout.flush()
c = getch()
if c in ctc:
+ sys.stdout.write(" %s%s%s\n" % (
+ tty_bold, ctc[c], tty_normal))
return ctc[c]
+ else:
+ sys.stdout.write("\n")
def main_new(args):
bug = {}
@@ -217,8 +219,10 @@ def main_new(args):
if bug["title"] == "":
sys.stderr.write("Cancelled.\n")
sys.exit(0)
- bug["cost"] = int(get_input("Cost", 1))
- bug["benefit"] = int(get_input("Benefit", 1))
+ bug["class"] = input_choice("Class", classes)
+ bug["component"] = input_choice("Component", components)
+ bug["cost"] = input_choice("Cost",
"123456789")
+ bug["benefit"] = input_choice("Benefit",
"123456789")
bug["description"] = get_long_input("description")
g_bugs[bug["id"]] = bug
@@ -234,7 +238,7 @@ def main_resolve(args):
bail_out("No such bug.\n")
list_bug(bug)
- state = input_choice("State", state_colors.keys())
+ state = input_choice("State", states.keys())
comment = get_long_input("comment")
add_comment(bug, "changed state %s -> %s" % (bug["state"],
state), comment)
@@ -256,6 +260,7 @@ def main_delete(args):
#
goto_bugsdir()
+load_config()
load_bugs()
if len(sys.argv) < 2: