All:

We have a vendor that recyles their services over a 60min period nightly. It 
would appear I have a few options (and others I may not have considered):


*         Place class(es) in MM via Schedule Task each day

*         Define subscription to exclude emailing each day for that period

*         Use System.SchedulerFilter to define a schedule excluding that period 
every day

>From what I can tell, the third option is most desirable as the first two are 
>really more of a mask/hiding the underlying issue, rather than creating a 
>targeted monitor. I have been reviewing condition detection to use a schedule, 
>but all the examples I find online are for rules. I've always used VSAE's 
>built-in 'Monitor (Unit)' template for creating service monitors. I reviewed 
>the XML and see it's leveraging 
>Windows!Microsoft.Windows.CheckNTServiceStateMonitorType. I'm struggling on 
>how (or even if) I can configure a schedule to not run daily from 3AM-4AM. The 
>examples I have found are also using the older Authoring Console, not VSAE. I 
>tried to translate the XML output examples but am still coming up empty. 
>Anyone have a helpful article or example I can use as a learning reference?

Thank you!
Confidentiality Notice: This is a transmission from Montage Health. This 
message and any attached documents may be confidential and contain information 
protected by state and federal medical privacy statutes. They are intended only 
for the use of the addressee. If you are not the intended recipient, any 
disclosure, copying, or distribution of this information is strictly 
prohibited. If you received this transmission in error, please accept our 
apologies and notify the sender. Thank you.



<!-- This file has been automatically generated.
     Any changes made to this file may be lost the next time it is regenerated. 
-->
<ManagementPackFragment SchemaVersion="2.0" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <Monitoring>
    <Monitors>
      <UnitMonitor ID="Contoso.AppName.Monitor.SvcName.ServiceRunning" 
Accessibility="Public" Enabled="false" Target="Contoso.AppName.ServerRole" 
ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" 
Priority="Normal" 
TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" 
ConfirmDelivery="false">
        <Category>AvailabilityHealth</Category>
        <AlertSettings 
AlertMessage="Contoso.AppName.Monitor.SvcName.ServiceRunning.AlertMessage">
          <AlertOnState>Error</AlertOnState>
          <AutoResolve>true</AutoResolve>
          <AlertPriority>Normal</AlertPriority>
          <AlertSeverity>MatchMonitorHealth</AlertSeverity>
          <AlertParameters>
            
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
          </AlertParameters>
        </AlertSettings>
        <OperationalStates>
          <OperationalState ID="Running" MonitorTypeStateID="Running" 
HealthState="Success" />
          <OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" 
HealthState="Error" />
        </OperationalStates>
        <Configuration>
          
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
          <ServiceName>SvcName</ServiceName>
          <CheckStartupType>true</CheckStartupType>
        </Configuration>
      </UnitMonitor>
     </Monitors>
  </Monitoring>
  <Presentation>
    <StringResources>
      <StringResource 
ID="Contoso.AppName.Monitor.SvcName.ServiceRunning.AlertMessage" />
    </StringResources>
  </Presentation>
  <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
      <DisplayStrings>
        <DisplayString 
ElementID="Contoso.AppName.Monitor.SvcName.ServiceRunning">
          <Name>Service Running: SvcName</Name>
          <Description>Description for the new unit monitor.</Description>
        </DisplayString>
        <DisplayString 
ElementID="Contoso.AppName.Monitor.SvcName.ServiceRunning.AlertMessage">
          <Name>SvcName service is not running</Name>
          <Description>The SvcName service is not currently running on {0}.

Do **NOT** attempt to restart service. 

Contact #Vendor# support by sending email to: 
#address#@#vendor#.com</Description>
        </DisplayString>
        <DisplayString 
ElementID="Contoso.AppName.Monitor.SvcName.ServiceRunning" 
SubElementID="Running">
          <Name>Running</Name>
          <Description>Running</Description>
        </DisplayString>
        <DisplayString 
ElementID="Contoso.AppName.Monitor.SvcName.ServiceRunning" 
SubElementID="NotRunning">
          <Name>NotRunning</Name>
          <Description>NotRunning</Description>
        </DisplayString>
      </DisplayStrings>
    </LanguagePack>
  </LanguagePacks>
</ManagementPackFragment>

Reply via email to