Hello! I'm struggling to derive meaningful metric names out of my collectd configuration for grabbing CoS statistics from some Juniper switches.
The <Data> definition looks like this: <Data "jnxCosQstatTailDropPkts"> Type "cos_dropped" Table true Values "1.3.6.1.4.1.2636.3.15.4.1.11" </Data> The OID is structured like this: 1.3.6.1.4.1.2636.3.15.4.1.11.<snmp_interface_index>.<output-queue-number> Using the aforementioned Data definition, the metric names end up looking like this: cos_dropped-503_0 cos_dropped-503_1 cos_dropped-503_2 cos_dropped-503_3 cos_dropped-503_4 cos_dropped-503_5 cos_dropped-503_6 cos_dropped-503_7 cos_dropped-505_0 cos_dropped-505_1 cos_dropped-505_2 cos_dropped-505_3 cos_dropped-505_4 cos_dropped-505_5 cos_dropped-505_6 cos_dropped-505_7 ... etc. I tried to insert 'Instance "IF-MIB::ifName"' into the <Data> definition but that didn't do anything except cause metrics to stop logging. ;) ifName looks something like this: ifName.6 = lo0 ifName.35 = vme ifName.49 = vcp-0 ifName.51 = vcp-1 ifName.503 = ge-0/0/1 ifName.505 = ge-0/0/10 ifName.507 = ge-0/0/11 ifName.509 = ge-0/0/12 ifName.511 = ge-0/0/13 ifName.513 = ge-0/0/14 ifName.515 = ge-0/0/15 ifName.517 = ge-0/0/16 ifName.519 = ge-0/0/17 ifName.521 = ge-0/0/18 ifName.523 = ge-0/0/19 ifName.525 = ge-0/0/2 ifName.527 = ge-0/0/20 ifName.529 = ge-0/0/21 ifName.531 = ge-0/0/22 ifName.533 = ge-0/0/23 ifName.535 = ge-0/0/3 ifName.537 = ge-0/0/4 ifName.539 = ge-0/0/5 ifName.541 = ge-0/0/6 ifName.543 = ge-0/0/7 ifName.545 = ge-0/0/8 ifName.547 = ge-0/0/9 ifName.549 = ge-0/0/0 ifName.551 = vlan ... You can see the mapping would work quite well if it weren't for the trailing queue number in the jnxCosQstatTailDropPkts OID. BTW, the SNMP index number mapping to interfaces can vary across devices and also between reboots. (This is pretty standard AFAIK.) Is there any way I could potentially get my metrics logged with names like... cos_dropped-ge_0_0_1-0 cos_dropped-ge_0_0_1-1 cos_dropped-ge_0_0_1-2 cos_dropped-ge_0_0_1-3 cos_dropped-ge_0_0_1-4 cos_dropped-ge_0_0_1-5 cos_dropped-ge_0_0_1-6 cos_dropped-ge_0_0_1-7 cos_dropped-ge_0_0_10-0 cos_dropped-ge_0_0_10-1 cos_dropped-ge_0_0_10-2 cos_dropped-ge_0_0_10-3 cos_dropped-ge_0_0_10-4 cos_dropped-ge_0_0_10-5 cos_dropped-ge_0_0_10-6 cos_dropped-ge_0_0_10-7 Specifically, 'cos_dropped' + interface name + output queue number. Thanks for your help, -M
_______________________________________________ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd