XML Parse Error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mystycs
Posts: 9
Joined: Thu Jul 11, 2013 10:00 am

XML Parse Error

Post by mystycs »

So I dont really know the first thing about making these XML files but i ran a MIB to XML Converter someone suggested here and i tried uploading my XML file that it created and im getting XML Parse Error in cacti.

Is this right or could someone guide me in the right direction?

Code: Select all

<?xml version="1.0"?>
<MIB>
  <MODULE NAME="company-MIB" />
  <NODES>
    <NODE NAME="iso" OID="1" TYPE="ObjectIdentifier" />
    <NODE NAME="company" OID="enterprises.37436" TYPE="Object_Identifier" />
    <NODE NAME="device" OID="enterprises.37436.2" TYPE="Object_Identifier" />
    <SCALAR NAME="companyManufacturer" OID="enterprises.37436.2.1" TYPE="Object_Type">
      <SYNTAX>DisplayString</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"The name of the device's manufacturer. "</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="deviceModelNumber" OID="enterprises.37436.2.2" TYPE="Object_Type">
      <SYNTAX>DisplayString</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"The name of the device's model."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <NODE NAME="cbRadioFreq" OID="enterprises.37436.2.3" TYPE="Object_Identifier" />
    <NODE NAME="cbAcu" OID="enterprises.37436.2.4" TYPE="Object_Identifier" />
    <NODE NAME="cbAmu" OID="enterprises.37436.2.5" TYPE="Object_Identifier" />
    <NODE NAME="cbWs" OID="enterprises.37436.2.6" TYPE="Object_Identifier" />
    <NODE NAME="cbSatellite" OID="enterprises.37436.2.7" TYPE="Object_Identifier" />
    <NODE NAME="cbShip" OID="enterprises.37436.2.8" TYPE="Object_Identifier" />
    <NODE NAME="cbAlarms" OID="enterprises.37436.2.9" TYPE="Object_Identifier" />
    <NODE NAME="cbStatistics" OID="enterprises.37436.2.10" TYPE="Object_Identifier" />
    <NODE NAME="cbTraps" OID="enterprises.37436.2.15" TYPE="Object_Identifier" />
    <SCALAR NAME="cbBucOutLevel" OID="enterprises.37436.2.3.1" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the BUC transmiting power."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbBucTemp" OID="enterprises.37436.2.3.2" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the BUC temperature."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbBucStatus" OID="enterprises.37436.2.3.3" TYPE="Object_Type">
      <SYNTAX>INTEGER { disconnected ( 1 ) , connected ( 2 ) }</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the BUC status."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbEsNo" OID="enterprises.37436.2.3.4" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the EsNo."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbRxPower" OID="enterprises.37436.2.3.5" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the receiving power."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbTxPower" OID="enterprises.37436.2.3.6" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the transmitting power."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMotAngleAz" OID="enterprises.37436.2.4.1" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Azimuth motor angle."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMotAngleEl" OID="enterprises.37436.2.4.2" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Elevation motor angle."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMotCurrentAz" OID="enterprises.37436.2.4.3" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Azimuth motor current."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMotCurrentEl" OID="enterprises.37436.2.4.4" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Elevation motor current."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMotVoltage" OID="enterprises.37436.2.4.5" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the motor voltage."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbAcuTemp" OID="enterprises.37436.2.4.6" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the ACU temperature."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbAmuTemp" OID="enterprises.37436.2.5.1" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the AMU temperature."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbWsAlarm" OID="enterprises.37436.2.6.1" TYPE="Object_Type">
      <SYNTAX>DisplayString</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the WS alarms."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbSatLongitude" OID="enterprises.37436.2.7.1" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the current satellite longitude."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbLongitude" OID="enterprises.37436.2.8.1" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the ship longitude."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbLatitude" OID="enterprises.37436.2.8.2" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the ship latitude."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbHeading" OID="enterprises.37436.2.8.3" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the ship heading."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbAduAlarm" OID="enterprises.37436.2.9.1" TYPE="Object_Type">
      <SYNTAX>DisplayString</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Above Deck Units alarms."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbBudAlarm" OID="enterprises.37436.2.9.2" TYPE="Object_Type">
      <SYNTAX>DisplayString</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Below Deck Units alarms."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMaxEsNo" OID="enterprises.37436.2.10.1" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Maximum Esno in dB."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMinEsNo" OID="enterprises.37436.2.10.2" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Minimum Esno in dB."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
    <SCALAR NAME="cbMaxRoll" OID="enterprises.37436.2.10.3" TYPE="Object_Type">
      <SYNTAX>CbFloat</SYNTAX>
      <ACCESS>read-only</ACCESS>
      <DESCRIPTION>"This variable informs the Maximum Roll in degree."</DESCRIPTION>
      <STATUS>mandatory</STATUS>
    </SCALAR>
  </NODES>
  <IMPORT CONTENT="enterprises FROM RFC1155-SMI OBJECT-TYPE FROM RFC-1212 TRAP-TYPE FROM RFC-1215 current FROM SNMPv2-SMI TEXTUAL-CONVENTION FROM SNMPv2-TC DisplayString FROM RFC1213-MIB ;" />
  <TRAPTYPES>
    <TRAP-TYPE NAME="trapRf" ID="0" DESCRIPTION=""Radio Frequency status"" ENTERPRISE="cbTraps" VARIABLE="cbBucOutLevel , cbBucTemp , cbBucStatus , cbEsNo , cbRxPower , cbTxPower" />
    <TRAP-TYPE NAME="trapAcu" ID="1" DESCRIPTION=""Antenna Control Unit status"" ENTERPRISE="cbTraps" VARIABLE="cbMotAngleAz , cbMotAngleEl , cbMotCurrentAz , cbMotCurrentEl , cbMotVoltage , cbAcuTemp" />
    <TRAP-TYPE NAME="trapAmu" ID="2" DESCRIPTION=""Antenna Monitoring Unit status"" ENTERPRISE="cbTraps" VARIABLE="cbAmuTemp" />
    <TRAP-TYPE NAME="trapWs" ID="3" DESCRIPTION=""Web server status"" ENTERPRISE="cbTraps" VARIABLE="cbWsAlarm" />
    <TRAP-TYPE NAME="trapSat" ID="4" DESCRIPTION=""Satellite status"" ENTERPRISE="cbTraps" VARIABLE="cbSatLongitude" />
    <TRAP-TYPE NAME="trapShip" ID="5" DESCRIPTION=""Ship status"" ENTERPRISE="cbTraps" VARIABLE="cbLongitude , cbLatitude , cbHeading" />
    <TRAP-TYPE NAME="trapAlarms" ID="6" DESCRIPTION=""Alarms"" ENTERPRISE="cbTraps" VARIABLE="cbAduAlarm , cbBudAlarm" />
    <TRAP-TYPE NAME="trapStatistics" ID="7" DESCRIPTION=""Statistics"" ENTERPRISE="cbTraps" VARIABLE="cbMaxEsNo , cbMinEsNo , cbMaxRoll" />
  </TRAPTYPES>
</MIB>
mystycs
Posts: 9
Joined: Thu Jul 11, 2013 10:00 am

Re: XML Parse Error

Post by mystycs »

Fixed i ended up learning how to do it the right way
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests