|
From: <joh...@on...> - 2006-03-09 14:18:37
|
This is the content of the transforms file:
# Create a human-readable ifc speed
ifSpeed : SPEED : {ifBps}
# Get bit speed delta (so we dont have to provide custom delta limit)
ifInOps : DELTA : {ifInOctets}
ifOutOps : DELTA : {ifOutOctets}
# Convert our octets delta into bits per second
ifInBps : MATH : {ifInOps} x 8
ifOutBps : MATH : {ifOutOps} x 8
# Make some easily readable speed variables
ifInSpeed : SPEED : {ifInBps}
ifOutSpeed : SPEED : {ifOutBps}
# Now determine our percentage load, based on traffic and ifc speed
ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100
ifOutLoad : MATH : ({ifOutBps} / {ifBps}) x 100
# Create an alias in a bracketed box, or nothing if alias is blank
ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/
>>It looks like Devmon still isnt able to query the ifAlias field.
>>As to the ifAliasBox errors, is there still an REGSUB transform
>>for ifAliasBox in your transforms file?
>>
>>-Eric
>> -----Original Message-----
>> From: dev...@li...
>> [mailto:dev...@li...] On Behalf
>> Of joh...@on...
>> Sent: Wednesday, March 08, 2006 4:51 AM
>> To: dev...@li...
>> Subject: [Devmon] Undefined in the ifAliasbox field
>>
>> Hi,
>>
>> on a cisco 6506 and 4003 running CatOS I have problems to get
>> the ifAlias filled.
>> The OID for this is ifAlias: .1.3.6.1.4.1.9.5.1.4.1.1.4
>>
>> This is in my oids-file:
>>
>> ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch
>> #ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch
>> ifAlias : .1.3.6.1.4.1.9.5.1.4.1.1.4 : branch
>> ifBps : .1.3.6.1.2.1.2.2.1.5 : branch
>> ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch
>> ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch
>>
>> Running a snmpwalk manually returns the correct values.
>> Putting this OID in the oids-template I got this in the devmon.log:
>>
>> [06-02-27@16:58:25] No SNMP data found for ifAlias on CBS002
>> [06-02-27@16:58:25] Missing primary oid data for trans_regsub
>> on ifAliasBox
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_err/thresholds at line 7
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_err/thresholds at line 7
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_err/thresholds at line 7
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_err/thresholds at line 7
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' at line 8 of
>> /bbserv/devmon//templates/cisco-4003/if_err/message, skipping
>> this test.
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' at line 5 of
>> /bbserv/devmon//templates/cisco-4003/if_load/message,
>> skipping this test.
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' at line 3 of
>> /bbserv/devmon//templates/cisco-4003/if_stat/message,
>> skipping this test.
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_dsc/thresholds at line 6
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_dsc/thresholds at line 6
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_dsc/thresholds at line 6
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' referenced in
>> /bbserv/devmon//templates/cisco-4003/if_dsc/thresholds at line 6
>> [06-02-27@17:03:12] Undefined oid 'ifAliasBox' at line 8 of
>> /bbserv/devmon//templates/cisco-4003/if_dsc/message, skipping
>> this test.
>> [06-02-27@17:08:25] No SNMP data found for ifAlias on CBS002
>> [06-02-27@17:08:25] No SNMP data found for ifAlias on CBS002
>> [06-02-27@17:08:25] No SNMP data found for ifAlias on CBS002
>>
>> On the web-page I have this result (the ifAliasBox is not defined):
>>
>> 3/1Undefined 1.00 Gbps green 1.15 Mbps (0.12%) green
>> 4.08 Mbps (0.41%)
>>
>> How can I make this work?
>>
>> Regards
>> Johann
|