static void GetShunraProductDetails(InstalledProgram p) { string currentVersion = RegistryWrapper.GetRegKey32(RegHive.LocalMachine, @"SOFTWARE\Shunra\Bootstrapper", "CurrentVersion"); string buildVersion = RegistryWrapper.GetRegKey32(RegHive.LocalMachine, @"SOFTWARE\Shunra\Bootstrapper", "BuildVersion"); string installedPath = RegistryWrapper.GetRegKey32(RegHive.LocalMachine, @"SOFTWARE\Shunra\Bootstrapper", "InstalledPath"); productDetails = new StringBuilder(); productDetails.Append(Html.B(p.DisplayName) + Helper.ConvertInstallDate(p.InstallDate) + Html.br); productDetails.Append("Version: " + currentVersion + Html.br); productDetails.Append("Build: " + buildVersion + Html.br); productDetails.Append("Location: " + installedPath + Html.br + Html.br); productDetails.Append("Services: " + Html.br); productDetails.Append("Shunra WatchDog Service: " + PCServicesCollectorHelper.GetServiceInfo("ShunraWatchDogService") + Html.br); productDetails.Append("Shunra Performance Counters Service: " + PCServicesCollectorHelper.GetServiceInfo("ShunraPerformanceCountersService") + Html.br); }
protected override void Collect() { var title = "Performance Center Server"; if (ProductDetection.pcServer.IsInstalled) { AddDataPair(title, "Data Collection Agent service", PCServicesCollectorHelper.GetServiceInfo("DataCollectionAgent")); AddDataPair(title, "Remote Management Agent service", PCServicesCollectorHelper.GetServiceInfo("RemoteManagementAgent")); } if (ProductDetection.isPCHostInstalled) { AddDataPair(title, "Data Collection Agent service", PCServicesCollectorHelper.GetServiceInfo("DataCollectionAgent")); AddDataPair(title, "Remote Management Agent service", PCServicesCollectorHelper.GetServiceInfo("RemoteManagementAgent")); AddDataPair(title, "Performance Center Agent service", PCServicesCollectorHelper.GetServiceInfo("Performance CenterAgent")); AddDataPair(title, "Performance Center Load Testing service", PCServicesCollectorHelper.GetServiceInfo("Performance Center Load Testing Service")); } }
protected override void Collect() { MagentCollectorHelper magentInfo = new MagentCollectorHelper(); string title = "HP Load Testing Agent"; AddDataPair(title, "Name of installed agent", magentInfo.IsAgentInstalledInfo()); AddDataPair(title, "Status", magentInfo.GetAgentStatus()); AddDataPair(title, "Last 10 lines of agent's log:", magentInfo.GetLastLinesFromAgentLog()); if (magentInfo.isInstalled) { AddDataPair(title, "Enabled firewall agent?", magentInfo.IsFirewallAgentEnabledInfo()); AddDataPair(title, "Enabled terminal services?", magentInfo.IsTerminalServicesEnabledInfo()); } if (magentInfo.isAgentInstalledAsService) { AddDataPair(title, "Remote Management Agent service", PCServicesCollectorHelper.GetServiceInfo("RemoteManagementAgent")); } }