The collectd API has method for listting the available collectd register objects and to retrieve the values.