<?xml version="1.0" standalone="yes"?>

<!--

  $Header$
  
  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 battery on Windows laptop"
  
-->
        
<NetVigil>
  <monitor type="wmi">

	<probeConfig>
      <subType name="wmi_battery_status" enabled="true">
        <wmiObject>
          <prefix>Win32_Battery</prefix>
          <poll name="keyField" property="DeviceID"/>
          <poll name="objectName" property="DeviceID"/>
          <poll name="input" property="BatteryStatus"/>
        </wmiObject>
        <postProcess
          testName="Battery [[$objectName]] Status"
          directive="none"/>
      </subType>
    </probeConfig>

    <testtype>
      <displayName>Windows Battery Status (WMI)</displayName>
      <subType>wmi_battery_status</subType>
      <displayCategory>battery</displayCategory>
      <units> </units>
      <showAsGroup>true</showAsGroup>
      <severity_ascends_with_value>discrete</severity_ascends_with_value>
      <defaultWarningThreshold>0</defaultWarningThreshold>
      <defaultCriticalThreshold>2</defaultCriticalThreshold>
      <shadowWarningThreshold>0</shadowWarningThreshold>
      <shadowCriticalThreshold>0</shadowCriticalThreshold>
      <slaThreshold>0</slaThreshold>
      <testInterval>600</testInterval>
      <valueMapping>
        <polledValue>1</polledValue>
        <displayString>OnBattery</displayString>
      </valueMapping>
      <valueMapping>
        <polledValue>2</polledValue>
        <displayString>OnPower</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>

