Module: check_mk
Branch: master
Commit: 8bb12c8b71c53f882306f1b9351865ea7e3f3ba4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8bb12c8b71c53f…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Mar 8 11:13:26 2016 +0100
3091 FIX fixed failure to rename hosts in raw edition
renaming of hosts would cancel with the error "No such file or directory:
'/omd/sites/sitename/var/check_mk/agents/'"
---
.werks/3091 | 11 +++++++++++
ChangeLog | 1 +
modules/automation.py | 7 ++++---
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/.werks/3091 b/.werks/3091
new file mode 100644
index 0000000..ec418f8
--- /dev/null
+++ b/.werks/3091
@@ -0,0 +1,11 @@
+Title: fixed failure to rename hosts in raw edition
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1457431906
+
+renaming of hosts would cancel with the error "No such file or directory:
+'/omd/sites/sitename/var/check_mk/agents/'"
diff --git a/ChangeLog b/ChangeLog
index acb9444..36a51e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -100,6 +100,7 @@
* 3000 FIX: Host check command: "Use a custom check plugin" was not working with CMC...
* 3231 FIX: Not showing network scan properties in host search form anymore
* 3086 FIX: fixed incorrect host list when one wato folder was a substring of another...
+ * 3091 FIX: fixed failure to rename hosts in raw edition...
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/modules/automation.py b/modules/automation.py
index adaedb0..c54604e 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -873,9 +873,10 @@ def rename_host_files(oldname, newname):
# Baked agents
agents_dir = var_dir + "/agents/"
have_renamed_agent = False
- for opsys in os.listdir(agents_dir):
- if rename_host_file(agents_dir + opsys, oldname, newname):
- have_renamed_agent = True
+ if os.path.exists(agents_dir):
+ for opsys in os.listdir(agents_dir):
+ if rename_host_file(agents_dir + opsys, oldname, newname):
+ have_renamed_agent = True
if have_renamed_agent:
actions.append("agent")
Module: check_mk
Branch: master
Commit: cf3717518ec74b8555e2efc279d010f9e9029d02
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf3717518ec74b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Mar 8 11:06:20 2016 +0100
mk_inventory.solaris: fix detection of global zone
Option -q on grep was missing
---
agents/plugins/mk_inventory.solaris | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/plugins/mk_inventory.solaris b/agents/plugins/mk_inventory.solaris
index 1674674..fcfe2d3 100755
--- a/agents/plugins/mk_inventory.solaris
+++ b/agents/plugins/mk_inventory.solaris
@@ -50,7 +50,7 @@ then
echo "<<<solaris_uname:sep(61):persist($UNTIL)>>>"
uname -X
- if zoneadm list | grep -q global
+ if zoneadm list | grep global >/dev/null 2>&1
then
if type prtdiag > /dev/null; then
echo "<<<solaris_prtdiag:sep(10):persist($UNTIL)>>>"
Module: check_mk
Branch: master
Commit: f558ed18cb05c028a14e28793774a5a5e4a14818
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f558ed18cb05c0…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Mar 8 10:35:06 2016 +0100
3090 FIX fixed perf-o-meter link leading to old graph page even when new graphs are being used
---
.werks/3090 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/views/perfometer.py | 8 ++++++--
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/.werks/3090 b/.werks/3090
new file mode 100644
index 0000000..39d46ae
--- /dev/null
+++ b/.werks/3090
@@ -0,0 +1,10 @@
+Title: fixed perf-o-meter link leading to old graph page even when new graphs are being used
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1457429645
+
+
diff --git a/ChangeLog b/ChangeLog
index eec95b0..a763e0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -78,6 +78,7 @@
* 3230 FIX: Slightly improved popup menu positioning...
* 3264 FIX: Fix display of values in graphs that are < 1.0
* 3273 FIX: Dashboard: The dashboard is now preserving edit/view state during page reloads
+ * 3090 FIX: fixed perf-o-meter link leading to old graph page even when new graphs are being used
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node selection...
diff --git a/web/plugins/views/perfometer.py b/web/plugins/views/perfometer.py
index 4d01cb9..7e1390a 100644
--- a/web/plugins/views/perfometer.py
+++ b/web/plugins/views/perfometer.py
@@ -168,8 +168,12 @@ def paint_perfometer(row):
# pnpgraph_present: -1 means unknown (path not configured), 0: no, 1: yes
if 'X' in html.display_options and \
- row["service_pnpgraph_present"] != 0:
- return "perfometer" + stale_css, ('<a href="%s">%s</a>' % (pnp_url(row, "service"), content))
+ row["service_pnpgraph_present"] != 0:
+ if metrics.cmk_graphs_possible():
+ url = new_graphing_url(row, "service")
+ else:
+ url = pnp_url(row, "service")
+ return "perfometer" + stale_css, ('<a href="%s">%s</a>' % (url, content))
else:
return "perfometer" + stale_css, content
Module: check_mk
Branch: master
Commit: 0a95c9705d4f8499d971b411266a8bad8531fb0c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0a95c9705d4f84…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 8 10:27:17 2016 +0100
3275 FIX Piggyback based services were skipped on "No agent hosts"
This issue was introduced with werk #3214.
---
.werks/3275 | 10 ++++++++++
ChangeLog | 1 +
modules/check_mk.py | 6 ++++--
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/3275 b/.werks/3275
new file mode 100644
index 0000000..999620b
--- /dev/null
+++ b/.werks/3275
@@ -0,0 +1,10 @@
+Title: Piggyback based services were skipped on "No agent hosts"
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1457429199
+
+This issue was introduced with werk #3214.
diff --git a/ChangeLog b/ChangeLog
index 88b705a..06d3f7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
* 3220 FIX: Check_MK HW/SW Inventory is now always disabled for "No Agent" hosts
* 3221 FIX: Fixed broken nagios config because of missing contact group check-mk-notify with rule based notifications enabled...
* 3234 FIX: Make unixcat more robust...
+ * 3275 FIX: Piggyback based services were skipped on "No agent hosts"...
Checks & Agents:
* 3183 aruba_wlc_aps: new check which monitors the provisioned accesspoints of an Aruba Network WLAN Controller
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 4a2ac8e..4e21946 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1835,13 +1835,15 @@ def get_check_table(hostname, remove_duplicates=False, use_cache=True, world='co
elif type(hostlist[0]) == str:
pass # regular case: list of hostnames
elif hostlist != []:
- raise MKGeneralException("Invalid entry '%r' in check table. Must be single hostname or list of hostnames" % hostlist)
+ raise MKGeneralException("Invalid entry '%r' in check table. Must be single hostname "
+ "or list of hostnames" % hostlist)
# Skip SNMP checks for non SNMP hosts (might have been discovered before with other
# agent setting. Remove them without rediscovery). Same for agent based checks.
if not is_snmp_host(hostname) and is_snmp_check(checkname):
return
- if not is_tcp_host(hostname) and is_tcp_check(checkname):
+ if not is_tcp_host(hostname) and not has_piggyback_info(hostname) \
+ and is_tcp_check(checkname):
return
if hosttags_match_taglist(hosttags, tags) and \