Module: check_mk
Branch: master
Commit: 894a22ce3b1da7eab945b0792aaedb6d9c954bae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=894a22ce3b1da7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 5 16:13:20 2016 +0200
update for WK3111
---
agents/windows/plugins/citrix_farm.ps1 | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/agents/windows/plugins/citrix_farm.ps1
b/agents/windows/plugins/citrix_farm.ps1
index a3da4c1..28771e6 100644
--- a/agents/windows/plugins/citrix_farm.ps1
+++ b/agents/windows/plugins/citrix_farm.ps1
@@ -89,6 +89,7 @@ foreach ($Controller in $Controllers) {
if (!$totalinactive_sessions) {$totalinactive_sessions = 0}
$totalinactive_sessions = $totalinactive_sessions | Measure-Object -Sum | %{ $_.Sum }
"TotalFarmInactiveSessions $totalinactive_sessions"
+ "<<<<>>>>"
}
foreach ($XAmachine in $XAmachines) {
@@ -142,8 +143,10 @@ foreach ($Controller in $Controllers) {
# Column Serverload / Gets machines by their current load index.
$Serverload = $XAmachine | %{ $_.LoadIndex }
- "<<<citrix_serverload>>>"
- "$Serverload"
+ if(-NOT ([string]::IsNullOrEmpty($Serverload))) {
+ "<<<citrix_serverload>>>"
+ "$Serverload"
+ }
# Column SessionCount / Count of number of active / inactive sessions on the machine.
$Sessions = $XAmachine | %{ $_.SessionCount }
@@ -164,16 +167,18 @@ foreach ($Controller in $Controllers) {
"inactive_sessions 0"
}
+ "<<<<>>>>"
if ($HostingServerName) {
+ $HostingServerName = $HostingServerName.Replace($DNSdomain,$null)
- $HostingServerName = $HostingServerName.Replace($DNSdomain,$null)
- "<<<<$HostingServerName>>>>"
- "<<<citrix_hostsystem>>>"
- "VMName $HostedMachineName"
+ "<<<<$HostingServerName>>>>"
+ "<<<citrix_hostsystem>>>"
+ "VMName $HostedMachineName"
- # Column HypervisorConnectionName / Gets machines with a specific Citrix Virtual
Delivery Agent version.
- $HypervisorConnectionName = $XAmachine | %{ $_.HypervisorConnectionName }
- "CitrixPoolName $HypervisorConnectionName"
- }
+ # Column HypervisorConnectionName / Gets machines with a specific Citrix Virtual
Delivery Agent version.
+ $HypervisorConnectionName = $XAmachine | %{ $_.HypervisorConnectionName }
+ "CitrixPoolName $HypervisorConnectionName"
+ "<<<<>>>>"
+ }
}
"<<<<>>>>"