Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

SNMP Mailq datacollection - snmp ok, but no .jrb files

+2 votes
237 views

I'm actually going to answer my own question, but I've spent so many hours trying to figure this out I need to post it somewhere visible in case someone else has the same issue.

The situation:  Trying to graph net-snmp extension based mailq data for the 4 queues (incoming, active, deferred, hold). Referencing the following old tutorials:

https://wiki.opennms.org/wiki/Net-snmp_extend_collections

http://www.adventuresinoss.com/2009/09/30/the-many-uses-of-net-snmp/

I was troubleshooting according to this:

https://wiki.opennms.org/wiki/Troubleshooting_SNMP_Collection#Collection_Matches_OIDs.2C_but_No_Data

at the very bottom of the file after all the preceding checks were complete it says "One of the more perplexing problems is when the getAttributeTypes search indicates that the OID has been matched to the machine, but no data files are appearing in OPENNMS_HOME/share/rrd/snmp/<node>. FIXME"

Kind of a dead end.  Anyway, I found that the fix was to use the 'integer' datatype instead of the 'octetstring' datatype  in the netsnmp.xml file .  As soon as I changed this and restarted opennms the .jrb and .meta files were created and data started being stored and graphed and life was awesome again. 

More specifically, instead of this:

  <group name="mailq-stats" ifType="ignore">
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115"
          instance="1" alias="incoming" type="octetstring" />
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115" 
          instance="2" alias="active" type="octetstring" />
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115" 
          instance="3" alias="deferred" type="octetstring" />
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115"
          instance="4" alias="hold" type="octetstring" />
   </group>
 
I did this:
 
  <group name="mailq-stats" ifType="ignore">
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115"
          instance="1" alias="incoming" type="integer" />
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115" 
          instance="2" alias="active" type="integer" />
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115" 
          instance="3" alias="deferred" type="integer" />
       <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.10.109.97.105.108.113.115.116.97.116.115"
          instance="4" alias="hold" type="integer" />
   </group>

 

OpenNMS version
18.0.1
Operating system
Ubuntu 16.04.1 Server
asked Aug 11, 2016 by TraceElements (170 points)
Yes thank you for sharing. I too wasted a ton of time looking for a solution due to the poor documentation.

This indeed got the proper .jrb and .meta files to get created.  And after some time the Resource Graph appeared as well.

2 Answers

0 votes
Thank you for sharing!
answered Aug 11, 2016 by indigo (11,140 points)
0 votes
Hello friend. I was having the same problem but have made many changes and now I can not make it work. Now I can not monitor and I can not plot; I'm using the same principle of "extend" in net-snmp to run a script that gives me the users who are using OpenVPN ... Could you please publish all the configuration files to review what changes are to be made ?
answered Oct 24, 2016 by IanMalo (190 points)
...