How to import MIB files?

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

Moderators: Developers, Moderators

Post Reply
bandrichsupport
Posts: 4
Joined: Tue Oct 28, 2014 3:47 am

How to import MIB files?

Post by bandrichsupport »

I was trying to follow the instructions on a topic for how to import a MIB file into Cacti (http://forums.cacti.net/viewtopic.php?t=4143)
however, I was creating a new SNMP query XML file from the MIB file that provide from the Router company, below is what i have done creating the XML, and at the end this didn't work at all, I am not sure what I have missed and wrong, the query itself should be a RF sensitivity indicator, after i follow all the instructions, I can only see a Blank graph page displayed, can someone help? thanks

<interface>
<name>Get Alarm-trap Interfaces</name>
<description>Queries a list of trap table</description>
<oid_num_indexes>.1.3.6.1.4.1.44205.4.1.1</oid_num_indexes>
<index_order_type>numeric</index_order_type>

<fields>
<brMonitorRfsCdmaRssiEnable>
<name>Enable</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.44205.4.1.1.1</oid>
</brMonitorRfsCdmaRssiEnable>
<brMonitorRfsCdmaRssiRisingThreshold>
<name>UpperBound</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.44205.4.1.1.2</oid>
</brMonitorRfsCdmaRssiRisingThreshold>
<brMonitorRfsCdmaRssiFallingThreshold>
<name>LowerBound</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.44205.4.1.1.3</oid>
</brMonitorRfsCdmaRssiFallingThreshold>
<brMonitorRfsCdmaRssiCurrentValue>
<name>CurrentValue</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.44205.4.1.1.4</oid>
</brMonitorRfsCdmaRssiCurrentValue>
</fields>
</interface>
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to import MIB files?

Post by BSOD2600 »

Cacti doesnt really use MIB files and there isnt any way to 'import' them.
please post the verbose output from the snmp data query. Also a snmpwalk would be helpful.

cacti and os version?
bandrichsupport
Posts: 4
Joined: Tue Oct 28, 2014 3:47 am

Re: How to import MIB files?

Post by bandrichsupport »

I am using ubuntu, Cacti V0.8.8b, thank you for your help!
plz refer to attached file (1.txt & tree.txt)
Attachments
tree.txt
(2.64 KiB) Downloaded 125 times
1.txt
(4.19 KiB) Downloaded 118 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to import MIB files?

Post by BSOD2600 »

your script uses an index of 1.3.6.1.4.1.44205.4.1.1, yet you posted the snmpwalk of 1.3.6.1.4.1.44205.2.1?

the next time also include the verbose query output from the data query itself against a device from within cacti.
bandrichsupport
Posts: 4
Joined: Tue Oct 28, 2014 3:47 am

Re: How to import MIB files?

Post by bandrichsupport »

it should be 1.3.6.1.4.1.44205.2.1 the scrip I post earlier was wrong, I am not sure what you mean "verbose query output from the data query itself against a device from within cacti." sorry I am really a newbie here... :cry:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to import MIB files?

Post by BSOD2600 »

Devices -> click on a device -> Associated Data Queries -> for your get Alarm-trap Interfaces data query, click Verbose Query. Now you can see if cacti is correctly parsing the indexes and other fields.
bandrichsupport
Posts: 4
Joined: Tue Oct 28, 2014 3:47 am

Re: How to import MIB files?

Post by bandrichsupport »

this is what I got from the verbose query(attached file) but I don't see the values I need, could it be something wrong with my XML file? I have also attached it, thank you for your help!!!
Attachments
RF_44205_2.xml
(1.33 KiB) Downloaded 155 times
verbose query.txt
(82.26 KiB) Downloaded 133 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to import MIB files?

Post by BSOD2600 »

whoah, no wonder the query isnt working as it's returning a vastly different OID tree than Cacti asked for. Manually run snmpwalk against 1.3.6.1.4.1.44205.4.2.1.1 and post the results. Looks like a possible vendor snmp implementation issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests