private List <RpcGetMonitoringItemIdentity.RpcMonitorItemIdentity> GetMonitoringItemsForHealthSet(string healthSetName)
        {
            List <RpcGetMonitoringItemIdentity.RpcMonitorItemIdentity> result = null;

            try
            {
                result = RpcGetMonitoringItemIdentity.Invoke(this.Server.Fqdn, healthSetName, 900000);
            }
            catch (ActiveMonitoringServerException)
            {
            }
            catch (ActiveMonitoringServerTransientException)
            {
            }
            return(result);
        }
Example #2
0
 protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     try
     {
         List <RpcGetMonitoringItemIdentity.RpcMonitorItemIdentity> list = null;
         LocalizedException ex = null;
         try
         {
             list = RpcGetMonitoringItemIdentity.Invoke(this.Server.Fqdn, this.Identity, 900000);
         }
         catch (ActiveMonitoringServerException ex2)
         {
             ex = ex2;
         }
         catch (ActiveMonitoringServerTransientException ex3)
         {
             ex = ex3;
         }
         if (ex != null)
         {
             this.WriteWarning(ex.LocalizedString);
         }
         if (list != null)
         {
             foreach (RpcGetMonitoringItemIdentity.RpcMonitorItemIdentity rpcIdentity in list)
             {
                 MonitoringItemIdentity sendToPipeline = new MonitoringItemIdentity(this.Server.Fqdn, rpcIdentity);
                 base.WriteObject(sendToPipeline);
             }
         }
     }
     finally
     {
         TaskLogger.LogExit();
     }
 }