Configuration Sample

Below is an example from real life, one configuration file, handles 3 different ClearCase sites ( it is  a multisite shop) with some generic as well as individual counters:

<?xml version="1.0"?>
<config>
    <hosts>
        <host name="USACLEAR01">USACLEAR01.EMEA.DOMAIN.COM</host>
        <host name="USACLEAR02">USACLEAR02.EMEA.DOMAIN.COM</host>
        <host name="USACLEAR04">USACLEAR04.EMEA.DOMAIN.COM</host>
        <host name="INDIACLEAR01">INDIACLEAR01.ASIA.DOMAIN.COM</host>
        <host name="CHINACLEAR02">CHINACLEAR02.ASIA.DOMAIN.COM</host>
    </hosts>
   
    <sites>
        <site name="Monkit.Bjerringbro" clearcase="USACLEAR04" regions="ADMIN,DATACOM,SANDBOX,RTSOFTWARE,BUILDINGSERVICES,WASTEWATER,CONTROLS,SENSOR,ECC,XPI,INDUSTRYWATER">
            <host>USACLEAR01</host>
            <host>USACLEAR02</host>
            <host>USACLEAR04</host>
        </site>
        <site name="Monkit.Chennai" clearcase="INDIACLEAR01" regions="ADMIN,SANDBOX,RTSOFTWARE,DATACOM">
            <host>INDIACLEAR01</host>
        </site>
        <site name="Monkit.Shozou" clearcase="CHINACLEAR02" regions="SANDBOX,CONTROLS,BUILDINGSERVICES">
            <host>CHINACLEAR02</host>
        </site>
    </sites>
   
    <clearcase>

        <counter name="Number of vobs" scale="number">\clearcase(*)\NumberOfVobs</counter>
        <counter name="Number of views" scale="number">\clearcase(*)\NumberOfViews</counter>
        <!-- No region required -->       
        <counter name="Number of stranded vobs" scale="number">\clearcase()\NumberOfStrandedVobs</counter>
        <!-- 
            We are using View_Q so we know that there a several strand vobs
            <counter name="Number of stranded views" scale="number">\clearcase()\NumberOfStrandedViews</counter>
        -->
    </clearcase>
    <performance>
      <!-- 
              For inpiration could check out:
                http://www.windowsnetworking.com/articles_tutorials/key-performance-monitor-counters.html
      -->
        <general>
            <counter samples="1" interval="1" name="Memory Available" scale="Mega bytes">\Memory\Available MBytes</counter>
            <counter samples="10" interval="3" name="Processor time % Privileged Time" scale="Percentage">\Processor(_Total)\% Privileged Time</counter>
            <counter samples="10" interval="3" name="Processor time % User Time" scale="Percentage">\Processor(_Total)\% User Time</counter>           
        </general>
        <specific>
            <host name="USACLEAR01">
              <counter samples="1" interval="1" name="LogicalDisk(C:) % Free Space" scale="Percentage">\LogicalDisk(C:)\% Free Space</counter>
              <counter samples="1" interval="1" name="LogicalDisk(D:) % Free Space" scale="Percentage">\LogicalDisk(D:)\% Free Space</counter>

              <counter samples="3" interval="1" name="PhysicalDisk(0 C:) Disk Transfers/sec" scale="IO/sec">\PhysicalDisk(0 C:)\Disk Transfers/sec</counter>
              <counter samples="3" interval="1" name="PhysicalDisk(1 D:) Disk Transfers/sec" scale="IO/sec">\PhysicalDisk(1 D:)\Disk Transfers/sec</counter>
              <counter samples="3" interval="1" name="PhysicalDisk(0 C:) % Idle Time" scale="Percentage">\PhysicalDisk(0 C:)\% Idle Time</counter>
                          <counter samples="3" interval="1" name="PhysicalDisk(1 D:) % Idle Time" scale="Percentage">\PhysicalDisk(1 D:)\% Idle Time</counter>
                           
              <counter samples="10" interval="1" name="Network traffic" scale="Bytes per sec">\\USACLEAR01\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _2)\Bytes Total/sec</counter>
            </host>
            <host name="USACLEAR02">
                  <counter samples="1" interval="1" name="LogicalDisk(C:) % Free Space" scale="Percentage">\LogicalDisk(C:)\% Free Space</counter>
              <counter samples="1" interval="1" name="LogicalDisk(D:) % Free Space" scale="Percentage">\LogicalDisk(D:)\% Free Space</counter>             

              <counter samples="3" interval="1" name="PhysicalDisk(0 C:) Disk Transfers/sec" scale="IO/sec">\PhysicalDisk(0 C:)\Disk Transfers/sec</counter>
              <counter samples="3" interval="1" name="PhysicalDisk(1 D:) Disk Transfers/sec" scale="IO/sec">\PhysicalDisk(1 D:)\Disk Transfers/sec</counter>
              <counter samples="3" interval="1" name="PhysicalDisk(0 C:) % Idle Time" scale="Percentage">\PhysicalDisk(0 C:)\% Idle Time</counter>
                          <counter samples="3" interval="1" name="PhysicalDisk(1 D:) % Idle Time" scale="Percentage">\PhysicalDisk(1 D:)\% Idle Time</counter>
               <counter samples="10" interval="1" name="Network traffic" scale="Bytes/sec">\\USACLEAR02\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _2)Bytes Total/sec</counter>
            </host>
            <host name="USACLEAR04">
                <counter samples="10" interval="1" name="Network traffic" scale="Bytes/sec">\\USACLEAR04\Network Interface(VMware Accelerated AMD PCNet Adapter)\Bytes Total/sec</counter>
            </host>
            <host name="INDIACLEAR01">
              <counter samples="1" interval="1" name="LogicalDisk(C:) % Free Space" scale="Percentage">\\INDIACLEAR01\LogicalDisk(C:)\% Free Space</counter>
              <counter samples="1" interval="1" name="LogicalDisk(D:) % Free Space" scale="Percentage">\\INDIACLEAR01\LogicalDisk(D:)\% Free Space</counter>             
              <counter samples="5" interval="1" name="PhysicalDisk(0 C: D:) % Idle Time" scale="Percentage">\\INDIACLEAR01\PhysicalDisk(0 C: D:)\% Idle Time</counter>
              <counter samples="5" interval="1" name="PhysicalDisk(0 C: D:) Disk Transfers/sec" scale="IO/sec">\\INDIACLEAR01\PhysicalDisk(0 C: D:)\Disk Transfers/sec</counter>
                    <counter samples="10" interval="1" name="Network traffic" scale="Bytes/sec">\\INDIACLEAR01\Network Interface(Broadcom NetXtreme Gigabit Ethernet)\Bytes Total/sec</counter>
            </host>
            <host name="CHINACLEAR02">
              <counter samples="1" interval="1" name="LogicalDisk(C:) % Free Space" scale="Percentage">\LogicalDisk(C:)\% Free Space</counter>
              <counter samples="1" interval="1" name="LogicalDisk(E:) % Free Space" scale="Percentage">\LogicalDisk(E:)\% Free Space</counter>
              <counter samples="5" interval="1" name="PhysicalDisk(0 C: E:) % Idle Time" scale="Percentage">\\CHINACLEAR02\PhysicalDisk(0 C: E:)\% Idle Time</counter>
              <counter samples="5" interval="1" name="PhysicalDisk(0 C: E:) Disk Transfers/sec" scale="IO/sec">\\CHINACLEAR02\PhysicalDisk(0 C: E:)\Disk Transfers/sec</counter>
                     <counter samples="10" interval="1" name="Network traffic" scale="Bytes/sec">\\CHINACLEAR02\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Total/sec</counter>
            </host>
        </specific>
    </performance>
</config>