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

folder with IP instead of ID

0 votes
231 views
Is there a way to manipulate the output of the snmp-data to be with the IP instead of the node ID? I know that manipulating the datacollection-config.xml file it is possible to manage the folders after the node, but before I couldn´t do it
OpenNMS version
1.13.1
Java version
oracle 7
Operating system
linux red hat
PostgreSQL version
9.3
asked May 28, 2014 by Russo (570 points)

1 Answer

0 votes

You have two possibities storing data from Collectd:

  • default is $OPENNMS_HOME/share/rrd/snmp/${nodeid}
  • storeByForeignSource $OPENNMS_HOME/share/rrd/snmp/fs/${foreign-source}/${foreign-id}

the behavior is configured in $OPENNMS_HOME/etc/opennms.properties. To use storeByForeignSource set org.opennms.rrd.storeByForeignSource=true.

Using Provisiond you are free to choose the Foreign-ID, you have to make sure it is unique in the Foreign-Source.

Hope it helps.

answered May 28, 2014 by indigo (10,370 points)
I tried to use this method, but I didn´t understood how to choose the Foreign-ID.
Maybe that is my problem.
I´ll give it another try.
Many Thanks :)
Here is a screenshot which shows what the ForeignSource and what the Foreign-ID is: http://picpaste.com/pics/Screen_Shot_2014-05-28_at_17.27.44-IdVxTe3m.1401291151.png

Screenshot is deleted on: 04.06.14 17:32
I don´t I quite understood. With this configuration you will need to know  the IPs before you start collecting the data? Is that it?
If that is the case this is not the solution for me  :(.
I would wanted to do a discovery of the network and grab the data and put it by the IPs.
For example:
node ID=1 IP= 10.10.10.10
node ID=2 IP =10.10.10.11
instead of the output being :
$OPENNMS_HOME/share/rrd/1
$OPENNMS_HOME/share/rrd/2
I would wanted:
$OPENNMS_HOME/share/rrd/10.10.10.10
$OPENNMS_HOME/share/rrd/10.10.10.11

So I don´t think the method you suggested is what I wanted.

Thanks very much for you help.
...