Using rrdtool update to add data to a Nagios XI rrd file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Using rrdtool update to add data to a Nagios XI rrd file

Post by awilson »

I have a question concerning the discussion on an earlier post "RRD files data feeding" https://support.nagios.com/forum/viewto ... 16&t=40402
The RRDtool site describes the rrdtool with the update option http://oss.oetiker.ch/rrdtool/doc/rrdupdate.en.html is able to insert values. "The update function feeds new data values into an RRD. The data is time aligned (interpolated) according to the properties of the RRD to which the data is written."

Couldn't this meet the requirement? Is there another step required to be able to access the data added using the update option?

Thanks!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Using rrdtool update to add data to a Nagios XI rrd fil

Post by mcapra »

It's hard to say for sure since Nagios Core does the writes to perfdata files slightly differently than rrdtool. Here is the function used on the back-end for a specific service (a different but similar function is used for hosts):
https://github.com/NagiosEnterprises/na ... #L519-L555

You could certainly try, but this is not something that Nagios Core is going to anticipate and it might cause issues within your performance data file. Hard to say without doing some extensive testing.

If you're going to attempt this and would like an easy way to get the resulting structure of the data, I would suggest using the Performance Data Tool component created by @box293 to review the perfdata reported by the RRD after doing the rrdupdate:
https://exchange.nagios.org/directory/A ... ol/details
Former Nagios employee
https://www.mcapra.com/
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Using rrdtool update to add data to a Nagios XI rrd fil

Post by awilson »

Thank you for the rapid reply and the reference information.

Alan
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Using rrdtool update to add data to a Nagios XI rrd fil

Post by lmiltchev »

awilson, let us know if it is OK to close this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Using rrdtool update to add data to a Nagios XI rrd fil

Post by awilson »

Yes. Please close it.

Thank you.

Alan
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Using rrdtool update to add data to a Nagios XI rrd fil

Post by dwhitfield »

Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!
Locked