Cannot Remove MIB

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cannot Remove MIB

Post by lmiltchev »

I may be wrong but it seems that you are downloading the MIB to the same directory, that you are trying to install the MIB to. Try removing the MIB from the web UI. Next, download the MIB to a different directory, for example "/tmp/" and run:

Code: Select all

addmib /tmp/CISCOTRAP-MIB.my
Be sure to check out our Knowledgebase for helpful articles and solutions!
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Cannot Remove MIB

Post by perric »

I will try your suggestion, however, can you help me with one thing. What is the addmib script doing?

1) Is it converting the MIBs to another format? If so, where is the location of the converted MIBs?
2) Is it adding the MIB name to a configuration file? If so, what is the name of that config file?

David
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Cannot Remove MIB

Post by perric »

I deleted the MIB (rm CISCOTRAP-MIB.my) from the /usr/share/snmp/mibs folder and then ftp'd it to /usr/share/snmp/mibs/tmp, but same result with addmib command.

[root@cawlk tmp]# addmib ./CISCOTRAP-MIB.my
This file looks like it has been added already! Exiting.

David
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cannot Remove MIB

Post by lmiltchev »

Adding the MIB in the web UI will only put it in the "/usr/share/snmp/mibs/" directory.

Running the addmib command (for trap MIBs) needs to put it in the "processed_mibs" directory. If it is not there, but you are still getting the "This file looks like it has been added already! Exiting." message, there are probably some entries in the "/etc/snmp/snmptt.conf" or/and in the "/etc/snmp/snmptt.ini".

You can try removing these entries and rerunning addmib command.
Be sure to check out our Knowledgebase for helpful articles and solutions!
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Cannot Remove MIB

Post by perric »

Tried to add a MIB via the GUI and it worked versus adding it via addmib.

This solves my issue. Thanks for your help.

David
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cannot Remove MIB

Post by lmiltchev »

I am glad your issue has been resolved! I am locking this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked