Module: check_mk
Branch: master
Commit: 1ccd7ac3ffc0e09ec278df8d55cdb9d91893f2fa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ccd7ac3ffc0e0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 12 10:22:36 2013 +0200
Cleaned up some help texts
---
web/plugins/wato/check_parameters.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 0848d48..ad15755 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -163,7 +163,7 @@ register_rule(group + '/' + subgroup_inventory,
title = _("Create check if service is in start mode"),
)),
],
- help = _('<p>This rule can be used to configure the inventory of the windows services check. '
+ help = _('This rule can be used to configure the inventory of the windows services check. '
'You can configure specific window services to be monitored by the windows check by '
'selecting them by name, current state during the inventory or start mode.'),
),
@@ -279,7 +279,7 @@ register_rule(group + '/' + subgroup_networking,
columns = 3)),
],
- help = _('<p>This rule can be used to control the inventory for network ports. '
+ help = _('This rule can be used to control the inventory for network ports. '
'You can configure the port types and port states for inventory'
'and the use of alias or description as service name.'),
),
Module: check_mk
Branch: master
Commit: a3223f23eec3940729fd165513fe354b1cafdfe9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a3223f23eec394…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Fri Aug 9 16:59:10 2013 +0200
path of logwatch file corrected
---
checkman/logwatch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checkman/logwatch b/checkman/logwatch
index d09d4b4..9c20ed9 100644
--- a/checkman/logwatch
+++ b/checkman/logwatch
@@ -15,7 +15,7 @@ description:
at least one warning message exists but no critical, the check results in a warning state.
The only way to bring the state back to OK is to delete the text file with the stored log
- messages. This is stored below {/var/lib/check_mk/logwatch}. Usually the logwatch webpage is
+ messages. This is stored below {~/var/check_mk/logwatch}. Usually the logwatch webpage is
used to browse and delete the messages. Please refer to the online documentation of check_mk
for more details about logwatch.
Module: check_mk
Branch: master
Commit: bb994e692d5854b8c835f8487c6ed77bd90b7266
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bb994e692d5854…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Aug 9 16:09:36 2013 +0200
Updated bug entries #0969, #0970, #0971
---
.bugs/969 | 36 ++++++++++++++++++++++++++++++++++++
.bugs/970 | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.bugs/971 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 144 insertions(+)
diff --git a/.bugs/969 b/.bugs/969
new file mode 100644
index 0000000..0c586d8
--- /dev/null
+++ b/.bugs/969
@@ -0,0 +1,36 @@
+Title: Logwatch in Windows Agent: Problem with EventId 0
+Component: checks
+State: open
+Date: 2013-08-09 14:16:36
+Targetversion: 1.2.3
+Class: bug
+
+came in via checkmk-de@ / original mail still available at feedback/gitbug folder
+
+Date: Wed, 29 May 2013 16:09:14 +0200
+Message-ID: <iupni9gct0hc1if4yki27jk0.1369836554030(a)email.android.com>
+Importance: normal
+From: "=?ISO-8859-1?Q?Markus_Nie=DF?=" <markus.niess(a)gmail.com>
+To: checkmk-de(a)lists.mathias-kettner.de
+MIME-Version: 1.0
+Subject: [Check_mk (deutsch)] Logwatch Windows EventId 0
+
+Hallo zusammen,
+
+Auch auf die Gefahr hin zu nerven starte ich eine zweite Anfrage :-).
+Ich überwache mit dem aktuellen Agent WinEventlogs und kann auf zwei Maschinen einen Fehler beobachten wenn die EventID 0 ist.
+Die Severity bleibt gleich aber der Text wird auf The Operation completed successfully gesetzt.
+Das geschieht scheinbar durch den Agent selbst, da cmk -d bereits die veränderten Werte anzeigt.
+
+Ich würde mich über eine kurze Bestätigung freuen wenn es dich wirklich um einen Bug handelt.
+
+Danke an alle. Bin begeistert
+
+
+Von Samsung Mobile gesendet
+
+
+_______________________________________________
+checkmk-de mailing list
+checkmk-de(a)lists.mathias-kettner.de
+http://lists.mathias-kettner.de/mailman/listinfo/checkmk-de
diff --git a/.bugs/970 b/.bugs/970
new file mode 100644
index 0000000..d4876eb
--- /dev/null
+++ b/.bugs/970
@@ -0,0 +1,59 @@
+Title: On-demand macros not expanded
+Component: livestatus
+State: open
+Date: 2013-08-09 14:46:30
+Targetversion: 1.2.3
+Class: bug
+
+came in via info@ / original mail still available at feedback/gitbug
+
+Date: Thu, 13 Jun 2013 08:49:16 +0200
+From: Rostislav Opocensky <orbis(a)pictus.org>
+User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17.1
+MIME-Version: 1.0
+To: info(a)mathias-kettner.de
+Subject: On-demand macros not expanded
+
+
+Hello Matthias,
+
+I am a happy user of MK LiveStatus. Thank you for such an excellent tool!
+
+I would just like to bring a small problem to your attention. It seems that on-demand macros are not expanded in *_expanded columns. For instance if I have the following definitions:
+
+define host {
+ name cfg-archived
+ register 0
+ notes_url http://$_HOSTFQDN:localhost$/cgi-bin/viewvc.cgi/$_HOSTSITE$/$HOSTALIAS$?view=markup
+}
+
+define host {
+ host_name localhost
+ _fqdn ngssrv.example.com
+}
+
+define host {
+ host_name fl-sw-01
+ _site florenc
+ use cfg-archived
+}
+
+and I issue the following query:
+
+GET services
+Filter: host_name = fl-sw-01
+Columns: notes_url_expanded
+
+I get the following result:
+
+http://$_HOSTFQDN:localhost$/cgi-bin/viewvc.cgi/florenc/fl-sw-01?view=markup
+
+However, the result should be:
+
+http://ngssrv.example.com/cgi-bin/viewvc.cgi/florenc/fl-sw-01?view=markup
+
+Would you please consider looking into this issue?
+
+Thank you,
+
+Rostislav
diff --git a/.bugs/971 b/.bugs/971
new file mode 100644
index 0000000..1e4bfec
--- /dev/null
+++ b/.bugs/971
@@ -0,0 +1,49 @@
+Title: apache_status agent plugin: Problem at split if more than one slash in output
+Component: checks
+State: open
+Date: 2013-08-09 14:57:53
+Targetversion: 1.2.3
+Class: bug
+
+came in via feedback@ // original email still available in feedback/gitbug folder
+
+Date: Thu, 13 Jun 2013 12:42:59 +0200
+From: Wouter de Geus <wouter-check_mk.org(a)owl-ict.nl>
+To: feedback(a)check-mk.org
+Subject: Agent plugin apache_status process detection
+
+Hej,
+
+I just installed the agents plugin apache_status (the version from release 1.2.2p2) on several of my machines.
+On one of the machines it bugs however:
+Traceback (most recent call last):
+ File "./apache_status", line 83, in <module>
+ servers = try_detect_servers()
+ File "./apache_status", line 46, in try_detect_servers
+ pid, proc = parts[6].split('/')
+ValueError: too many values to unpack
+
+After reading the source the problem is obvious: the output of the netstat command has entries
+that have slashes in the command name:
+----
+# netstat -tlnp 2>/dev/null
+Active Internet connections (only servers)
+Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
+tcp 0 0 0.0.0.0:30033 0.0.0.0:* LISTEN 1326/./ts3server_li
+tcp 0 0 127.0.0.1:7505 0.0.0.0:* LISTEN 1331/openvpn
+tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1333/tcpserver
+tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 566/sshd
+tcp 0 0 0.0.0.0:10011 0.0.0.0:* LISTEN 1326/./ts3server_li
+tcp6 0 0 :::80 :::* LISTEN 12193/httpd
+tcp6 0 0 :::22 :::* LISTEN 566/sshd
+tcp6 0 0 :::443 :::* LISTEN 12193/httpd
+----
+Note the ./ts3server_li entries.
+Since there is more than 1 slash in the line, the split will return more than the expected 2 results.
+
+I thought I'd report this bug
+
+Regards,
+
+Wouter.
+-- Wouter de Geus Owl ICT wouter(a)owl-ict.nl http://www.owl-ict.nl/
Module: check_mk
Branch: master
Commit: 6f3e9f310233aaa012dc3ccd52da20ec164cfa27
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6f3e9f310233aa…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Aug 9 15:15:57 2013 +0200
Saving last seen time in own userfile
---
web/htdocs/userdb.py | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/web/htdocs/userdb.py b/web/htdocs/userdb.py
index 3cd01c0..d66c75c 100644
--- a/web/htdocs/userdb.py
+++ b/web/htdocs/userdb.py
@@ -294,10 +294,11 @@ def load_users(lock = False):
if d[0] != '.':
id = d
- # read failed login counts
- failed_file = dir + d + '/num_failed.mk'
- if id in result and os.path.exists(failed_file):
- result[id]['num_failed'] = int(file(failed_file).read().strip())
+ # read special values from own files
+ for val, conv_func in [ ('num_failed', int), ('last_seen', float) ]:
+ path = dir + d + '/' + val + '.mk'
+ if id in result and os.path.exists(path):
+ result[id][val] = conv_func(file(path).read().strip())
# read automation secrets and add them to existing
# users or create new users automatically
@@ -342,7 +343,6 @@ def save_users(profiles):
"alias",
"language",
"connector",
- "last_seen",
] + custom_values
# Remove multisite keys in contacts.
@@ -405,6 +405,11 @@ def save_users(profiles):
failed_file = user_dir + '/num_failed.mk'
create_user_file(failed_file, 'w').write('%d\n' % user.get('num_failed', 0))
+ # Write out the last seent time
+ if 'last_seen' in user:
+ last_seen_file = user_dir + '/last_seen.mk'
+ create_user_file(last_seen_file, 'w').write(repr(user['last_seen']) + '\n')
+
# Remove settings directories of non-existant users.
# Beware: we removed this since it leads to violent destructions
# if the user database is out of the scope of Check_MK. This is
Module: check_mk
Branch: master
Commit: e3c128f9ea4f63b33c1e6bf14cfd374a59feae53
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e3c128f9ea4f63…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Aug 9 13:55:21 2013 +0200
fixed error in wato field name
---
web/plugins/wato/check_parameters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 02103d7..c0c93d2 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -2884,7 +2884,7 @@ register_check_parameters(
help = _("The critical battery current in Ampere"),
),
Integer(
- title = _("Max. Voltage"),
+ title = _("Min. Voltage"),
help = _("The output voltage at and below which a critical state is triggered."),
),
]