Page 1 of 3
Failed to convert uploaded file to snmptt mib.. (rc: 127)
Posted: Fri Jan 02, 2015 6:47 am
by ukboarder
CentOS - 6.5
64bit
Manual Install of XI
Hello,
Error:(Failed to convert uploaded file to snmptt mib.. (rc: 127))
We are having issues with the error above when trying to upload a MIB file with the process trap box ticked.
We have found a few forum posts with the same issue and have followed this but we are still getting the error
The permissions are:
[admin@nagiosxi ~]$ ls -l /usr/share/snmp/mibs/processed_mibs/ -d
drwxr-sr-x 2 apache nagios 4096 Dec 23 17:40 /usr/share/snmp/mibs/processed_mibs/
[admin@nagiosxi ~]$ ls -l /usr/share/snmp/mibs/ -d
drwxrwsr-x. 3 root nagios 4096 Jan 2 11:33 /usr/share/snmp/mibs/
We did have the snmptt-1.4-0.9.beta2.el6.noarch version installed which has been removed and 1.3 installed from the documentation.
Is there anything else we are missing ?
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Fri Jan 02, 2015 10:21 am
by scottwilkerson
for clarity,did you follow this doc?
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Also, can you post the MIB you are trying to process? It is a trap MIB correct?
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Mon Jan 05, 2015 3:43 am
by ukboarder
Hi,
3. Modify the “snmptt.ini” and “snmptrapd.conf” files - we weren't sure what we were meant to modify on this but the rest we have done.
We used the test trap Mib below which does add okay without the process trap butoon ticked
the file also converts okay when using the snmpconvertmib script
Thanks
------------------------------------
TRAP-TEST-MIB DEFINITIONS ::= BEGIN
IMPORTS ucdExperimental FROM UCD-SNMP-MIB;
demotraps OBJECT IDENTIFIER ::= { ucdExperimental 990 }
demo-trap TRAP-TYPE
STATUS current
ENTERPRISE demotraps
VARIABLES { sysLocation }
DESCRIPTION "This is just a demo"
::= 17
END
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Mon Jan 05, 2015 12:35 pm
by sreinhardt
As swilkerson mentioned, did you follow the document we provide for integrating snmp traps with nagios? That document should provide an installation script that will cover all the necessary dependencies for this to work properly.
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Thu Jan 08, 2015 4:22 am
by ukboarder
Hi sreinhardt,
Sorry for the late reply, my technical team have confirmed they have gone through all of the steps and removed / re-installed the version from the document
Regards
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Thu Jan 08, 2015 12:35 pm
by sreinhardt
After doing so, are you still having issues converting mibs? If so, please post a copy of the mib you are trying to upload.
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Mon Jan 19, 2015 6:28 am
by ukboarder
Hi, I have been on Vacation for a week and hadn't realised my collegue couldn't update this ticket.
Its is still failing - we just used the test trap above but it is failing on all that we are trying to use
The trap was below
Thanks
TRAP-TEST-MIB DEFINITIONS ::= BEGIN
IMPORTS ucdExperimental FROM UCD-SNMP-MIB;
demotraps OBJECT IDENTIFIER ::= { ucdExperimental 990 }
demo-trap TRAP-TYPE
STATUS current
ENTERPRISE demotraps
VARIABLES { sysLocation }
DESCRIPTION "This is just a demo"
::= 17
END
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Mon Jan 19, 2015 10:31 am
by tgriep
Could you upload the MIB file to this post instead of just posting the contents of the file?
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Tue Jan 20, 2015 10:24 am
by ukboarder
Hi
The basic one is this -
TRAP-TEST-MIB.txt
But also another we are trying is
TRAP-TEST-MIB.txt
Thanks
Re: Failed to convert uploaded file to snmptt mib.. (rc: 127
Posted: Tue Jan 20, 2015 11:33 am
by tgriep
Could you save this attachment and try to upload this MIB file and see if it works for you?