jjmartres / Zabbix

A great collection of Zabbix scripts and templates
GNU General Public License v2.0
878 stars 583 forks source link

error import failed zbx-cisco-xdsl.xml in zabbix 2.2.1 #36

Open asst93i opened 10 years ago

asst93i commented 10 years ago

detail:
Created: Application "ADSL Line(s)" on "ZBX-CISCO-xDSL". Created: Application "SDSL Line(s)" on "ZBX-CISCO-xDSL". Created: Discovery rule "ADSL Controller(s)" on "ZBX-CISCO-xDSL". Created: Discovery rule "SDSL Controller(s)" on "ZBX-CISCO-xDSL". Cannot find value map "ciscoAdslLineCoding" used for item prototype "ADSL line (ID$1) coding type" of discovery rule "ADSL Controller(s)" on "ZBX-CISCO-xDSL". what is the problem -?

TrueBrujah commented 10 years ago

First of all great job and keep going.

I have the Same Problem with this template.

The Value Map "ciscoAdslLineCoding" Doesnt exist and we dont have infomation in the README.MD

thx for all.

kobbie commented 10 years ago

Hi,

A similar issue also occurs with zbx-cisco-mpls.xml on my zabbix 2.2.2.

Created: Application "MPLS LDP Neighbor" on "ZBX-CISCO-MPLS". Created: Discovery rule "LDP Neighbor" on "ZBX-CISCO-MPLS". Cannot find value map "ciscoMplsLdpPeerLabelDistributionMethod" used for item prototype "MPLS LDP neighbor {#ADVSNMPINDEX5} distribution method" of discovery rule "LDP Neighbor" on "ZBX-CISCO-MPLS".

I think it needs to create value mapping, but there is no information in README.md about values to be mapped.

Regards,

DurvalMenezes commented 9 years ago

Hello,

Got the same error here, but fortunately I was able to gleam the values from the Cisco MIB available definition: http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=MPLS-LDP-MIB

In brief, the value map that must be added is of course ciscoMplsLdpPeerLabelDistributionMethod, and it should define the following mappings:

1 => downstreamOnDemand 2 => downstreamUnsolicited

With the above map created, the template imports without further errors.

Cheers, Durval.

TrueBrujah commented 9 years ago

To Fix the Problem With zbx-cisco-xdsl.xml

Use this VALUE MAP

Add a value mapping named ciscoAdslLineType with the following values: 1 => noChannel 2 => fastOnly 3 => interleavedOnly 4 => fastOrInterleaved 5 => fastAndInterleaved Add a value mapping named ciscoAdslLineCoding with the following values: 1 => other 2 => dmt 3 => cap 4 => qam

DurvalMenezes commented 9 years ago

@TrueBrujah: what's your source for the information?

TrueBrujah commented 9 years ago

For fix the Problem with the zbx-cisco-mpls.xml

Add a value mapping named ciscoMplsLdpPeerLabelDistributionMethod with the following values:

1 => downstreamOnDemand 2 => downstreamUnsolicited

Source: http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=MplsLdpPeerLabelDistributionMethod&translate=Translate&submitValue=SUBMIT&submitClicked=true

DurvalMenezes commented 9 years ago

@TrueBrujah I was referring to your source for the ADSL information. I had already posted the MPLS information, including source :-P

TrueBrujah commented 9 years ago

I JUst toke the The information on the README.md and see that one of the value map was wrong.

I Check on the Template and i fix the name.

DurvalMenezes commented 9 years ago

@TrueBrujah It would have been better to provide an authoritative reference for the xDSL fix, here it is: http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=ADSL-TC-MIB

This is the complete ASN.1 source for the ADSL-TC-MIB used by the template, and there we can see there's no "AdslLineConfig" variable, but there is indeed a "AdslLineCoding" variable with the values incorrectly labeled on the README.md as being the former.