none
Service State monitoring - on a specific hours

    Question

  • hi

    i am monitoring service on servers using watcher node groups 

    so , discovery is like

    <Discovery ID="F.024MC.SVC.QuikExport.Class.Discovery.Rule" Enabled="false" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes>
              <DiscoveryClass TypeID="F.024MC.SVC.QuikExport.Class" />
            </DiscoveryTypes>
            <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.Win32ServiceInformationProviderWithClassSnapshotDataMapper">
              <ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
              <ServiceName>QuikExport service</ServiceName>
              <Frequency>60</Frequency>
              <ClassId>$MPElement[Name="F.024MC.SVC.QuikExport.Class"]$</ClassId>
              <InstanceSettings>
                <Settings>
                  <Setting>
                    <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                    <Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MSNL!Microsoft.SystemCenter.NTService"]/ServiceName$</Name>
                    <Value>$Data/Property[@Name='Name']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MSNL!Microsoft.SystemCenter.NTService"]/ServiceProcessName$</Name>
                    <Value>$Data/Property[@Name='BinaryPathName']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MSNL!Microsoft.SystemCenter.NTService"]/DisplayName$</Name>
                    <Value>$Data/Property[@Name='DisplayName']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MSNL!Microsoft.SystemCenter.NTService"]/Description$</Name>
                    <Value>$Data/Property[@Name='Description']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
                    <Value>FINAM 024MC SVC QuikExport</Value>
                  </Setting>
                </Settings>
              </InstanceSettings>
            </DataSource>
          </Discovery>

    and unit monitor is like

     <UnitMonitor ID="F.024MC.SVC.QuikService.Class.ServiceState.Monitor" Accessibility="Public" Enabled="true" Target="F.024MC.SVC.QuikService.Class" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
            <Category>AvailabilityHealth</Category>
            <AlertSettings AlertMessage="F.024MC.SVC.QuikService.Class.ServiceState.Monitor.AlertMessage">
              <AlertOnState>Error</AlertOnState>
              <AutoResolve>true</AutoResolve>
              <AlertPriority>High</AlertPriority>
              <AlertSeverity>Error</AlertSeverity>
              <AlertParameters>
                <AlertParameter1>$Target/Property[Type="MSNL!Microsoft.SystemCenter.NTService"]/DisplayName$</AlertParameter1>
                <AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
              </AlertParameters>
            </AlertSettings>
            <OperationalStates>
              <OperationalState ID="Success" MonitorTypeStateID="Running" HealthState="Success" />
              <OperationalState ID="Error" MonitorTypeStateID="NotRunning" HealthState="Error" />
            </OperationalStates>
            <Configuration>
              <ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
              <ServiceName>$Target/Property[Type="MSNL!Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
              <CheckStartupType>false</CheckStartupType>
            </Configuration>
          </UnitMonitor>

    how to force it to work only in specific hours? i cant understand how to use System.SchedulerFilter on it :(

    Sunday, December 08, 2013 12:45 PM

Answers