Page 1 of 2

No trap definitions created after successfully loading a mib

Posted: Tue May 28, 2019 6:33 pm
by kandatih
Hi all,
After loading TELESYS mib, default trap definitions are not created. Could you please verify and advise if its an issue with the MIB files. Attached the mib files.

Environment :
Install - Offline
OS - RHEL 7
XI - v5.6.2

Thanks in advance.
Hari

Re: No trap definitions created after successfully loading a

Posted: Wed May 29, 2019 5:01 pm
by ssax
It looks like it's the the MACH7 MIB that's causing issues, did you get these from the vendor or somewhere else?

Re: No trap definitions created after successfully loading a

Posted: Wed May 29, 2019 5:07 pm
by kandatih
Its from the vendor, but a old one from our archives.

Re: No trap definitions created after successfully loading a

Posted: Thu May 30, 2019 4:08 pm
by cdienger
It looks like it doesn't like the comments. Try the attached.

Or if you wanna keep them, the file will need to be edited to have a space after double dashes. For example, this:

Code: Select all

------------------------------------------------------
-- TELESYS-MACH7-MIB: MIB for teleSys MACH7 software 
--
-- Copyright (c) 2007-2008 by teleSys Software, Inc.
------------------------------------------------------
would become:

Code: Select all

-- ----------------------------------------------------
-- TELESYS-MACH7-MIB: MIB for teleSys MACH7 software 
--
-- Copyright (c) 2007-2008 by teleSys Software, Inc.
-- ----------------------------------------------------

Re: No trap definitions created after successfully loading a

Posted: Thu May 30, 2019 4:51 pm
by kandatih
Thanks for the udpate.Tried the one you attached, as well as updated my copy with the addvised, still dont see trap definitions. Attached my copy for your ref

Re: No trap definitions created after successfully loading a

Posted: Thu May 30, 2019 4:54 pm
by cdienger
The wrong file was attached. I update my last post to have the correct file.

Re: No trap definitions created after successfully loading a

Posted: Thu May 30, 2019 5:39 pm
by kandatih
Great, it worked now. For future ref, could you please share any info on the mib formats that Nagios supports and let me know if Nagios logs it on the server, if it dont like the mib format

Re: No trap definitions created after successfully loading a

Posted: Fri May 31, 2019 9:14 am
by cdienger
The program that converts the MIBs is snmpttconvertmib and you can get debug information from it by running:

Code: Select all

snmpttconvertmib --in='MIBFILE' --out='OUTFILE' --debug=2

Re: No trap definitions created after successfully loading a

Posted: Mon Jun 03, 2019 2:57 pm
by kandatih
Thanks Cdienger.

Re: No trap definitions created after successfully loading a

Posted: Mon Jun 03, 2019 3:24 pm
by cdienger
Glad to help. Did you have any further questions regarding this or are we okay to lock the thread at this point?