I don't have much right now as I used the SNMP plugin tutorial which doesn't really helped me that much...
(http://support.hyperic.com/confluence/display/DOCSHQ30/SNMP+Plugin)
my current prototype uses hard-coded metrics which is not very flexible but a start...
<plugin name="netapp">
<property name="MIBDIR" value="/usr/share/snmp/mibs"/>
<property name="MIBS"
value="${MIBDIR}/netapp.mib"/>
<platform name="NetAppFiler">
<config include="snmp"/>
<plugin type="measurement"
class="net.hyperic.hq.product.SNMPMeasurementPlugin"/>
<property name="template" value="${snmp.template}:${alias}"/>
<metric name="Availability"
template="${snmp.template},Avail=true:.1.3.6.1.4.1.789.1.2.2.25.0"
indicator="true"/>
<metric name="Uptime"
alias=".1.3.6.1.4.1.789.1.2.1.1.0"
category="AVAILABILITY"
units="jiffys"
collectionType="trendsup"
defaultOn="true"
/>
<metric name="vol1_used"
alias=".1.3.6.1.4.1.789.1.4.5.1.4.1.1.0"
category="UTILIZATION"
units="KB"
collectionType="dynamic"
defaultOn="true"
/>
<metric name="vol2_used"
alias=".1.3.6.1.4.1.789.1.4.5.1.4.1.2.0"
category="UTILIZATION"
units="KB"
collectionType="dynamic"
defaultOn="true"
/>
<metric name="vol3_used"
alias=".1.3.6.1.4.1.789.1.4.5.1.4.1.3.0"
category="UTILIZATION"
units="KB"
collectionType="dynamic"
defaultOn="true"
/>
<metric name="vol4_used"
alias=".1.3.6.1.4.1.789.1.4.5.1.4.1.4.0"
category="UTILIZATION"
units="KB"
collectionType="dynamic"
defaultOn="true"
/>
</platform>
</plugin>
My biggest hurdle right now though is that I've somehow managed to mess up my Db...
I wasn't certain if my file changes were taking effect anymore so I removed the plugin from the hq-plugins folder and after restarting both agent and server, I noticed the platform type i created was still showing up in HQ's pulldowns when creating platforms. I read of a bug in HQ that caused service types to remain in DB backend and clean it up but couldn't remove the platform types... I'd like to figure out how to clean this up before starting again so I know the system is sane (and me too! 🙂 )
After that I want to do like the SNMP page examples and have the different volumes on a netapp filer be automatically discovered and enumerated as platform serviices (or server's services... not sure which yet as a netapp can have cifs, nfs, etc... but that's not a big issue )
do you have access to a netapp filer? If not I can test stuff for you...
Thanks,