Hello,
How can we adopt the prirozation of predefined metric definitions to our needs?
Does reload or deactivate/activate reinitialize the metric system from the xml-files at all?
Or is it necessary to recompile the metric system with a different command?
Problem explained In detaill on the example metric family HTTPPROXYINFO:
- Destination Certification: NormalizedHTTPProxyInfo
- Name in device profiles: "HttpConnandRequest " + Index
- Source metric families
- snmp-bluecoat-http-proxy-conn.xml
- snmp-cisco-content-engine-http-proxy.xml
- snmp-cisco-content-engine-wmt-proxy-hc.xml
- snmp-f5-bigip-http-proxy.xml
- snmp-f5-bigip-ssl-proxy.xml
- snmp-fortinet-fortigate-http-proxy-stats.xml
- snmp-fortinet-fortigate-http-proxy.xml
- snmp-http-proxy-conn.xml
- snmp-ironport-proxy-rh-cpu.xml
- snmp-mcafee-http-proxy.xml
- snmp-netapp-http-proxy.xml
- snmp-netscaler-http-proxy-data.xml
- snmp-sip-server-proxy-statistics.xml
Default: winner=snmp-http-proxy-conn.xml for this metric family with just 3 metrics to can be monitored
Aim: need snmp-bluecoat-http-proxy-conn.xml as the winner for this metric family in our environment with 17 metrics especially most meaningful metrics to can be monitored
Question: How can we achive this?
Despite most of possible source metrics are defined in MetricFamily\normalized-http-proxy-info.xml, only the very few metrics defined in snmp-http-proxy-conn.xml are used in real and will make all other defined metrics unusable. As long snmp-http-proxy-conn.xml is defined as the winner of this metric family system, no other metric of this family could be ever activated for real monitoring, but will be offered in the template editor to generate confusion to the admins of the product for none working opportunities.
Difficult to imagine that this behaviour is intended in snmpcollector containing a lot of work in predefinitions to benefit of just a very little amount of this predefinitions and dropping extensibility of the product. In the end is this no improvement compared to the older snmp probes.
The only real working opportunity to can influence the metric system is the SelfCert portlet. But it can't handle device families. The generated metric definition will be valid to the exact probing device's SysObjID only. In case of bluecoat devices we've got 6 different device models inside the bluecoat proxy device family all supporting BluecoatSgHttpProxyMib but need to be defined 6 times in this product. This multiplied with further 8 device families need to extend will make this opportunity very unhandy.
TryOuts - but didnt improve metric family normalization to can work with.:
Touched following files in Subfolder DeviceSupport
Changing priority from 502 to 499 to be better then 501 in HttpProxyMib definition in alldevices.xml
<VendorCert>
<name>BluecoatSgHttpProxyMib</name>
<priority>499</priority>
<fileName>snmp-bluecoat-http-proxy-conn.xml</fileName>
<MetricFamily>NormalizedHTTPProxyInfo</MetricFamily>
<EnterpriseIDList>
<Id>1.3.6.1.4.1.3417</Id>
</EnterpriseIDList>
</VendorCert>
Changing order and removing HttpProxyMib entries in vendorCertSupport.xml
<setup>
systemObjectId = 1.3.6.1.4.1.3417.1.1.34
</setup>
<MetricFamilies>
<NormalizedAvailabilityInfo>
<VendorCertifications>
<systemMib>
</systemMib>
</VendorCertifications>
</NormalizedAvailabilityInfo>
<NormalizedIpRouterIpv6StatsInfo>
<VendorCertifications>
<Rfc4293IpRouterIpv6StatsV1Mib>
</Rfc4293IpRouterIpv6StatsV1Mib>
</VendorCertifications>
</NormalizedIpRouterIpv6StatsInfo>
<NormalizedHTTPProxyInfo>
<VendorCertifications>
<HttpProxyMib>
</HttpProxyMib>
<BluecoatSgHttpProxyMib>
</BluecoatSgHttpProxyMib>
</VendorCertifications>
</NormalizedHTTPProxyInfo>
We performed all tryouts with same steps:
- Deactivate snmpcollector
- Action
- Activate snmpcollector
- Rediscover device profile
- Check device profile = >proxy
What method will work?
regards, Steffen