Пример #1
0
        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"));
            }
        }
Пример #2
0
        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"));
              }
        }