commit version 22.12.12447
This commit is contained in:
43
includes/templates/notification/zoom_markdown.tpl
Normal file
43
includes/templates/notification/zoom_markdown.tpl
Normal file
@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage templates
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* Used keys:
|
||||
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, DURATION,
|
||||
* ENTITY_NAME, ENTITY_DESCRIPTION,
|
||||
* DEVICE_HOSTNAME, DEVICE_UPTIME
|
||||
*/
|
||||
//*{{ALERT_STATE}} : {{ALERT_MESSAGE}}*
|
||||
//_{{ALERT_TIMESTAMP}}_
|
||||
//
|
||||
{{#ENTITY_NAME}}
|
||||
*Entity:* <{{ENTITY_URL}}|{{ENTITY_NAME}}>
|
||||
{{/ENTITY_NAME}}
|
||||
{{#ENTITY_DESCRIPTION}}
|
||||
*Description:* {{ENTITY_DESCRIPTION}}
|
||||
{{/ENTITY_DESCRIPTION}}
|
||||
// For syslog:
|
||||
{{#SYSLOG_MESSAGE}}
|
||||
*Message:* {{SYSLOG_MESSAGE}}
|
||||
{{/SYSLOG_MESSAGE}}
|
||||
// Common alerts:
|
||||
{{^SYSLOG_MESSAGE}}
|
||||
{{#CONDITIONS}}
|
||||
*Conditions:* {{{CONDITIONS}}}
|
||||
{{/CONDITIONS}}
|
||||
*Metrics:* {{{METRICS}}}
|
||||
{{/SYSLOG_MESSAGE}}
|
||||
*Duration:* {{DURATION}}
|
||||
|
||||
*Device:* <{{DEVICE_URL}}|{{DEVICE_HOSTNAME}}{{#DEVICE_DESCRIPTION}} ({{DEVICE_DESCRIPTION}}){{/DEVICE_DESCRIPTION}}>
|
||||
*Location:* {{DEVICE_LOCATION}}
|
||||
*Device Uptime:* {{DEVICE_UPTIME}}
|
||||
|
||||
*<{{ALERT_URL}}|More information>*
|
10
includes/templates/test/notification_SYSLOG.json
Normal file
10
includes/templates/test/notification_SYSLOG.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"device_id": "97",
|
||||
"log_id": 1998484,
|
||||
"aca_type": "syslog",
|
||||
"severity": "6",
|
||||
"notification_added": 1657883729,
|
||||
"notification_lifetime": 300,
|
||||
"notification_entry": "{\"host\":\"127.0.0.1\",\"facility\":\"auth\",\"priority\":\"6\",\"level\":\"6\",\"tag\":\"sshd[2933336]\",\"timestamp\":\"2022-07-15 14:15:29\",\"msg\":\"ONU[8:3:UBNTf91a0220] State: Activated->Setup\",\"program\":\"SSHD\",\"msg_orig\":\"ONU[8:3:UBNTf91a0220] State: Activated->Setup\",\"device_id\":\"97\",\"unixtime\":\"1657883729\"}",
|
||||
"message_tags": "{\"ALERT_STATE\":\"SYSLOG\",\"ALERT_EMOJI\":\"🔵\",\"ALERT_EMOJI_NAME\":\"large_blue_circle\",\"ALERT_STATUS\":0,\"ALERT_SEVERITY\":\"Informational\",\"ALERT_COLOR\":\"499CA6\",\"ALERT_URL\":\"https://observium.test/device/device=97/tab=alert/entity_type=syslog/\",\"ALERT_UNIXTIME\":\"1657883729\",\"ALERT_TIMESTAMP\":\"2022-07-15 14:15:29 +03:00\",\"ALERT_TIMESTAMP_RFC2822\":\"Fri, 15 Jul 2022 14:15:29 +0300\",\"ALERT_TIMESTAMP_RFC3339\":\"2022-07-15T14:15:29+03:00\",\"ALERT_ID\":\"4\",\"ALERT_MESSAGE\":\"Test syslog\",\"CONDITIONS\":\"/^ONU.+ Activated-\\\\>Setup/\",\"METRICS\":\"ONU[8:3:UBNTf91a0220] State: Activated->Setup\",\"SYSLOG_RULE\":\"/^ONU.+ Activated-\\\\>Setup/\",\"SYSLOG_MESSAGE\":\"ONU[8:3:UBNTf91a0220] State: Activated->Setup\",\"SYSLOG_PROGRAM\":\"SSHD\",\"SYSLOG_TAG\":\"sshd[2933336]\",\"SYSLOG_FACILITY\":\"auth\",\"DEVICE_HOSTNAME\":\"dev.observium.test\",\"DEVICE_SYSNAME\":\"dev\",\"DEVICE_DESCRIPTION\":null,\"DEVICE_ID\":\"97\",\"DEVICE_URL\":\"https://observium.test/device/device=97/\",\"DEVICE_LINK\":\"<a href=\\\"https://observium.test/device/device=97/tab=alerts/entity_type=syslog/\\\" class=\\\"entity-popup text-nowrap\\\" data-eid=\\\"97\\\" data-etype=\\\"device\\\">dev.observium.test</a>\",\"DEVICE_HARDWARE\":\"KVM Virtual Machine x86 [64bit]\",\"DEVICE_OS\":\"Linux 5.4.0-91-generic (Ubuntu 20.04)\",\"DEVICE_TYPE\":\"server\",\"DEVICE_LOCATION\":\"Test Custom Location\",\"DEVICE_UPTIME\":\"204 days, 22h 11m 36s\",\"DEVICE_REBOOTED\":\"2021-12-22 16:02:46\",\"TITLE\":\"SYSLOG: [dev.observium.test] Test syslog\"}"
|
||||
}
|
Reference in New Issue
Block a user