Skip to content

Alarms

Retrieve the 20 most recent alarms.

GET /api/alarm?source=SOURCE&limit=LIMIT&tags=LISTOFTAGS
curl -X GET "http://127.0.0.1:8080/api/alarm?tags=dev,op" -u admin:PASSWORD
{
"alarms": [
{
"alarmId": "top_processes_queue_minor",
"alarmType": null,
"src": {
"nodeId": "df637024-3eca-49ea-b524-2d8e5e83c928",
"nodeName": "test@127.0.0.1",
"displayName": "test@127.0.0.1",
"custom": "alarm",
"elarmServer": "wombat"
},
"eventTime": 1657795591000,
"eventId": "{{1657,795591,885181},-576460752303420510}",
"severity": "minor",
"probableCause": "An upper boundary of the message queue length of processeshas been reached. Long message queues are often a symptom of a bottleneck and result in the degradation of throughput, with the system eventually running out of memory.",
"proposedRepairAction": "If it occurs frequently, you should improve your code to remove the bottleneck. Pro tip: Use Wombat's ETOP like process listing to identify the processes with the largest message queue.",
"description": "",
"additionalInformation": "\"Top Processes holding messages in their queues \\n <0.84.0>: 2093 msgs. \\n \\t\\t IF: {erlang,apply,2}, CF: {shell,eval_loop,3} \\n\"",
"correlatedEvents": "[]",
"comments": [],
"trend": null,
"threshold": null,
"state": "new",
"ackInfo": null,
"rawSrc": "{wo_alarm_source,\"df637024-3eca-49ea-b524-2d8e5e83c928\",'test@127.0.0.1',\n alarm,wombat}"
},
{...},
{...}
]
}
Argument Description
source Optional. The src.custom field used for filtering alarms.
limit Optional. Specifies the maximum number of alarms in the response. By default, it is 20.
tags Optional. A comma separated list of tags that overrides the tags set for the user.

An array of alarm objects that are tagged with any of the active tags. The value of eventId can be used to retrieve details of specific alarms.

Retrieve the 20 most recent alarms for a specified event.

GET /api/alarm/previous/all?eid=EVENT_ID&source=SOURCE&limit=LIMIT&tags=LISTOFTAGS
curl -X GET "http://127.0.0.1:8080/api/alarm/previous/all?eid=%7B1406,873289,745642%7D"

See “Get all alarms”, above.

Argument Description
eid Required. The event’s identifier (including curly brackets).
source Optional. The src.custom field used for filtering alarms.
limit Optional. Specifies the maximum number of alarms in the response. By default, it is 20.
tags Optional. A comma separated list of tags that overrides the tags set for the user.

See “Get all alarms”, above.

Retrieve the 20 most recent alarms for a specified node.

GET /api/alarm/node/NODE_ID?source=SOURCE&limit=LIMIT&tags=LISTOFTAGS
curl -X GET "http://127.0.0.1:8080/api/alarm/node/3fa56f92-3195-401b-93a8-7bc43e54d66f" \
-u admin:PASSWORD

See “Get all alarms”, above.

Argument Description
node id Required. The node’s identifier
source Optional. The src.custom field used for filtering alarms.
limit Optional. Specifies the maximum number of alarms in the response. By default, it is 20.
tags Optional. A comma separated list of tags that overrides the tags set for the user.

See “Get all alarms”, above.

Retrieve the 20 most recent alarms for a specified event on a node.

GET /api/alarm/previous/node/NODE_ID?eid=EVENT_ID&source=SOURCE&limit=LIMIT&tags=LISTOFTAGS
curl -X GET "http://127.0.0.1:8080/api/alarm/previous/node/5b16ec55-56a3-4430-b174-c996897ccd14?eid=%7B1406,873289,745642%7D"

See “Get all alarms”, above.

Argument Description
node id Required. The node’s identifier
eid Required. The event’s identifier (including curly brackets).
source Optional. The src.custom field used for filtering alarms.
limit Optional. Specifies the maximum number of alarms in the response. By default, it is 20.
tags Optional. A comma separated list of tags that overrides the tags set for the user.

See “Get all alarms”, above.

Retrieve the 20 most recent alarms for all the nodes in a specified node family.

GET /api/alarm/node-family/NODE_FAMILY_ID?source=SOURCE&limit=LIMIT&tags=LISTOFTAGS
curl -X GET "http://127.0.0.1:8080/api/alarm/node-family/93be4f01-dae6-49b0-9608-4552f841a720" \
-u admin:PASSWORD

See “Get all alarms”, above.

Argument Description
node family id Required. The node family’s identifier
source Optional. The src.custom field used for filtering alarms.
limit Optional. Specifies the maximum number of alarms in the response. By default, it is 20.
tags Optional. A comma separated list of tags that overrides the tags set for the user.

See “Get all alarms”, above.

Get alarms for a node family from a specified ID

Section titled “Get alarms for a node family from a specified ID”

Retrieve the 20 most recent alarms for a specified event on the nodes in a node family.

GET /api/alarm/previous/node-family/NODE_FAMILY_ID?eid=EVENT_ID&source=SOURCE&limit=LIMIT&tags=LISTOFTAGS
curl -X GET "http://127.0.0.1:8080/api/alarm/previous/node-family/93be4f01-dae6-49b0-9608-4552f841a720?eid=%7B1406,873289,745642%7D"

See “Get all alarms”, above.

