Agents and modules¶
Monitoring agents with their custom fields and extended data, the modules of each agent, and the data pushed into the console.
Generated automatically from pandora-cli docs (version 0.9.0, branch develop, commit 4f61789e07). Do not edit by hand; run make cli-ref.
Entities¶
| Entity | Aliases | Commands | Summary |
|---|---|---|---|
agent |
agents |
16 | Monitoring agents |
agent-custom-field |
agent-custom-fields |
5 | Custom field definitions for agents |
agent-extended-data |
agent-extended-datas |
5 | Extended data attached to agents |
agent-secondary-group |
agent-secondary-groups |
3 | Secondary groups of an agent |
monitoring |
— | 1 | Push monitoring data |
module |
modules, agent-module, agent-modules |
10 | Agent modules |
module-alert |
module-alerts |
5 | Alerts assigned to an agent module |
module-alert-action |
module-alert-actions |
5 | Actions fired by an agent module alert |
module-data |
module-datas |
3 | Historical data of an agent module |
module-group |
module-groups |
5 | Module groups |
module-state |
module-states |
2 | Current polling state of agent modules |
module-tag |
module-tags |
4 | Tags attached to an agent module |
module-type |
module-types |
2 | Module types |
agent¶
Monitoring agents
name is generated by the console: a sha256 unless aliasAsName=1, so alias is the value to show a human. Anything that addresses the agent by name (pushed monitoring data, the agent's own reports) must use name, not alias. The agent also needs a serverName matching the node, or the server never processes it.
Aliases: agents
| Command | Method | Path |
|---|---|---|
agent list |
POST | /agent/list |
agent get <idAgent> |
GET | /agent/{idAgent} |
agent create |
POST | /agent |
agent update <idAgent> |
PUT | /agent/{idAgent} |
agent delete <idAgent> |
DELETE | /agent/{idAgent} |
agent status <idAgent> |
GET | /agent/{idAgent}/status |
agent collection list <idAgent> |
POST | /agent/{idAgent}/collection/list |
agent collection add <idAgent> <idCollection> |
POST | /agent/{idAgent}/collection/{idCollection} |
agent collection remove <idAgent> <idCollection> |
DELETE | /agent/{idAgent}/collection/{idCollection} |
agent public-ip list |
POST | /agent/publicIp/list |
agent policy list <idAgent> |
GET | /agent/{idAgent}/policy/list |
agent summary |
GET | /agent/summary |
agent custom-field list <idAgent> |
POST | /agent/{idAgent}/customField/list |
agent custom-field get <idAgent> <idField> |
GET | /agent/{idAgent}/customField/{idField} |
agent custom-field update <idAgent> <idField> |
PUT | /agent/{idAgent}/customField/{idField} |
agent custom-field delete <idAgent> <idField> |
DELETE | /agent/{idAgent}/customField/{idField} |
Fields for --where, --fields and --in: address, alias, criticalCount, disabled, firedCount, idAgent, idGroup, idOs, lastContact, name, normalCount, notinitCount, osImagePath, osName, totalCount, unknownCount, warningCount
--filter additionally accepts every other field of the entity (58 in total).
agent collection add— Only records the assignment in the agent remote configuration; it does not apply the collection. The specification declares an empty request body, so an empty one is sent.
agent summary— Counts the agents of the groups the user can read, from the statistics the server precomputes, so it is not real time.
agent custom-field update— Creates the value when the agent has none for that field. The value travels in the description field of the body. A password-type field accepts null to keep the stored value.
agent-custom-field¶
Custom field definitions for agents
Aliases: agent-custom-fields
| Command | Method | Path |
|---|---|---|
agent-custom-field list |
POST | /agentCustomField/list |
agent-custom-field get <idField> |
GET | /agentCustomField/{idField} |
agent-custom-field create |
POST | /agentCustomField |
agent-custom-field update <idField> |
PUT | /agentCustomField/{idField} |
agent-custom-field delete <idField> |
DELETE | /agentCustomField/{idField} |
Fields for --where, --fields and --in: comboValues, displayOnFront, idField, isLinkEnabled, isPasswordType, name
agent-extended-data¶
Extended data attached to agents
Aliases: agent-extended-datas
| Command | Method | Path |
|---|---|---|
agent-extended-data list |
POST | /agentExtendedData/list |
agent-extended-data get <id> |
GET | /agentExtendedData/{id} |
agent-extended-data create |
POST | /agentExtendedData |
agent-extended-data update <id> |
PUT | /agentExtendedData/{id} |
agent-extended-data delete <id> |
DELETE | /agentExtendedData/{id} |
Fields for --where, --fields and --in: category, id, idAgente, name, timestamp
--filter additionally accepts every other field of the entity (12 in total).
agent-secondary-group¶
Secondary groups of an agent
Aliases: agent-secondary-groups
| Command | Method | Path |
|---|---|---|
agent-secondary-group list <idAgent> |
POST | /agent/{idAgent}/secondaryGroup/list |
agent-secondary-group create <idAgent> |
POST | /agent/{idAgent}/secondaryGroup |
agent-secondary-group delete <idAgent> <idGroup> |
DELETE | /agent/{idAgent}/secondaryGroup/{idGroup} |
Fields for --where, --fields and --in: idAgent, idGroup
--filter additionally accepts every other field of the entity (8 in total).
monitoring¶
Push monitoring data
Create-only; there is nothing to list, read, update or delete.
| Command | Method | Path |
|---|---|---|
monitoring create |
POST | /monitoring |
module¶
Agent modules
create needs a valid idModule and idModuleType pair: idModule is the module origin (1 for an agent module) and the type ids come from module-type list. Otherwise the API answers only "Unsupported module and module type combination", and idModule is read-only on update, so the pair must be right at create time. Pushed monitoring data needs an async type: a generic module stores the value but never computes a status.
Aliases: modules, agent-module, agent-modules
| Command | Method | Path |
|---|---|---|
module list |
POST | /agentModule/list |
module get <idAgentModule> |
GET | /agentModule/{idAgentModule} |
module create |
POST | /agentModule |
module update <idAgentModule> |
PUT | /agentModule/{idAgentModule} |
module delete <idAgentModule> |
DELETE | /agentModule/{idAgentModule} |
module force-check <idAgentModule> |
POST | /agentModule/{idAgentModule}/forceCheck |
module graph <idAgentModule> |
POST | /agentModule/{idAgentModule}/graph |
module policy link <idAgentModule> |
POST | /agentModule/{idAgentModule}/policy/link |
module policy unlink <idAgentModule> |
POST | /agentModule/{idAgentModule}/policy/unlink |
module summary |
GET | /agentModule/summary |
Fields for --where, --fields and --in: apiErrorCodes, apiIgnoreCert, apiJsonq, apiMethod, apiTimeout, cps, cpsInhibit, criticalInstructions, criticalInverse, cronInterval, customId, customInteger1, customInteger2, customString1, customString2, customString3, deletePending, description, disabled, disabledByDowntime, disabledBySafeMode, disabledTypesEvent, dynamicInterval, dynamicMax, dynamicMin, dynamicNext, dynamicTwoTailed, eachFf, extendedInfo, ffTimeout, ffType, flag, historyData, idAgent, idAgentModule, idCategory, idDataTranslation, idExport, idModule, idModuleGroup, idModuleType, idPlugin, idPolicyModule, ignoreUnknown, ipTarget, madeEnabled, max, maxCritical, maxRetries, maxTimeout, maxWarning, min, minCritical, minFfEvent, minFfEventCritical, minFfEventNormal, minFfEventWarning, minWarning, moduleFfInterval, moduleInterval, name, parentModuleId, percentageCritical, percentageWarning, pluginUser, policyAdopted, policyLinked, postProcess, predictionModule, predictionSampleWindow, predictionSamples, predictionThreshold, quiet, quietByDowntime, snmpOid, strCritical, strWarning, tcpPort, tcpRcv, unit, unknownInstructions, warningInstructions, warningInverse, warningTime, wizardLevel
--filter additionally accepts every other field of the entity (103 in total).
module force-check— Marks the module for an immediate asynchronous check; the check itself completes out of band (202 Accepted, no response body). The optional --serverId flag targets a federated node's module from a metaconsole.
module graph— The options (period, graphType, chartType, width, height...) travel in the body. graphType accepts only data or histogram; the line, area and bar styles belong to chartType. The response carries the image base64-encoded in its graph field, not a binary stream.
module summary— Counts the modules of the groups the user can read, from the statistics the server precomputes, so it is not real time.
module-alert¶
Alerts assigned to an agent module
Aliases: module-alerts
| Command | Method | Path |
|---|---|---|
module-alert get <idAgentModule> <idAgentModuleAlert> |
GET | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert} |
module-alert create <idAgentModule> |
POST | /agentModule/{idAgentModule}/alert |
module-alert delete <idAgentModule> <idAgentModuleAlert> |
DELETE | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert} |
module-alert list <idAgentModule> |
POST | /agentModule/{idAgentModule}/alert/list |
module-alert update <idAgentModule> <idAgentModuleAlert> |
PUT | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert} |
Fields for --where, --fields and --in: disabled, disabledByDowntime, forceExecution, idAgentModule, idAgentModuleAlert, idAlertTemplate, idPolicyAlerts, internalCounter, lastFired, lastReference, priority, standby, timesFired
--filter additionally accepts every other field of the entity (19 in total).
module-alert list— With idAgentModule, lists that module's alerts via the per-module route (no request body; the specification declares neither a request body nor a response schema for it, unlike the rest of the API). Without idAgentModule, lists every module alert globally via POST /agentModule/alert/list, which does take a filter body — an empty one is sent when no --set/--from-file is given, so plain listing still works.
module-alert-action¶
Actions fired by an agent module alert
Aliases: module-alert-actions
| Command | Method | Path |
|---|---|---|
module-alert-action get <idAgentModule> <idAgentModuleAlert> <idAgentModuleAlertAction> |
GET | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert}/action/{idAgentModuleAlertAction} |
module-alert-action create <idAgentModule> <idAgentModuleAlert> |
POST | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert}/action |
module-alert-action delete <idAgentModule> <idAgentModuleAlert> <idAgentModuleAlertAction> |
DELETE | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert}/action/{idAgentModuleAlertAction} |
module-alert-action list <idAgentModule> <idAgentModuleAlert> |
POST | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert}/action/list |
module-alert-action update <idAgentModule> <idAgentModuleAlert> <idAgentModuleAlertAction> |
PUT | /agentModule/{idAgentModule}/alert/{idAgentModuleAlert}/action/{idAgentModuleAlertAction} |
Fields for --where, --fields and --in: firesMax, firesMin, idAgentModuleAlert, idAgentModuleAlertAction, idAlertAction, lastExecution, moduleActionThreshold, recovered
--filter additionally accepts every other field of the entity (13 in total).
module-alert-action list— The specification declares neither a request body nor a response schema for this /list (unlike the rest of the API); modelled as a plain list envelope pending live verification.
module-data¶
Historical data of an agent module
Aliases: module-datas
| Command | Method | Path |
|---|---|---|
module-data list <idAgentModule> |
POST | /agentModule/{idAgentModule}/agentModuleData/list |
module-data get <idAgentModule> <utimestamp> |
GET | /agentModule/{idAgentModule}/agentModuleData/{utimestamp} |
module-data list-uncompressed <idAgentModule> |
POST | /agentModule/{idAgentModule}/agentModuleData/uncompressed/list |
Fields for --where, --fields and --in: data, idAgentModule, utimestamp
--filter additionally accepts every other field of the entity (10 in total).
module-data list-uncompressed— A second /list under the same tag, outside the plain-/list convention; its filter body takes fromUtimestamp/toUtimestamp/ period/sliceSize instead of the entity's FilterAbstract shape.
module-group¶
Module groups
Aliases: module-groups
| Command | Method | Path |
|---|---|---|
module-group list |
POST | /moduleGroup/list |
module-group get <idModuleGroup> |
GET | /moduleGroup/{idModuleGroup} |
module-group create |
POST | /moduleGroup |
module-group update <idModuleGroup> |
PUT | /moduleGroup/{idModuleGroup} |
module-group delete <idModuleGroup> |
DELETE | /moduleGroup/{idModuleGroup} |
Fields for --where, --fields and --in: idModuleGroup, name
--filter additionally accepts every other field of the entity (7 in total).
module-state¶
Current polling state of agent modules
Aliases: module-states
| Command | Method | Path |
|---|---|---|
module-state list |
POST | /agentModuleState/list |
module-state get <idAgentModule> |
GET | /agentModule/{idAgentModule}/agentModuleState |
Fields for --where, --fields and --in: currentInterval, data, ffCritical, ffNormal, ffStartUtimestamp, ffWarning, idAgent, idAgentModule, idAgentModuleState, knownStatus, lastDynamicUpdate, lastError, lastExecutionTry, lastKnownStatus, lastStatus, lastStatusChange, lastTry, lastUnknownUpdate, runningBy, status, statusChanges, timestamp, utimestamp, warningCount
--filter additionally accepts every other field of the entity (29 in total).
module-state get— Scoped by idAgentModule, not by idAgentModuleState: the API has no {id} route for this tag, so this is not thegetverb convention.
module-tag¶
Tags attached to an agent module
Aliases: module-tags
| Command | Method | Path |
|---|---|---|
module-tag list <idAgentModule> |
POST | /agentModule/{idAgentModule}/tag/list |
module-tag get <idAgentModule> <idTag> |
GET | /agentModule/{idAgentModule}/tag/{idTag} |
module-tag create <idAgentModule> |
POST | /agentModule/{idAgentModule}/tag |
module-tag delete <idAgentModule> <idTag> |
DELETE | /agentModule/{idAgentModule}/tag/{idTag} |
Fields for --where, --fields and --in: idAgentModule, idPolicyModule, idTag
--filter additionally accepts every other field of the entity (8 in total).
module-type¶
Module types
Read-only; the API publishes no create, update or delete.
Aliases: module-types
| Command | Method | Path |
|---|---|---|
module-type list |
POST | /moduleType/list |
module-type get <idModuleType> |
GET | /moduleType/{idModuleType} |
Fields for --where, --fields and --in: category, dataType, description, icon, idModuleType, name
--filter additionally accepts every other field of the entity (11 in total).