Error Adding new MIB file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Error Adding new MIB file

Post by jatindeepsharma »

Hello All,

While i am adding new MIBS on my existing running system, there is an error .


while converting mibs file into .txt using snmpttconvertmib,it is printing below error. can you please help ?


[root@NagiosXI bin]# snmpttconvertmib --in=/usr/share/snmp/mibs/imax-xenon-notification-mib.mib --out=/etc/snmp/snmptt.conf --imax-xenon-notification-mib exec-imax-xenon-notification-mib.txt
Unknown option: imax-xenon-notification-mib


***** Processing MIB file *****

snmptranslate version: NET-SNMP version: 5.5
severity: Normal

File to load is: /usr/share/snmp/mibs/imax-xenon-notification-mib.mib
File to APPEND TO: /etc/snmp/snmptt.conf

MIBS environment var: /usr/share/snmp/mibs/imax-xenon-notification-mib.mib
Cannot open input file: No such file or directory at /usr/local/bin/snmpttconvertmib line 185.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Error Adding new MIB file

Post by pbroste »

Hello,

Thanks for reaching out, looks like it is unable to read the file, and would like to take a look at the permissions.

The command to check on the ownership and permissions:

Code: Select all

ls -l /usr/share/snmp/mibs/

If you receive one of these errors:

Execute the following commands to reset the permissions and ownership:

Code: Select all

chmod -R ug+rw /usr/share/snmp/mibs/imax-xenon-notification-mib.mib
chown -R root:nagios /usr/share/snmp/mibs


Please let me know how that goes,
Perry
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Error Adding new MIB file

Post by jatindeepsharma »

Hello Perry

Thank you so much for your valuable reply. i have defined the permission & this file worked out successfully.
i have attached the output. (output.txt)
Now i can see new MIB file in /etc/snmp/snmptt.conf but i can't see the text file which should be generated at /usr/share/snmp/mibs/processed_mibs path.
i have .txt file of other defined MIBS in system is present at this path. (e.g. amc-notification-mib.txt).

Please help me how can i proceed further?

Regards
JD
Attachments
output.txt
output
(50.83 KiB) Downloaded 118 times
Locked