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

How can I retrieve different attributes like Storage Disk Utilization from the REST API for OpenNMS? [closed]

0 votes
191 views

I am fairly new to OpenNMS. Currently I am in the process of creating a simplified dashboard for all the nodes that I have configured. I plan on monitoring the cpu utilization and the memory availability on all the nodes. To do this, I am using the REST Api of OpenNMS. For the cpu utilization, I am able to get the stats using the following url :

    http://localhost:8980/opennms/rest/measurements/node%5B212%5D.nodeSnmp%5B%5D/cpuPercentBusy?start=1501158186498&maxrows=30


From https://wiki.opennms.org/wiki/ReST#Measurements_API, I was able to get the basic url as :

    /measurements/{resourceId}/{attribute}

However, I can't seem to determine the url for getting the memory available on the various disk drives (C:\\,D:\\,etc...)


How do I get the memory utilization and other such performance metrics for a node?

OpenNMS version
Horizon
Java version
1.8
Operating system
Windows 7
closed with the note: Solved it on my own
asked Aug 11 by zaederex (170 points)
closed Aug 11 by zaederex
Next time it would be nice to provide the answer, so other users who may have the same problem don't have to figure the solution out by themselves (-:
would look something like this :

/measurements/node[" + id
                        + "].hrStorageIndex[PhysicalMemory]/hrStorageUsed?start=" + startTime
...