{"action":"created","issue":{"url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/29","repository_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck","labels_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/29/comments","events_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/29/events","html_url":"https://github.com/sacha81/XA-and-XD-HealthCheck/issues/29","id":190083794,"number":29,"title":"Doesn't show accurate maintenance mode details","user":{"login":"crypticedge","id":2439824,"avatar_url":"https://avatars.githubusercontent.com/u/2439824?v=3","gravatar_id":"","url":"https://api.github.com/users/crypticedge","html_url":"https://github.com/crypticedge","followers_url":"https://api.github.com/users/crypticedge/followers","following_url":"https://api.github.com/users/crypticedge/following{/other_user}","gists_url":"https://api.github.com/users/crypticedge/gists{/gist_id}","starred_url":"https://api.github.com/users/crypticedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crypticedge/subscriptions","organizations_url":"https://api.github.com/users/crypticedge/orgs","repos_url":"https://api.github.com/users/crypticedge/repos","events_url":"https://api.github.com/users/crypticedge/events{/privacy}","received_events_url":"https://api.github.com/users/crypticedge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-17T15:48:10Z","updated_at":"2016-11-17T16:13:49Z","closed_at":"2016-11-17T15:53:58Z","body":"I placed a test server in to maintenance mode and ran the script to try to get it to trigger a failure on that, and it shows it's still out of maintenance mode. One of the key things we want this script for is identifying servers we forgot to bring back out of it. \r\n\r\nBoth Studio and Director correctly reflect the maintenance mode setting accurately. \r\n\r\n![image](https://cloud.githubusercontent.com/assets/2439824/20396039/e1c807c0-acb2-11e6-8975-34cf65dffeaa.png)\r\n\r\nWe're also seeing a lot of errors \r\n\r\nThe variable '$EnvironmentName' cannot be retrieved because it has not been set.\r\nAt C:\\scripts\\XA-and-XD-HealthCheck.ps1:1235 char:21\r\n+ $EnvironmentName = \"$EnvironmentName $XDVersion\"\r\n+                     ~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (EnvironmentName:String) [], RuntimeException\r\n    + FullyQualifiedErrorId : VariableIsUndefined\r\n\r\nNew-Variable : Cannot overwrite variable EnvironmentName because the variable has been optimized. Try using the\r\nNew-Variable or Set-Variable cmdlet (without any aliases), or dot-source the command that you are using to set the\r\nvariable.\r\nAt C:\\scripts\\XA-and-XD-HealthCheck.ps1:74 char:26\r\n+         If ($CreateVariable) { New-Variable -Name $_.Name -Value $VarValue -Scope $_.S ...\r\n+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (EnvironmentName:String) [New-Variable], SessionStateUnauthorizedAccessExcep\r\n   tion\r\n    + FullyQualifiedErrorId : VariableNotWritableRare,Microsoft.PowerShell.Commands.NewVariableCommand\r\n\r\nNew-Variable : Cannot overwrite variable ShowXenAppTable because the variable has been optimized. Try using the\r\nNew-Variable or Set-Variable cmdlet (without any aliases), or dot-source the command that you are using to set the\r\nvariable.\r\nAt C:\\scripts\\XA-and-XD-HealthCheck.ps1:74 char:26\r\n+         If ($CreateVariable) { New-Variable -Name $_.Name -Value $VarValue -Scope $_.S ...\r\n+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (ShowXenAppTable:String) [New-Variable], SessionStateUnauthorizedAccessExcep\r\n   tion\r\n    + FullyQualifiedErrorId : VariableNotWritableRare,Microsoft.PowerShell.Commands.NewVariableCommand\r\n\r\nNew-Variable : Cannot overwrite variable PvsWriteMaxSize because the variable has been optimized. Try using the\r\nNew-Variable or Set-Variable cmdlet (without any aliases), or dot-source the command that you are using to set the\r\nvariable.\r\nAt C:\\scripts\\XA-and-XD-HealthCheck.ps1:74 char:26\r\n+         If ($CreateVariable) { New-Variable -Name $_.Name -Value $VarValue -Scope $_.S ...\r\n+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (PvsWriteMaxSize:String) [New-Variable], SessionStateUnauthorizedAccessExcep\r\n   tion\r\n    + FullyQualifiedErrorId : VariableNotWritableRare,Microsoft.PowerShell.Commands.NewVariableCommand\r\n\r\nThe variable '$PvsWriteMaxSize' cannot be retrieved because it has not been set.\r\nAt C:\\scripts\\XA-and-XD-HealthCheck.ps1:81 char:20\r\n+ $PvsWriteMaxSize = $PvsWriteMaxSize * 1Gb\r\n+                    ~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (PvsWriteMaxSize:String) [], RuntimeException\r\n    + FullyQualifiedErrorId : VariableIsUndefined\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/comments/261290710","html_url":"https://github.com/sacha81/XA-and-XD-HealthCheck/issues/29#issuecomment-261290710","issue_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/29","id":261290710,"user":{"login":"crypticedge","id":2439824,"avatar_url":"https://avatars.githubusercontent.com/u/2439824?v=3","gravatar_id":"","url":"https://api.github.com/users/crypticedge","html_url":"https://github.com/crypticedge","followers_url":"https://api.github.com/users/crypticedge/followers","following_url":"https://api.github.com/users/crypticedge/following{/other_user}","gists_url":"https://api.github.com/users/crypticedge/gists{/gist_id}","starred_url":"https://api.github.com/users/crypticedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crypticedge/subscriptions","organizations_url":"https://api.github.com/users/crypticedge/orgs","repos_url":"https://api.github.com/users/crypticedge/repos","events_url":"https://api.github.com/users/crypticedge/events{/privacy}","received_events_url":"https://api.github.com/users/crypticedge/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T16:13:49Z","updated_at":"2016-11-17T16:13:49Z","body":"That's great and all, but reading the XML I'm not seeing anywhere to edit in machine names, nor does it populate them from it's checks against the delivery controller. "}}
{"actor":{"display_login":"crypticedge"}}