<?xml version="1.0" standalone="yes"?>

<!--

  $Header: //depot/RELEASE/Traverse_5.6/etc/typedef/99_wmi_service.xml#1 $
  
  NOTICE:
    Copyright 2012 Zyrion, Inc. All Rights Reserved. 
    This software is the proprietary information of 
    Zyrion, Inc. Use is subject to license terms.

  DESCRIPTION:
    Configuration file for automatically discovering and monitoring 
    status of services on Windows hosts that are not "disabled"
  
-->
        
<NetVigil>
  <monitor type="wmi">

    <probeConfig>
      <subType name="host_svc_status" enabled="true">
        <appliesTo
          deviceType="nt,proxy"/>
        <wmiObject>
          <prefix>Win32_Service</prefix>
          <poll name="keyField" property="Name"/>
          <poll name="objectName" property="DisplayName"/>
          <poll name="isEnabled" property="StartMode"/>
          <poll name="input" property="Started"/>
        </wmiObject>
        <filter name="isEnabled"
          pattern="^manual$"
          action="accept"/>
        <filter name="input"
          pattern="^(0|)$"
          action="reject"/>
        <postProcess
          parser="service"
          testName="Service: [[$objectName]]"
          resultMultiplier="1"
          directive="none"/>
      </subType>
    </probeConfig>

    <testtype>
      <displayName>Windows Service Status (WMI)</displayName>
      <subType>host_svc_status</subType>
      <displayCategory>system</displayCategory>
      <units> </units>
      <showAsGroup>true</showAsGroup>
      <severity_ascends_with_value>false</severity_ascends_with_value>
      <defaultWarningThreshold>0</defaultWarningThreshold>
      <defaultCriticalThreshold>0</defaultCriticalThreshold>
      <shadowWarningThreshold>0</shadowWarningThreshold>
      <shadowCriticalThreshold>0</shadowCriticalThreshold>
      <slaThreshold>0</slaThreshold>
      <testInterval>600</testInterval>
      <valueMapping>
        <polledValue>0</polledValue>
        <displayString>notRunning</displayString>
      </valueMapping>
      <valueMapping>
        <polledValue>1</polledValue>
        <displayString>Running</displayString>
      </valueMapping>
      <testField>
        <fieldName>wmiProperty</fieldName>
        <fieldDisplayName>WMI Object ID</fieldDisplayName>
        <isRequired>true</isRequired>
        <isPassword>false</isPassword>
        <defaultValue></defaultValue>
      </testField>
      <testField>
        <fieldName>resultMultiplier</fieldName>
        <fieldDisplayName>Result Multiplier</fieldDisplayName>
        <isRequired>false</isRequired>
        <isPassword>false</isPassword>
        <defaultValue>1</defaultValue>
      </testField>
      <testField>
        <fieldName>maxValue</fieldName>
        <fieldDisplayName>Maximum Value</fieldDisplayName>
        <isRequired>false</isRequired>
        <isPassword>false</isPassword>
        <defaultValue></defaultValue>
      </testField>
      <testField>
        <fieldName>resultProcessDirective</fieldName>
        <fieldDisplayName>Post Processing Directive</fieldDisplayName>
        <isRequired>false</isRequired>
        <isPassword>false</isPassword>
        <defaultValue>0</defaultValue>
      </testField>
    </testtype>

  </monitor>
</NetVigil>

