Page 1 of 3
NagiosXI Adding MIB's error messages
Posted: Fri Dec 15, 2017 9:00 am
by rfaraci
Hello;
I have been configuring some SNMP notifications on my NagiosXI server with much success when I set up several UPS's for monitoring. However, now trying to set up monitoring with some Liebert A/C units I have run into some errors while installing the MIB files.
Originally, I installed the MIBs and didn't have any errors, however, I wasn't receiving the snmp traps as expected. When I looked at the snmptt.conf file, I didn't see any events for the Liebert A/C so I assumed that the MIBs didn't load correctly, although I didn't receive any errors during the loading process. I was sure to process the traps on each upload.
I decided to remove the MIB's and try reinstalling them. I removed each MIB and then restarted the snmptt service. I then went to reload the MIBs and received two different types of error messages.
Error1:
ERR1.jpg
Error2:
ERR2.jpg
As previously stated, I didn't receive these errors when first installing the MIBs.
Interesting to note, that when speaking with Liebert, they said that the MIBs had to be installed in a particular order and that one MIB would rely on the other. If the order isn't followed, the MIBS won't work correctly. Easy enough, I followed the readme file and installed them in the order specified checking off the Process Trap on each install.
In looking at the first MIB install, although I received a warning that it "Didn't contain any TRAP-TYPE definitions" I opened it up and it does indeed have traps in it. Also, keep in mind that the first time they installed I never received these errors.
Can someone please help me understand why I am receiving these errors and how I can correct the problem? Is there something else I need to do to clean up the removal of the old MIBS?
Also, since the MIBs need to be installed in a certain order, is processing the trap (clicking the check box) sufficient, or do I need to apply configuration after each MIB import?
Enclosed is is the first MIB which gave error1 as notated above:
MIB.TXT
Thanks in advance for your assistance.
Re: NagiosXI Adding MIB's error messages
Posted: Fri Dec 15, 2017 3:24 pm
by cdienger
Make sure to remove the lines:
Code: Select all
#
#
#
#
MIB: LIEBERT-GP-AGENT-MIB (file:/usr/share/snmp/mibs/MIB.TXT) converted on Fri Dec 15 14:50:31 2017 using snmpttconvertmib v1.4beta2
That should allow you to import the files through the GUI again.
Running
snmpttconvertmib --in MIB.TXT --debug=2 --out out on the command line, it shows more details as to why the traps cannot be imported. It looks like it requires a couple more MIB files: LIEBERT-GP-REGISTRATION-MIB and LIEBERT-GP-CONDITIONS-MIB.
Re: NagiosXI Adding MIB's error messages
Posted: Sun Dec 17, 2017 8:21 am
by rfaraci
Awesome, thank you, I will try that and let you know how that works.
Also, I have one more question regarding community strings.
Are the community stings in Nagios XI a global setting and set on an individual host basis?
Also, where can I find those settings please?
Re: NagiosXI Adding MIB's error messages
Posted: Mon Dec 18, 2017 10:59 am
by rfaraci
I tried as you suggested and I am still having the same error(s).
I remed out the statement which you suggested
# MIB: LIEBERT-GP-AGENT-MIB (file:/usr/share/snmp/mibs/MIB.TXT) converted on Fri Dec 15 14:50:31 2017 using snmpttconvertmib v1.4beta2
However, just as an FYI, the path was not as stated. It was actually at /usr/share/snmp/mibs/processed_mibs. (I did not find the .txt files in the location which you specified). Even after reming the statements out, I still had the same errors.
Also, running the "snmpttconvertmib --in MIB.TXT --debug=2 --out out" (replacing the mib.txt with my actual mib) returned this error.
[root@nagiosxi ~]# snmpttconvertmib --in Liebert_gp_reg.txt --debug=2 --out out
***** Processing MIB file *****
snmptranslate version: NET-SNMP version: 5.5
severity: Normal
File to load is: ./Liebert_gp_reg.txt
File to APPEND TO: ./out
MIBS environment var: ./Liebert_gp_reg.txt
Loading./Liebert_gp_reg.txt
Cannot open input file: No such file or directory at /usr/local/bin/snmpttconvertmib line 185.
Also, You mentioned that the MIB was possibly looking for a couple of more mib files but from the instructions from Liebert. They need to be installed in this order.
Load/compile the twelve individual MIB files onto your NMS in
the following order:
LIEBERT_GP_REG.MIB (Load First)
LIEBERT_GP_AGENT.MIB
LIEBERT_GP_COND.MIB
LIEBERT_GP_CONTROLLER.MIB
LIEBERT_GP_NOTIFY.MIB
LIEBERT_GP_SYSTEM.MIB
LIEBERT_GP_ENV.MIB
LIEBERT_GP_PDU.MIB
LIEBERT_GP_POWER.MIB
LIEBERT_GP_FLEXIBLE.MIB
LIEBERT_GP_FLEXIBLE_COND.MIB
RFC1628_UPS_MIB.MIB (Load Last)
Keep in mind that the first time I loaded these, I had no errors.
Also, would you be able to tell me
Are the community stings in Nagios XI a global setting and set on an individual host basis?
Also, where can I find those settings please?
I really appreciate your help and assistance. I look forward to your response.
Re: NagiosXI Adding MIB's error messages
Posted: Mon Dec 18, 2017 3:25 pm
by cdienger
Is remed short for removed or like old ODS REM for comments? Make sure to actually delete these lines - do not just comment them out.
By "actual mib", what do you mean exactly? If the that that was imported was /usr/share/snmp/mibs/MIB.TXT, first try changing location to this directory with cd /usr/share/snmp/mibs/ and run the command exactly as nmpttconvertmib --in MIB.TXT --debug=2 --out out. According to the output of this the order may not be correct.
The community strings are typically set per check and you can find them/set them by editing checks in the usual locations - Configure > Core Config Manager > Monitoring.
Re: NagiosXI Adding MIB's error messages
Posted: Wed Dec 20, 2017 8:56 am
by rfaraci
Hi my apologizes for not getting back to you sooner as I wasn't in the office yesterday.
I removed the line instead of commenting it out and also removed the mib itself and tried reinstalling with the same error.
ERR1.jpg
Also, I ran the command nmpttconvertmib --in MIB.TXT --debug=2 --out out when I realized it wasn't working because we didn't have the "S" in the beginning of the command. I then ran the corrected command snmpttconvertmib --in MIB.TXT --debug=2 --out out.
Output:
no file found.jpg
It would seem to me that if these mib files installed without issue the first time and now on REinstalling them there is an issue, then there must be another file somewhere that needs to be either altered or removed. I think I need to remove ALL ASPECTS of this original mib installation.
This is just a thought.....
Also, I don't agree that the mib order in incorrect as this order worked without issue originally and is the specific order stated by Liebert.
I'm not sure what else to do. Three days to get mibs onto my server is starting to wear on me....
Please let me know your thoughts on how to proceed.
Wishing I was more of a Nagios guru but I'm learning on the fly!
Re: NagiosXI Adding MIB's error messages
Posted: Wed Dec 20, 2017 2:39 pm
by npolovenko
@rfaraci, We could try to populate the snmptt.conf file for you to make things faster. Can you upload the snmptt.conf here? Also, please zip and upload all files from /etc/snmp/, as well as /usr/share/snmp/mibs/ folder.
I think the reason for your problem is because the mib file that you uploaded is relying on 2 other mib files, which are: LIEBERT-GP-REGISTRATION-MIB and FROM LIEBERT-GP-CONDITIONS-MIB. So technically you needed to install these two before installing the mib from your first post.
Re: NagiosXI Adding MIB's error messages
Posted: Wed Dec 20, 2017 3:36 pm
by rfaraci
I appreciate that. However, I may have led you down the wrong path and for that I apologize.
The first file that should be installed according to Liebert is the "Liebert_GP_REG.mib" and that was the file I should have sent in my original post.
The file order is in the readme here:
README.TXT
The mibs are here:
LgpMibDistribution_12.4.zip
It looks like I sent the wrong file on my original post as I went back and referenced it. Please accept my apology and let me know your thoughts?
Thanks;
Rich
Re: NagiosXI Adding MIB's error messages
Posted: Wed Dec 20, 2017 4:19 pm
by tgriep
If one of the MIB files you have uploaded earlier has a bad entry or is missing another file, that could cause the error you are having.
We would need to see the SNMP configuration files and the MIB files from the server so can you run the following 2 commands as root.
Code: Select all
tar cvfz /tmp/snmp.tgz /etc/snmp/*
tar cvfz /tmp/sharesnmp.tgz /usr/share/snmp/mibs/*
Then post these 2 files so we can check the settings and the MIB files for any errors.
Re: NagiosXI Adding MIB's error messages
Posted: Thu Dec 21, 2017 7:48 am
by rfaraci
Good Morning;
I have ran the commands as requested and posted the two files here:
sharesnmp.tgz
\
snmp.tgz
Please keep in mind that after trying unsuccessfully several times, I stopped trying to load the files after the first one error-ed out on the last attempt, so the only mib loaded at this time is the first one called out in the list by Liebert "Liebert_GP_REG.MIB" as Load First.
Surprised to hear that the mibs could be missing anything as they all loaded the first time without issue and this problem only occurred after removing the mibs and trying to reload them.
It'll be interesting to see what you find......
Thanks for the help!
Rich