Hello Dear,
I am trying to add MIB file from Nagios xi command line using addmib command and i get no error but MIB file is not added to /usr/share/snmp/mibs and nothing defined in snmptt.conf file.
Please check why mib files is not added correctly.
Regards,
Problem in Adding MIB file
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Problem in Adding MIB file
Are you running the command as root? Can you provide a copy of the MIB? What are the permissions set to on the /usr/share/snmp/mibs directory?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Problem in Adding MIB file
Hello Dear,
I were using command under root user, you can find attached samples of MIBs I were trying to add.
below are the permissions set on /usr/share/snmp/mibs directory. Also you can check below the exact procedure used to add these MIBs.
Permissions:
drwxrwsr-x. 3 root nagios 20480 Jan 16 13:13 mibs
Procedure Used:
upload MIB to /tmp
change MIB file permissions to 777 using chmod
use addmib command as below
[root@nms tmp]# addmib acision-smi.mib
waiting your feedback...
BR,
I were using command under root user, you can find attached samples of MIBs I were trying to add.
below are the permissions set on /usr/share/snmp/mibs directory. Also you can check below the exact procedure used to add these MIBs.
Permissions:
drwxrwsr-x. 3 root nagios 20480 Jan 16 13:13 mibs
Procedure Used:
upload MIB to /tmp
change MIB file permissions to 777 using chmod
use addmib command as below
[root@nms tmp]# addmib acision-smi.mib
waiting your feedback...
BR,
You do not have the required permissions to view the files attached to this post.
Re: Problem in Adding MIB file
Couple of things, the addmib script does not copy the MIB file to the /usr/share/snmp/mibs folder.
You have to copy it there manually.
Another thing, Most MIB files include other MIB file in then so when you try to run the addmib program against a MIB file that does not have the IMPORTS MIB file, it will not add the entry to the snmptt.conf file.
The ACISION-SMI MIB requires this MIB file SNMPv2-SMI to be installed in the /usr/share/snmp/mibs folder.
The ACISION-MCO-AFG-MIB MIB requires these files
Also, if an entry like the example below is in the snmptt.conf file, it has to be removed so the addmib program will import the file again.
You have to copy it there manually.
Another thing, Most MIB files include other MIB file in then so when you try to run the addmib program against a MIB file that does not have the IMPORTS MIB file, it will not add the entry to the snmptt.conf file.
The ACISION-SMI MIB requires this MIB file SNMPv2-SMI to be installed in the /usr/share/snmp/mibs folder.
The ACISION-MCO-AFG-MIB MIB requires these files
Code: Select all
ACISION-SMI
SNMPv2-SMI
ACISION-MCO-CONFIGURATION-MIB
SNMPv2-TC
Code: Select all
MIB: ACISION-SMI (file:ACISION-SMI.txt) converted on Wed Jan 16 10:53:29 2019 using snmpttconvertmib v1.4beta2Be sure to check out our Knowledgebase for helpful articles and solutions!
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Problem in Adding MIB file
Hi Dear,
i checked SNMPv2-SMI and its already exist in directory /usr/share/snmp/mib.
i copied MIB file acision-smi to directory /usr/share/snmp/mib manually,changed permission to 777 and applied addmib command to the file with no errors. i checked snmptt file and the it seems MIB file is not added successfully, please check the snmptt file entry for acision-smi MIB file...
#
#
MIB: ACISION-SMI (file:./acision-smi.mib) converted on Sun Jan 20 09:29:03 2019 using snmpttconvertmib v1.3
[root@nms mibs]#
BR,
i checked SNMPv2-SMI and its already exist in directory /usr/share/snmp/mib.
i copied MIB file acision-smi to directory /usr/share/snmp/mib manually,changed permission to 777 and applied addmib command to the file with no errors. i checked snmptt file and the it seems MIB file is not added successfully, please check the snmptt file entry for acision-smi MIB file...
#
#
MIB: ACISION-SMI (file:./acision-smi.mib) converted on Sun Jan 20 09:29:03 2019 using snmpttconvertmib v1.3
[root@nms mibs]#
BR,
Re: Problem in Adding MIB file
I checked the ACISION-SMI MIB file and it does not have any Trap or Notification objects defined in it so it will not add any entries to the snmptt.conf file.
The ACISION-MCO-AFG-MIB MIB file has some entries in it so run the addmib application against that file to add the snmptt configuration file.
The ACISION-MCO-AFG-MIB MIB file has some entries in it so run the addmib application against that file to add the snmptt configuration file.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
bashar.abed
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Problem in Adding MIB file
Hi,
Many thanks for your response
the problem solved
Thanks
Many thanks for your response
the problem solved
Thanks
Re: Problem in Adding MIB file
Glad to hear that it is fixed. I'll lock the post for you but feel free to open a new one in the future for any new questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!