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

<!--

  $Header$
  
  NOTICE:
    Copyright 2017 Kaseya. All Rights Reserved. 
    This software is the proprietary information
    of Kaseya. Use is subject to license terms.

  DESCRIPTION:
    Configuration file for automatically discovering and monitoring 
    voice interface status
  
-->
        
    
<NetVigil>
  <monitor type="snmp">

    <onLoad>
      <verify type="oid" 
        object=".1.3.6.1.2.1.2.1.0"
        pattern="\d+" 
        action="accept"/>
    </onLoad>
                                      
    <probeConfig>
      <subType name="interface_status" enabled="true">
        <snmpOid>
          <prefix>.1.3.6.1.2.1</prefix>
          <poll name="objectIndex" index="2.2.1.1"/>
          <poll name="objectName" index="2.2.1.2"/>
          <poll name="ifDescr" index="31.1.1.1.18"/>
          <poll name="portType" index="2.2.1.3"/>
          <poll name="portStatus" index="2.2.1.7"/>
          <poll name="input" index="2.2.1.8"/>
        </snmpOid>
        <filter name="input"
          pattern="^(1|5)$"
          action="accept"/>
        <filter name="portStatus"
          pattern="^2$"
          action="reject"/>
        <filter name="portType"
          pattern="^(100|101|102|103|104)$"
          action="accept"/>
        <postProcess
          parser="interface"
          element="netif_desc"
          testName="[[$objectName]][[$ifDescr =~ /\S+/ ? ' ('. $ifDescr .')' : '';]] Status"
          directive="none"/>
      </subType>
    </probeConfig>

  </monitor>
</NetVigil>

