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 |