Developers API

getCollectdConfig

Fetches the collectd configuration file for the specified host.

The collectd configuration file will contain the hostID and API key needed to submit data to the Metrics service.

Request Parameters

Parameter Data Type Description Required Default
hostid integer The HostID identifying the host being configured Required -

Response Data

Response Variable Data Type Description
errorcode integer Returns an errorcode of 0 if call is successful.
config string The contents of collectd.conf - usually stored in /etc/collectd.conf
Try it out with the API Explorer:

Your API Key

API command to be called

Desired response format

The HostID identifying the host being configured (integer)