How to import MIB files?
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Tue Oct 28, 2014 3:47 am
How to import MIB files?
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>
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>
Re: How to import MIB files?
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?
please post the verbose output from the snmp data query. Also a snmpwalk would be helpful.
cacti and os version?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Tue Oct 28, 2014 3:47 am
Re: How to import MIB files?
I am using ubuntu, Cacti V0.8.8b, thank you for your help!
plz refer to attached file (1.txt & tree.txt)
plz refer to attached file (1.txt & tree.txt)
Re: How to import MIB files?
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.
the next time also include the verbose query output from the data query itself against a device from within cacti.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Tue Oct 28, 2014 3:47 am
Re: How to import MIB files?
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...
Re: How to import MIB files?
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Tue Oct 28, 2014 3:47 am
Re: How to import MIB files?
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 154 times
-
- verbose query.txt
- (82.26 KiB) Downloaded 132 times
Re: How to import MIB files?
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 8 guests