{"action":"created","issue":{"url":"https://api.github.com/repos/MattHodge/Graphite-PowerShell-Functions/issues/32","labels_url":"https://api.github.com/repos/MattHodge/Graphite-PowerShell-Functions/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/MattHodge/Graphite-PowerShell-Functions/issues/32/comments","events_url":"https://api.github.com/repos/MattHodge/Graphite-PowerShell-Functions/issues/32/events","html_url":"https://github.com/MattHodge/Graphite-PowerShell-Functions/issues/32","id":50756848,"number":32,"title":"Missing properties","user":{"login":"christrotter","id":8292406,"avatar_url":"https://avatars.githubusercontent.com/u/8292406?v=3","gravatar_id":"","url":"https://api.github.com/users/christrotter","html_url":"https://github.com/christrotter","followers_url":"https://api.github.com/users/christrotter/followers","following_url":"https://api.github.com/users/christrotter/following{/other_user}","gists_url":"https://api.github.com/users/christrotter/gists{/gist_id}","starred_url":"https://api.github.com/users/christrotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christrotter/subscriptions","organizations_url":"https://api.github.com/users/christrotter/orgs","repos_url":"https://api.github.com/users/christrotter/repos","events_url":"https://api.github.com/users/christrotter/events{/privacy}","received_events_url":"https://api.github.com/users/christrotter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-03T01:00:57Z","updated_at":"2015-02-25T04:16:31Z","closed_at":"2015-02-25T04:16:31Z","body":"Edit: I would like to add, this could very well be user error, so please point it out if so!\r\n\r\nThanks so much for writing and sharing this!!  Found that installing via Chef cookbook just wouldn't do anything (2008R2), so tried the manual version here to troubleshoot. (2012R2)\r\n\r\nWhen I first tried to run the startup script on 2008R2:\r\n```powershell\r\nPS C:\\Windows\\system32> Import-Module graphite-powershell\r\nImport-Module : The 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\graphite-powershell\\graphite-powershell.psd1' m\r\nodule cannot be imported because its manifest contains one or more members that are not valid. The valid manifest membe\r\nrs are ('ModuleToProcess', 'NestedModules', 'GUID', 'Author', 'CompanyName', 'Copyright', 'ModuleVersion', 'Description\r\n', 'PowerShellVersion', 'PowerShellHostName', 'PowerShellHostVersion', 'CLRVersion', 'DotNetFrameworkVersion', 'Process\r\norArchitecture', 'RequiredModules', 'TypesToProcess', 'FormatsToProcess', 'ScriptsToProcess', 'PrivateData', 'RequiredA\r\nssemblies', 'ModuleList', 'FileList', 'FunctionsToExport', 'VariablesToExport', 'AliasesToExport', 'CmdletsToExport').\r\nRemove the members that are not valid ('RootModule'), then try to import the module again.\r\nAt line:1 char:14\r\n+ Import-Module <<<<  graphite-powershell\r\n    + CategoryInfo          : InvalidData: (C:\\Windows\\syst...powershell.psd1:String) [Import-Module], InvalidOperatio\r\n   nException\r\n    + FullyQualifiedErrorId : Modules_InvalidManifestMember,Microsoft.PowerShell.Commands.ImportModuleCommand\r\n```\r\nGoogling gave me a fix:\r\n```powershell\r\n# This is the PSD1 file...\r\n# Script module or binary module file associated with this manifest.\r\nOLD:   RootModule = 'Graphite-Powershell.psm1'\r\nNEW:  ModuleToProcess = 'Graphite-Powershell.psm1'\r\n```\r\nNow that it's actually running...I get a bunch of these:\r\n```powershell\r\nPS C:\\GraphitePowershellFunctions> start-statstographite -verbose\r\nThe property 'NodeHostName' cannot be found on this object. Verify that the property exists.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\graphite-powershell\\Functions\\Internal.ps1:40 char:5\r\n+     $Config.NodeHostName = $xmlfile.Configuration.Graphite.NodeHostName\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException\r\n    + FullyQualifiedErrorId : PropertyNotFoundStrict\r\n```\r\n<snip, a lot of these>\r\n```powershell\r\nThe property 'SendUsingUDP' cannot be found on this object. Verify that the property exists.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\graphite-powershell\\Functions\\Internal.ps1:52 char:5\r\n+     [bool]$Config.SendUsingUDP = [System.Convert]::ToBoolean($xmlfile.Configurat ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException\r\n    + FullyQualifiedErrorId : PropertyNotFoundStrict\r\nThe property 'MSSQLMetics' cannot be found on this object. Verify that the property exists.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\graphite-powershell\\Functions\\Internal.ps1:93 char:5\r\n+     $Config.MSSQLMetricPath = $xmlfile.Configuration.MSSQLMetics.MetricPath\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException\r\n    + FullyQualifiedErrorId : PropertyNotFoundStrict\r\n```\r\n<snip, a lot of these> \r\n\r\nI found the first one is resolved by modifying the config XML:\r\nOLD:    <Hostname>$env:COMPUTERNAME</Hostname>\r\nNEW:    <NodeHostname>$env:COMPUTERNAME</NodeHostname>\r\n\r\nThe 2nd (IIRC) was resolved by adding in the 'SendUsingUDP' config option.\r\n\r\nThe 3rd is clearly a typo: 'MSSQLMetics'.\r\n\r\nAfter finally getting it started and letting it run for a while, started getting these: (snipped)\r\n```powershell\r\nThe property 'MSSQLMetics' cannot be found on this object. Verify that the property exists.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\graphite-powershell\\Functions\\Internal.ps1:96 char:5\r\n+     [int]$Config.MSSQLConnectTimeout = $xmlfile.Configuration.MSSQLMetics.SQLCon ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException\r\n    + FullyQualifiedErrorId : PropertyNotFoundStrict\r\n \r\nThe property 'MSSQLMetics' cannot be found on this object. Verify that the property exists.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\graphite-powershell\\Functions\\Internal.ps1:97 char:5\r\n+     [int]$Config.MSSQLQueryTimeout = $xmlfile.Configuration.MSSQLMetics.SQLQuery ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException\r\n    + FullyQualifiedErrorId : PropertyNotFoundStrict\r\n \r\nThe property 'MSSQLMetics' cannot be found on this object. Verify that the property exists.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\graphite-powershell\\Functions\\Internal.ps1:102 char:28\r\n+     foreach ($sqlServer in $xmlfile.Configuration.MSSQLMetics.SQLServers.SQLServ ...\r\n+                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException\r\n    + FullyQualifiedErrorId : PropertyNotFoundStrict\r\n```\r\n\r\nAgain, looks like something from the XML file.  Interestingly, your main readme has a similar typo: MSSQLMetics Configuration Section\r\n\r\nI think I can get it working enough for my purposes (guessing this is just a case of missing stuff from the config file - even though you'd think it wasn't required), just thought I'd let you know it was slightly broken."},"comment":{"url":"https://api.github.com/repos/MattHodge/Graphite-PowerShell-Functions/issues/comments/75902976","html_url":"https://github.com/MattHodge/Graphite-PowerShell-Functions/issues/32#issuecomment-75902976","issue_url":"https://api.github.com/repos/MattHodge/Graphite-PowerShell-Functions/issues/32","id":75902976,"user":{"login":"MattHodge","id":1966555,"avatar_url":"https://avatars.githubusercontent.com/u/1966555?v=3","gravatar_id":"","url":"https://api.github.com/users/MattHodge","html_url":"https://github.com/MattHodge","followers_url":"https://api.github.com/users/MattHodge/followers","following_url":"https://api.github.com/users/MattHodge/following{/other_user}","gists_url":"https://api.github.com/users/MattHodge/gists{/gist_id}","starred_url":"https://api.github.com/users/MattHodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattHodge/subscriptions","organizations_url":"https://api.github.com/users/MattHodge/orgs","repos_url":"https://api.github.com/users/MattHodge/repos","events_url":"https://api.github.com/users/MattHodge/events{/privacy}","received_events_url":"https://api.github.com/users/MattHodge/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T04:16:31Z","updated_at":"2015-02-25T04:16:31Z","body":"Fixed in [Graphite-PowerShell v1.2.1](https://github.com/MattHodge/Graphite-PowerShell-Functions/releases/tag/v1.2.1).\r\n\r\nThanks for reporting the issue!"}}