Several mapping in one target
Pavel A Crasotin <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Organization | OJSC SeverTransCom |
| Message-ID | <[email protected]> |
Hello,
I would like to use 2 maps in one target but dont know how to do it.
I have:
# Defaults
OID cbQosCMName 1.3.6.1.4.1.9.9.166.1.7.1.1.1
Target --default--
inst = map(interface-name)
cninst = map(class-name)
map class-name
base-oid = cbQosCMName
match = %class-name%
datasource PolicyBytes
rrd-ds-type = COUNTER
ds-source = 'exec:0:/cricket/get_counter.pl %inst% %cninst%'
datasource PolicyDropBytes
rrd-ds-type = COUNTER
ds-source = 'exec:1:/cricket/get_counter.pl %inst% %cninst%'
#Targets
target default-traffic
target-type = DefaultTraffic
snmp-host = router
snmp-version = 2
interface-name = Multilink1
class-name = class-default
but in log file I see:
[01-Dec-2006 11:50:36 ] Retrieving data for target default-traffic (9) (defaulttraffic)
[01-Dec-2006 11:50:36 ] ds0 is: 0:/cricket/get_counter.pl 9 map(class-name)
[01-Dec-2006 11:50:36 ] ds1 is: 1:/cricket/get_counter.pl 9 map(class-name)
[01-Dec-2006 11:50:36 ] ds2 is: //public@router:161:2.0:5:1.0:2/1.3.6.1.2.1.2.2.1.2.9
[01-Dec-2006 11:50:36 ] Getting from public@router:161:2.0:5:1.0:2 1.3.6.1.2.1.2.2.1.2.9
[01-Dec-2006 11:50:39 ] Got: Multilink1
Argument "Multilink1" isn't numeric in numeric eq (==) at /usr/local/cricket/cricket/lib/snmp.pm line 98.
[01-Dec-2006 11:50:39 ] Retrieving data (EXEC: /usr/home/lisov/policy-map/15/msk.pl 9 map(class-name)) for default-traffic
Syntax error: "(" unexpected
[01-Dec-2006 11:50:39 ] EXEC: /usr/home/lisov/policy-map/15/msk.pl 9 map(class-name) results =
[01-Dec-2006 11:50:39 ] Retrieved data for /voice-test/default-traffic (9): U,U
What I do wrong?
Why map(class-name) is not resolved?
Thanks in advance.
--
With respect,
Pavel A Crasotin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV