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.
Error Adding new MIB file
Re: Error Adding new MIB file
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:
If you receive one of these errors:
Execute the following commands to reset the permissions and ownership:
Please let me know how that goes,
Perry
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
-
- Posts: 70
- Joined: Wed Apr 04, 2018 10:52 am
Re: Error Adding new MIB file
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
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