Module: check_mk
Branch: master
Commit: 336b0b70895ffc681a9ed6d43117e7f12eff99de
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=336b0b70895ffc…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Wed Nov 8 09:42:16 2017 +0100
5353 FIX citrix_sessions: fixes a case where no session number was returned
In some circumstances citrix_sessions did not return values for
XenServers. This werk fixes this problem in the citrix_xenapp
PowerShell script so that always a valid session number is
returned.
Change-Id: I5bfa63026504562e4c86ecbae8e9d685379423bd
---
.werks/5353 | 13 +++++++++++++
agents/windows/plugins/citrix_xenapp.ps1 | 6 +++---
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/.werks/5353 b/.werks/5353
new file mode 100644
index 0000000..478d447
--- /dev/null
+++ b/.werks/5353
@@ -0,0 +1,13 @@
+Title: citrix_sessions: fixes a case where no session number was returned
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1510130037
+Class: fix
+
+In some circumstances citrix_sessions did not return values for
+XenServers. This werk fixes this problem in the citrix_xenapp
+PowerShell script so that always a valid session number is
+returned.
diff --git a/agents/windows/plugins/citrix_xenapp.ps1 b/agents/windows/plugins/citrix_xenapp.ps1
index f915d64..7de1f68 100644
--- a/agents/windows/plugins/citrix_xenapp.ps1
+++ b/agents/windows/plugins/citrix_xenapp.ps1
@@ -6,10 +6,10 @@ $load = Get-XAServerLoad -ServerName $env:computername | Select-Object -ExpandPr
$load
### Citrix XenApp Sessions
-$disc = (Get-XASession -ServerName $env:computername |Where {$_.State -eq "Disconnected" }).count
-$activ = (Get-XASession -ServerName $env:computername |Where {$_.State -eq "Active" }).count
+$disc = @(Get-XASession -ServerName $env:computername |Where {$_.State -eq "Disconnected" }).count
+$activ = @(Get-XASession -ServerName $env:computername |Where {$_.State -eq "Active" }).count
$all = ($disc + $activ)
"<<<citrix_sessions>>>"
"sessions {0}" -f $all
"active_sessions {0}" -f $activ
-"inactive_sessions {0}" -f $disc
\ No newline at end of file
+"inactive_sessions {0}" -f $disc
Module: check_mk
Branch: master
Commit: 97d128b93188f4b528662327a385ed9f856e10b4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97d128b93188f4…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Nov 8 09:27:19 2017 +0100
5196 FIX Bumped Livestatus stack size to give regex matching more breathing room.
The current implementation of regular expression matching can use a
non-trivial amount of memory (mainly stack), and our previous memory limit
was a bit tight. This has been improved, so regular expression matching
should work more reliably.
Note that this increases the overall amount of memory allocated for
Check_MK, but for normal installations the increase should be negligible.
Change-Id: Iff55bc95ba8a316174a4830a68939b5a16be04df
---
.werks/5196 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.werks/5196 b/.werks/5196
new file mode 100644
index 0000000..645d68f
--- /dev/null
+++ b/.werks/5196
@@ -0,0 +1,17 @@
+Title: Bumped Livestatus stack size to give regex matching more breathing room.
+Level: 1
+Component: livestatus
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1510129352
+Class: fix
+
+The current implementation of regular expression matching can use a
+non-trivial amount of memory (mainly stack), and our previous memory limit
+was a bit tight. This has been improved, so regular expression matching
+should work more reliably.
+
+Note that this increases the overall amount of memory allocated for
+Check_MK, but for normal installations the increase should be negligible.
+