Failed to convert uploaded file to snmptt mib.. (rc: 127)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Failed to convert uploaded file to snmptt mib.. (rc: 127)

Post 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 ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post by tgriep »

Could you upload the MIB file to this post instead of just posting the contents of the file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post by ukboarder »

Hi

The basic one is this -
TRAP-TEST-MIB.txt
But also another we are trying is
TRAP-TEST-MIB.txt
Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Failed to convert uploaded file to snmptt mib.. (rc: 127

Post by tgriep »

Could you save this attachment and try to upload this MIB file and see if it works for you?
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked