Page 1 of 1

Error Adding new MIB file

Posted: Tue Jul 06, 2021 10:10 pm
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.

Re: Error Adding new MIB file

Posted: Wed Jul 07, 2021 12:30 pm
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

Re: Error Adding new MIB file

Posted: Wed Jul 07, 2021 8:36 pm
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