Module: check_mk
Branch: master
Commit: f0fa34e125a95248a96c874c5069667af837ddff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f0fa34e125a952…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Tue Apr 18 14:14:58 2017 +0200
4619 veeam_client: Now shows information to which host a backup job belongs to
You need to update the plugin to benefit from this werk.
Change-Id: I9f8d571a222c597349415691361c20fa4645c846
---
.werks/4619 | 10 ++++++++++
agents/windows/plugins/veeam_backup_status.ps1_ | 4 ++++
checks/veeam_client | 3 +++
3 files changed, 17 insertions(+)
diff --git a/.werks/4619 b/.werks/4619
new file mode 100644
index 0000000..1a341a5
--- /dev/null
+++ b/.werks/4619
@@ -0,0 +1,10 @@
+Title: veeam_client: Now shows information to which host a backup job belongs to
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1492517559
+Class: feature
+
+You need to update the plugin to benefit from this werk.
diff --git a/agents/windows/plugins/veeam_backup_status.ps1_
b/agents/windows/plugins/veeam_backup_status.ps1_
index 88df1f5..493542b 100644
--- a/agents/windows/plugins/veeam_backup_status.ps1_
+++ b/agents/windows/plugins/veeam_backup_status.ps1_
@@ -122,6 +122,10 @@ foreach ($myJob in $myBackupJobs)
$myTaskText = "$myTaskText" + "DisplayName" + "`t" +
"$myTaskDisplayName" + "`n"
+ $myBackupHost = Hostname
+
+ $myTaskText = "$myTaskText" + "BackupServer" + "`t" +
"$myBackupHost" + "`n"
+
$myTaskText = "$myTaskText" + "<<<<" +
">>>>" +"`n"
}
diff --git a/checks/veeam_client b/checks/veeam_client
index 10d21a2..cfbd51d 100644
--- a/checks/veeam_client
+++ b/checks/veeam_client
@@ -149,6 +149,9 @@ def check_veeam_client(item, params, parsed):
perfdata.append(('avgspeed', AvgSpeedBps))
infotexts.append(("Average Speed: %s/s" %
get_bytes_human_readable(AvgSpeedBps)))
+ # Append backup server if available
+ if "BackupServer" in data:
+ infotexts.append("Backup server: %s" % data['BackupServer'])
return state, ", ".join(infotexts), perfdata