Module: check_mk
Branch: master
Commit: 870e801051d07336673f022944ba9ef70f504b61
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=870e801051d073…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Oct 23 09:50:32 2014 +0200
#1188 veeam_client: Check now also outputs ReadSize and TransferedSize
If you want to use this new information, you also have to update the agent plugin.
If you don't want, you can keep the old plugin.
---
.werks/1188 | 11 +++++++++++
ChangeLog | 1 +
agents/windows/plugins/veeam_backup_status.ps1_ | 9 +++++++++
checks/veeam_client | 6 ++++++
4 files changed, 27 insertions(+)
diff --git a/.werks/1188 b/.werks/1188
new file mode 100644
index 0000000..87e4558
--- /dev/null
+++ b/.werks/1188
@@ -0,0 +1,11 @@
+Title: veeam_client: Check now also outputs ReadSize and TransferedSize
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i6
+Date: 1414050515
+Class: feature
+
+If you want to use this new information, you also have to update the agent plugin.
+If you don't want, you can keep the old plugin.
+
diff --git a/ChangeLog b/ChangeLog
index 46e6aa2..4aec97b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -73,6 +73,7 @@
* 1422 agent_vsphere: now able to configure where the power state of a vm or esx-host
should be assigned...
* 1442 ups_socomec_out_source: New check for checking the power source of out phases
for Socomec UPSs
* 0662 domino_mailqueues: new check to monitor mail queues in Lotus Domino
+ * 1188 veeam_client: Check now also outputs ReadSize and TransferedSize...
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/agents/windows/plugins/veeam_backup_status.ps1_
b/agents/windows/plugins/veeam_backup_status.ps1_
index 9d73a79..cf8d38f 100644
--- a/agents/windows/plugins/veeam_backup_status.ps1_
+++ b/agents/windows/plugins/veeam_backup_status.ps1_
@@ -78,6 +78,14 @@ foreach ($myJob in $myBackupJobs)
$myTaskTotalSize = $myTask.Progress.TotalSize
$myTaskText = "$myTaskText" + "TotalSizeByte" + "`t" +
"$myTaskTotalSize" + "`n"
+
+ $myTaskReadSize = $myTask.Progress.ReadSize
+
+ $myTaskText = "$myTaskText" + "ReadSizeByte" + "`t" +
"$myTaskReadSize" + "`n"
+
+ $myTaskTransferedSize = $myTask.Progress.TransferedSize
+
+ $myTaskText = "$myTaskText" + "TransferedSizeByte" + "`t"
+ "$myTaskTransferedSize" + "`n"
$myTaskStartTime = ""
$myTaskStartTime = $myTask.Progress.StartTime | get-date -Format "dd.MM.yyyy
HH:mm:ss" -ErrorAction SilentlyContinue
@@ -131,3 +139,4 @@ $errItem = $_.Exception.ItemName
Write-Error "Totally unexpected and unhandled error occured:`n Item: $errItem`n
Error Message: $errMsg"
Break
}
+
diff --git a/checks/veeam_client b/checks/veeam_client
index 69291da..b6ea4f2 100644
--- a/checks/veeam_client
+++ b/checks/veeam_client
@@ -51,6 +51,12 @@ def check_veeam_client(item, params, info):
# Only output the Job name
infotexts.append("Job: %s" % data['JobName'] )
+ # Output ReadSize and TransferedSize if available
+ if "ReadSizeByte" in data:
+ infotexts.append("Read Size: %s" %
get_bytes_human_readable(int(data['ReadSizeByte'])))
+ if "TransferedSizeByte" in data:
+ infotexts.append("Transfered Size: %s" %
get_bytes_human_readable(int(data['TransferedSizeByte'])))
+
# Check Stop time in any case, that we can catch hanging backups
if "StopTime" not in data:
state = 2