Argument Description
node family id Required. The node family’s identifier
eid Required. The event’s identifier (including curly brackets).
source Optional. The src.custom field used for filtering alarms.
limit Optional. Specifies the maximum number of alarms in the response. By default, it is 20.
tags Optional. A comma separated list of tags that overrides the tags set for the user.

See “Get all alarms”, above.

Retrieve all alarm sources that can be used for filtering alarms.

GET /api/alarm/source
curl -X GET "http://127.0.0.1:8080/api/alarm/source" -u admin:PASSWORD
{
"sources" : [
"node_level"
]
}

None.

An array of alarm sources. These are the same values that may turn up in the src.custom field of alarm objects.

Except for the default "node_level" source in the current version of WombatOAM alarm sources are not returned if they don’t have any active alarms.

Retrieve alarm sources for a node that can be used for filtering alarms.

GET /api/alarm/source/node/NODE_ID
curl -X GET "http://127.0.0.1:8080/api/alarm/source/node/5b16ec55-56a3-4430-b174-c996897ccd14" \
-u admin:PASSWORD

See “Get all alarm sources” above.

Argument Description
node id Required. The node’s identifier

See “Get all alarm sources” above.

See “Get all alarm sources” above.

Retrieve alarm sources for a node family that can be used for filtering alarms.

GET /api/alarm/source/node-family/NODE_FAMILY_ID
curl -X GET "http://127.0.0.1:8080/api/alarm/source/node-family/93be4f01-dae6-49b0-9608-4552f841a720" \
-u admin:PASSWORD

See “Get all alarm sources” above.

Argument Description
node family id Required. The node family’s identifier

See “Get all alarm sources” above.

See “Get all alarm sources” above.

Provide acknowledgement of an alarm.

POST /api/alarm/acknowledge
{
"userId": "USER_ID",
"alarmId": "ALARM_ID",
"alarmSrc": "RAW_SRC"
}
curl -X POST "http://127.0.0.1:8080/api/alarm/acknowledge" \
-H "Content-Type: application/json" \
-d "{\"userId\":\"administrator\", \"alarmId\":\"system_memory_high_watermark\", \"alarmSrc\":\"{wo_alarm_source,\\\"5b16ec55-56a3-4430-b174-c996897ccd14\\\",'wo_test_2@127.0.0.1',\\n node_level,wombat}\"}" \
-u admin:PASSWORD
{}
Argument Description
userId Required. The identifier of the user sending the acknowledgement
alarmId Required. The value of alarmId in the alarm object.
alarmSrc Required. The value of rawSrc in the alarm object.

An empty object. If successful, the HTTP response is 200 OK. In the alarm object, state changes to “acknowledged”, and ackInfo is updated with user and time.

Remove the acknowledgement for an alarm, so that it is shown as new.

POST /api/alarm/unacknowledge
{
"userId": "USER_ID",
"alarmId": "ALARM_ID",
"alarmSrc": "RAW_SRC"
}
curl -X POST "http://127.0.0.1:8080/api/alarm/unacknowledge" \
-H "Content-Type: application/json" \
-d "{\"userId\":\"administrator1\",\"alarmId\":\"system_memory_high_watermark\",\"alarmSrc\":\"{wo_alarm_source,\\\"5b16ec55-56a3-4430-b174-c996897ccd14\\\",'wo_test_2@127.0.0.1',\\n node_level,wombat \
-u admin:PASSWORD
{}
Argument Description
userId Required. The identifier of the user sending the acknowledgement
alarmId Required. The value of alarmId in the alarm object.
alarmSrc Required. The value of rawSrc in the alarm object.

An empty object. If successful, the HTTP response is 200 OK. In the alarm object, state changes to “new”.

Clear an alarm, removing it from the list of alarms.

POST /api/alarm/clear
{
"userId": "USER_ID",
"alarmId": "ALARM_ID",
"alarmSrc": "RAW_SRC"
}
curl -X POST "http://127.0.0.1:8080/api/alarm/clear" \
-H "Content-Type: application/json" \
-d "{\"userId\":\"administrator1\",\"alarmId\":\"system_memory_high_watermark\",\"alarmSrc\":\"{wo_alarm_source,\\\"5b16ec55-56a3-4430-b174-c996897ccd14\\\",'wo_test_2@127.0.0.1',\\n node_level,wombat}\"}" \
-u admin:PASSWORD
{}
Argument Description
userId Required. The identifier of the user sending the acknowledgement
alarmId Required. The value of alarmId in the alarm object.
alarmSrc Required. The value of rawSrc in the alarm object.

An empty object. If successful, the HTTP response is 200 OK.

Add a comment to the details of a specified alarm.

POST /api/alarm/comment
{
"userId": "USER_ID",
"alarmId": "ALARM_ID",
"alarmSrc": "RAW_SRC",
"comment": "MESSAGE"
}
curl -X POST "http://127.0.0.1:8080/api/alarm/comment" \
-H "Content-Type: application/json" \
-d "{\"userId\": \"administrator\", \"alarmId\": \"system_memory_high_watermark\", \"alarmSrc\": \"{wo_alarm_source,\\\"298548c9-f5f8-464d-9a2c-07d494c3ecd4\\\",'wombat@127.0.0.1',\\n node_level,wombat}\", \"comment\": \"Support has been notified.\"}" \
-u admin:PASSWORD
{}
Argument Description
userId Required. The identifier of the user sending the acknowledgement
alarmId Required. The value of alarmId in the alarm object.
alarmSrc Required. The value of rawSrc in the alarm object.
comment Required. The text that will be included as a comment.

An empty object. In the alarm object, an item is added to comments, with the properties user, time, and text.