There are two MIB files which we loaded: SolarWinds-Products.mib and SolarWinds-Traps1.mib. See attachments.
A few ideas:
1) Is the order in which the files are added to the MIB database important?
2) Is it possible that there is a difference in PC format vs. Linux format (CR+NL vs. NL) or is it safe to presume XI handles that for us?
3) Is it clear from the MIB files that another MIB file is required?
I needed to rename the dot MIB files to dot txt for uploading here.
Traps translation not happening in XI
Re: Traps translation not happening in XI
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Traps translation not happening in XI
1) yes mibs can have dependencies, and the solarwinds mibs most definitely do.
2) It is never safe to assume a tool will accommodate different line endings. In this case, it is also not particular to nagios, but snmptt. You can always check with vim or another tool.
3) It absolutely should be, you will see an import line towards the top that states what it needs. You can also determine what oids each mib works with by reading through them.
The file extensions don't seem to matter for mibs, I have seen .mib, .txt, and no extn. As a side note, are you a part of the same group as mspk? If not it would be best to create a new thread.
2) It is never safe to assume a tool will accommodate different line endings. In this case, it is also not particular to nagios, but snmptt. You can always check with vim or another tool.
3) It absolutely should be, you will see an import line towards the top that states what it needs. You can also determine what oids each mib works with by reading through them.
The file extensions don't seem to matter for mibs, I have seen .mib, .txt, and no extn. As a side note, are you a part of the same group as mspk? If not it would be best to create a new thread.
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.
Re: Traps translation not happening in XI
Yes, I am part of the same group as MSPk.
So the file format which we seek is strictly NL at the end of each line? It seemed to me that XI was looking for a ".txt" file format, but the file it stores in the MIB directory was without the .txt. This lead me to believe that XI was doing the file format conversion. I will do some checking.
We cannot trust a successful "addmib" command as acknowledgement that the MIB was properly added?
Is there anyway to know that we have addressed all the proper dependencies and loaded the MIBs in the proper order?
Thank you!
So the file format which we seek is strictly NL at the end of each line? It seemed to me that XI was looking for a ".txt" file format, but the file it stores in the MIB directory was without the .txt. This lead me to believe that XI was doing the file format conversion. I will do some checking.
We cannot trust a successful "addmib" command as acknowledgement that the MIB was properly added?
Is there anyway to know that we have addressed all the proper dependencies and loaded the MIBs in the proper order?
Thank you!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Traps translation not happening in XI
Interesting, it really should not be modifying the files at all, extension, line endings, or anything. It also should not really be looking for a specific extension as far as I know.
As for dependencies, I honestly am not sure. I would think between errors with various tools and in the error logs I would think something will tell you.
I guess I should have worded that better. I don't trust a tool to change a file or accommodate for it, however if something says it was added successfully such as addmib, I would certainly hope it is!We cannot trust a successful "addmib" command as acknowledgement that the MIB was properly added?
As for dependencies, I honestly am not sure. I would think between errors with various tools and in the error logs I would think something will tell you.
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.
Re: Traps translation not happening in XI
Hi All,
We are now getting the traps from Solarwinds as "known", We have added the line .1.3.6.1.4.1.11307.10 to the /etc/snmp/snmptt.conf
Now this leads to another question i.e how do we display the multiple alerts in Nagios XI, I will be posting a separate thread for it.
Thanks All for following it up and helping us to get the traps coming in! I really appreciate
We are now getting the traps from Solarwinds as "known", We have added the line .1.3.6.1.4.1.11307.10 to the /etc/snmp/snmptt.conf
Now this leads to another question i.e how do we display the multiple alerts in Nagios XI, I will be posting a separate thread for it.
Thanks All for following it up and helping us to get the traps coming in! I really appreciate
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Traps translation not happening in XI
Awesome. I have one of the guys here trying a couple things to see if we can grab one of the values from the trap to set the host.
We will follow up in the other thread.
http://support.nagios.com/forum/viewtop ... 1062#57310
We will follow up in the other thread.
http://support.nagios.com/forum/viewtop ... 1062#57310