I have two SNMP-LLD issues.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The first is about LLD-filter,
snmpwalk-oid-structure is as follows: IF-MIB::ifName.snmpidex=snmpvalue,
I want to filter the ifName.67108.* field in snmpidex, the purpose is ifName.67108.* item is not be created, trying to filter it did't succeed, I guess filter can only filter snmpivlaue? Any one knows how I should filter snmpidex?
Regx:^IF-MIB::if.*.67108.{1,3}
snmpwalk -v 2c -c xxxx 203.x.x.x ifname
-------snmpidex----- -----=snmpvalue------
IF-MIB::ifName.74 = STRING: port ethernet 10/9
IF-MIB::ifName.75 = STRING: port ethernet 10/10
IF-MIB::ifName.81 = STRING: port ethernet 11/1
IF-MIB::ifName.67108864 = STRING: 10/4-link-switch-manage_ip
IF-MIB::ifName.67108865 = STRING: 800c-natlinux-in
IF-MIB::ifName.67108866 = STRING: 800c-natlinux-out
IF-MIB::ifName.67108896 = STRING: se800c-se800b-ge-1
Discovery rule:
Key:net.if.discovery
SNMP OID:discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATU S},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1 .1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR },1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1. 3]
Item prototype:
Interface {#IFNAME}({#IFALIAS}): Bits received
key:net.if.in[ifHCInOctets.{#SNMPINDEX}]
oid:1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The second LLD is for monitor optical-interfaces LaserPower on juniper network devices. I need to create an Item prototypoid under the LLD, but I don't know how to deal with subsnmpidex in Item prototype.
Oid-structure is as follows:JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.snmpidex.subsnm pidex=snmpvalue
#snmpwalk -v 2c -c xxxxxxxx 119.x.x.x jnxDomCurrentLaneEntry | grep LaneRxLaserPower
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.515.0 = INTEGER: -4000 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.0 = INTEGER: -963 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.1 = INTEGER: -1145 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.2 = INTEGER: -1113 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.3 = INTEGER: -1014 0.01 dbm
Discovery rule:
discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATU S},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1 .1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR },1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1. 3,{#JNXDOMCURRENTTABLE},1.3.6.1.4.1.2636.3.60.1.1. 1,{#JNXDOMCURRENTLANEENTRY},1.3.6.1.4.1.2636.3.60. 1.2.1.1]
Item prototyps:
name:{#IFNAME}({#IFALIAS}): RxLaserPower-for-40G
key:jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.*]
oid:1.3.6.1.4.1.2636.3.60.1.2.1.1.6.{#SNMPINDEX}.*
I tried to modify the key of the Item prototyp to:
key:jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.$] or jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.{#SNMPINDEX}] both does't work.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Any advice or suggestions will be greatly appreciated.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The first is about LLD-filter,
snmpwalk-oid-structure is as follows: IF-MIB::ifName.snmpidex=snmpvalue,
I want to filter the ifName.67108.* field in snmpidex, the purpose is ifName.67108.* item is not be created, trying to filter it did't succeed, I guess filter can only filter snmpivlaue? Any one knows how I should filter snmpidex?
Regx:^IF-MIB::if.*.67108.{1,3}
snmpwalk -v 2c -c xxxx 203.x.x.x ifname
-------snmpidex----- -----=snmpvalue------
IF-MIB::ifName.74 = STRING: port ethernet 10/9
IF-MIB::ifName.75 = STRING: port ethernet 10/10
IF-MIB::ifName.81 = STRING: port ethernet 11/1
IF-MIB::ifName.67108864 = STRING: 10/4-link-switch-manage_ip
IF-MIB::ifName.67108865 = STRING: 800c-natlinux-in
IF-MIB::ifName.67108866 = STRING: 800c-natlinux-out
IF-MIB::ifName.67108896 = STRING: se800c-se800b-ge-1
Discovery rule:
Key:net.if.discovery
SNMP OID:discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATU S},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1 .1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR },1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1. 3]
Item prototype:
Interface {#IFNAME}({#IFALIAS}): Bits received
key:net.if.in[ifHCInOctets.{#SNMPINDEX}]
oid:1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The second LLD is for monitor optical-interfaces LaserPower on juniper network devices. I need to create an Item prototypoid under the LLD, but I don't know how to deal with subsnmpidex in Item prototype.
Oid-structure is as follows:JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.snmpidex.subsnm pidex=snmpvalue
#snmpwalk -v 2c -c xxxxxxxx 119.x.x.x jnxDomCurrentLaneEntry | grep LaneRxLaserPower
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.515.0 = INTEGER: -4000 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.0 = INTEGER: -963 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.1 = INTEGER: -1145 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.2 = INTEGER: -1113 0.01 dbm
JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.3 = INTEGER: -1014 0.01 dbm
Discovery rule:
discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATU S},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1 .1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR },1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1. 3,{#JNXDOMCURRENTTABLE},1.3.6.1.4.1.2636.3.60.1.1. 1,{#JNXDOMCURRENTLANEENTRY},1.3.6.1.4.1.2636.3.60. 1.2.1.1]
Item prototyps:
name:{#IFNAME}({#IFALIAS}): RxLaserPower-for-40G
key:jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.*]
oid:1.3.6.1.4.1.2636.3.60.1.2.1.1.6.{#SNMPINDEX}.*
I tried to modify the key of the Item prototyp to:
key:jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.$] or jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.{#SNMPINDEX}] both does't work.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Any advice or suggestions will be greatly appreciated.
Comment