latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

360 Monitoring

Update 360 Monitoring agent polling settings

This function updates agent360 polling settings.

Provide at least one of the following parameters: interval or max_data_span.

The interval parameter sets the individual polling interval for each plugin. If you provide interval without any section filters, the function updates all core (global, agent, data, and execution) and default plugin (cpu, iostat, and network) sections.

The global_sections and plugin_sections parameters are only valid if you provide the interval parameter.

The max_data_span parameter is global. The agent collects metrics from multiple plugins and sends them together as a single batch.

If the requested values already match the current configuration, the function does not make changes or restart the agent360 process.

get/360Monitoring/set_360_agent_polling

Query parameters

global_sectionsstring
Example:global,agent

A comma-separated list of core sections to update.

It must be one of the following:

  • global
  • agent
  • data
  • execution

This parameter only applies to the interval parameter.

intervalinteger
Example:300

The polling interval in seconds. Must be a positive integer.

max_data_spaninteger
Example:120

The maximum number of seconds between batches of metrics sent for analysis. Must be a positive integer.

plugin_sectionsstring
Example:cpu,network

A comma-separated list of plugin sections to update.

Each value must match a plugin section loaded in the agent configuration (for example, cpu, iostat, or network).

This parameter only applies to the interval parameter.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "status": 1
  },
  "metadata": {
    "command": "set_360_agent_polling",
    "namespace": "360Monitoring",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}