protected override void Collect() { string title = "Correlation"; AddDataPair(title, "Rules support", ProductDetection.Vugen.correlationRulesSupport); //check for ignored content only on versions > 11.50 if (ProductDetection.Vugen.isNew) { AddDataPair(title, "Ignored content types", ProductDetection.Vugen.correlationIgnoredContent); } AddDataPair(title, "Rules", CorrelationRules.GetListOfRulesText()); AddDataPair(title, CorrelationRules.settingsFileName + " content", Html.AddLinkToHiddenContent(CorrelationRules.GetRawContent())); //BBHOOK vesrion title = "Files"; AddDataPair(title, "Bbhook version", ProductDetection.Vugen.bbhookVersion); //AddStringsToDictionary("Miscellaneous registry settings", "Registry keys", importantRegKeys.ToString()); var iniContent = IniParser.ToHtml(Path.Combine(ProductDetection.Vugen.ConfigFolder, "vugen.ini")); AddDataPair(title, "vugen.ini content", Html.AddLinkToHiddenContent(iniContent)); title = "Log Files"; AddDataPair(title, "Registration failures", Html.AddLinkToHiddenContent(Helper.GetRegistraionFailuresContent())); if (ProductDetection.Vugen.isNew) { //TODO see how fast we parse 10MB log file int lines = 50; string vugenLogContent = Helper.GetLastLinesFromFile(2048 * 1024, System.IO.Path.GetTempPath() + "HP.LR.VuGen.log", lines); AddDataPair(title, "Last " + lines + " lines of HP.LR.VuGen.Log", Html.AddLinkToHiddenContent(vugenLogContent)); } }
public static string GetKerberosConfiguration() { StringBuilder krb5Content = new StringBuilder(); // Get the KRB5_CONFIG environment variable string krb5File = OSCollectorHelper.GetEnvVariable("KRB5_CONFIG"); // If KRB5_CONFIG is not set if (krb5File.Contains("Not set")) { // Sometimes KRB5_CONFIG is not set because the krb5.ini is placed in C:\Windows Logger.Info("No KRB5_CONFIG eng. variable found. Searching for the file in C:\\Windows"); if (File.Exists(@"C:\Windows\krb5.ini")) { krb5File = @"C:\Windows\krb5.ini"; } else { return("Not detected"); } } else { krb5Content.Append(Html.B("KRB5_CONFIG = ") + krb5File + Html.br); } // Check if KRB5_TRACE exists and if it does add it's value var krb5trace = OSCollectorHelper.GetEnvVariable("KRB5_TRACE"); if (!krb5trace.Contains("Not set")) { krb5Content.Append(Html.B("KRB5_TRACE = ") + krb5trace + Html.br + Html.br); } // Get the content of krb5.ini Logger.Info("Getting the content from " + krb5File); krb5Content.Append("krb5.ini " + Html.AddLinkToHiddenContent(IniParser.ToHtml(krb5File))); return(krb5Content.ToString()); }
protected override void Collect() { var filePath = Path.Combine(ProductDetection.Analysis.ConfigFolder, "LRAnalysis80.ini"); AddDataPair("Analysis configuration files", "LRAnalysis80.ini file content", Html.AddLinkToHiddenContent(IniParser.ToHtml(filePath))); }
protected override void Collect() { var filePath = Path.Combine(ProductDetection.FullLR.ConfigFolder, "wlrun7.ini"); AddDataPair("Configuration files", "wlrun7.ini file content", Html.AddLinkToHiddenContent(IniParser.ToHtml(filePath))); AddDataPair("Connections", "Connected load generators", ControllerSettingsCollectorHelper.GetConnectedLGs()); //filePath = Path.Combine(ProductDetection.FullLR.WebControllerFolder, @"webapp\server\lib\config\configuration.json"); //AddDataPair("Web Controller", "Settings", Html.AddLinkToHiddenContent(ControllerSettingsCollectorHelper.WebControllerPorts())); }
public string GetIniContentInfo() { string filePath = Path.Combine(installLocation, "bin\\CtrxAgent.ini"); return(IniParser.ToHtml(filePath)); }