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!
Using rrdtool update to add data to a Nagios XI rrd file
Re: Using rrdtool update to add data to a Nagios XI rrd fil
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
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/
https://www.mcapra.com/
Re: Using rrdtool update to add data to a Nagios XI rrd fil
Thank you for the rapid reply and the reference information.
Alan
Alan
Re: Using rrdtool update to add data to a Nagios XI rrd fil
awilson, let us know if it is OK to close this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Using rrdtool update to add data to a Nagios XI rrd fil
Yes. Please close it.
Thank you.
Alan
Thank you.
Alan
-
- 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
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!