Module: check_mk
Branch: master
Commit: 807006b0cac641abdaf6970b10d0dccea050430a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=807006b0cac641…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Mon Jul 21 10:46:48 2014 +0200
FIX windows_updates: agent plugin now always sends section header, even if no update
information provided
This helps to get more meaningful error information when auto update is deactivated for a
host previously
inventorized with the windows updates check.
---
.werks/638 | 9 +++++++++
ChangeLog | 1 +
agents/windows/plugins/windows_updates.vbs | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/638 b/.werks/638
new file mode 100644
index 0000000..3c7e86e
--- /dev/null
+++ b/.werks/638
@@ -0,0 +1,9 @@
+Title: windows_updates: agent plugin now always sends section header, even if no update
information provided
+Level: 2
+Component: checks
+Version: 1.2.5i5
+Date: 1405932135
+Class: fix
+
+This helps to get more meaningful error information when auto update is deactivated for a
host previously
+inventorized with the windows updates check.
diff --git a/ChangeLog b/ChangeLog
index dda3d7b..55de699 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -57,6 +57,7 @@
* 0634 FIX: Max Bandwidth for PNP-Graphs of Interface checks corrected...
* 0635 FIX: fc_port: the check no longer inventorizes ports with administrative state
of 'unknown' or 'offline'
* 0636 FIX: fc_port: do not inventorize if brocade fibre channel mib is also
supported on the device...
+ * 0638 FIX: windows_updates: agent plugin now always sends section header, even if no
update information provided...
Multisite:
* 1013 Sort host names naturally, e.g. foobar11 comes after foobar2...
diff --git a/agents/windows/plugins/windows_updates.vbs
b/agents/windows/plugins/windows_updates.vbs
index 596fce4..ce04507 100644
--- a/agents/windows/plugins/windows_updates.vbs
+++ b/agents/windows/plugins/windows_updates.vbs
@@ -48,8 +48,8 @@ Set WSHShell = CreateObject("WScript.Shell")
Dim RebootTime
Dim RegPath
+WScript.Echo "<<<windows_updates>>>"
If CreateObject("Microsoft.Update.AutoUpdate").DetectNow <> 0 Then
- WScript.Echo "<<<windows_updates>>>"
WScript.Quit()
End If