<!-- http://lighttpd.net/ -->
<plugin>
  <!-- for ApacheStatusCollector, lighthttpd uses same format, less metrics -->
  <classpath>
    <include name="pdk/plugins/netservices-plugin.jar"/>
    <include name="pdk/plugins/apache-plugin.jar"/>
  </classpath>

  <server name="lighttpd">
    <property name="PROC_QUERY"
              value="State.Name.eq=lighttpd"/>

    <property name="port" value="80"/>

    <!-- override default url.path -->
    <property name="path" value="/server-status"/>

    <config include="url"/>

    <plugin type="measurement"
            class="org.hyperic.hq.product.MeasurementPlugin"/>

    <plugin type="collector"
            class="org.hyperic.hq.plugin.apache.ApacheStatusCollector"/>

    <plugin type="autoinventory"
            class="org.hyperic.hq.product.DaemonDetector"/>

    <metric name="Availability"
            indicator="true"/>

    <metric name="Uptime"
            category="AVAILABILITY"
            defaultOn="true"
            units="sec"/>

    <metric name="Busy Servers"
            indicator="true"/>

    <metric name="Requests Served"
            alias="TotalAccesses"
            indicator="true"
            collectionType="trendsup"
            category="THROUGHPUT"/>

    <metric name="Bytes Served"
            alias="TotalkBytes"
            units="KB"
            indicator="true"
            collectionType="trendsup"
            category="THROUGHPUT"/>

  </server>
</plugin>
