Module: check_mk
Branch: master
Commit: e9a7f293c189c7ff0cdd448dbbcc707bac7a379f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e9a7f293c189c7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 4 14:07:31 2014 +0100
#1646 FIX hyperv_vms: Plugin garbles following plugin output when no VMs exist
---
.werks/1646 | 8 ++++++++
ChangeLog | 1 +
agents/windows/plugins/hyperv_vms.ps1 | 1 +
3 files changed, 10 insertions(+)
diff --git a/.werks/1646 b/.werks/1646
new file mode 100644
index 0000000..7e9123c
--- /dev/null
+++ b/.werks/1646
@@ -0,0 +1,8 @@
+Title: hyperv_vms: Plugin garbles following plugin output when no VMs exist
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417698377
+Class: fix
+
diff --git a/ChangeLog b/ChangeLog
index 0cc98f0..d54f9e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -96,6 +96,7 @@
* 1623 FIX: hp_proliant_mem: support for some yet unhandled status situations
* 1640 FIX: check_jolokia_metrics_serv_req: Fixed wrong levels shown for upper
thresholds
* 1632 FIX: hr_fs: remove ugly "mounted on:" information appearing on
Juniper devices
+ * 1646 FIX: hyperv_vms: Plugin garbles following plugin output when no VMs exist
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/agents/windows/plugins/hyperv_vms.ps1
b/agents/windows/plugins/hyperv_vms.ps1
index 84a235c..7245f59 100644
--- a/agents/windows/plugins/hyperv_vms.ps1
+++ b/agents/windows/plugins/hyperv_vms.ps1
@@ -1,2 +1,3 @@
Write-Host -NoNewLine "<<<hyperv_vms>>>"
Get-VM | format-table -HideTableHeaders -property Name, State, Uptime, Status
+Write-Host