Page 1 of 1

Exporting values from RRD

Posted: Fri Jun 24, 2016 4:59 pm
by MSPk
Hi,

When we run the command to get the memory usage for a windows server using check_nt, I see the below output which I believe captures values like the warning, critical, min & Max values of memory (in this case total available memory, i.e 16381.43) as well to be written into the graph.

Code: Select all

Memory usage: total:16381.43 MB - used: 5108.22 MB (31%) - free: 11273.21 MB (69%) | 'Memory usage'=[color=#FFFF00]5108.22MB;13105.15;14743.29;0.00;16381.43[/color]
I'm trying to export data from an rrd file to a csv, which I have done successfully using the rrd fetch command. however on the CSV I see only the performance data that is being collected from the end server but dont see the other values, I'm more interested in getting the max memory available on the server to be checked against the current utilisation. Please help.

RRD commands used - rrdtool fetch memory_usage.rrd AVERAGE –r 300 –s -24h

Re: Exporting values from RRD

Posted: Mon Jun 27, 2016 2:10 am
by Box293
Usually the other information like warning and critical are stored in the corresponding XML file (one per RRD file).

Using fetch you can also use MIN and MAX instead of AVERAGE.

Have a look at this tool I created called the Performance Data Tool.

http://exchange.nagios.org/directory/Ad ... ol/details

Upload it into Nagios XI via Admin > System Extensions > Manage Components.

Access it via the Tools Menu.

You can click an RRD file and it'll show you a page of all the different data you can fetch, along with the command used to execute the fetch. It also shows the XML I am talking about.

Does this help?