TECHZEN Zenoss User Community ARCHIVE  

How to set/add an RRD value from python?

Subject: How to set/add an RRD value from python?
Author: [Not Specified]
Posted: 2015-10-20 05:10

Hello,

I need to add a new RRD value when a given event is received by ZenOss.
I already made this happening in the transform of the event with regular configuration
attributes (e.g. do a pushConfig when I change an attribute), just that I have zero idea how
to make this happening with RRD data.

How can I add a new RRD point programatically
Thanks,



Subject: Look at the rrdupdate CLI -
Author: [Not Specified]
Posted: 2015-10-20 07:00

Look at the rrdupdate CLI - however unless you're updating that RRD file at the periodic time intervals it expects you will probably have poor results. Also keep in mind that since RRD averages, a single datapoint created by you will disappear from a graph in about a week's time using the zenoss standard RRD configs.



Subject: Thanks a lot, will check it
Author: [Not Specified]
Posted: 2015-10-20 07:12

Thanks a lot, will check it out!



Subject: Hello,
Author: [Not Specified]
Posted: 2015-10-21 00:26

Hello,

I have tried writing the points via zope.component.queryUtility(IDataService).writeRRDValue, but

zope.component.queryUtility(IDataService)

returns "None" even in zendmd.
What am I missing



Subject: Hello,
Author: [Not Specified]
Posted: 2015-10-21 23:12

Hello,

can anyone give me some information how on Earth does it work on ZenOss5 (as there is no RRD anymore)
Thanks,



< Previous
metricshipper source code
  Next
Change credentials
>