Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -5,12 +5,13 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* Used keys:
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, CONDITIONS, METRICS, DURATION,
* ALERT_STATE, ALERT_STATE_NAME, ALERT_URL, ALERT_MESSAGE,
* CONDITIONS, METRICS, DURATION,
* ENTITY_LINK, ENTITY_DESCRIPTION, ENTITY_GRAPHS,
* DEVICE_LINK, DEVICE_HARDWARE, DEVICE_OS, DEVICE_LOCATION, DEVICE_UPTIME
*/
@ -94,7 +95,7 @@
<body>
<table class="table box box-solid">
<tbody>
<tr class="{{ALERT_STATE}}"><td class="state-marker"></td><td style="padding: 10px;" class="header">{{ALERT_STATE}}</td><td><a style="float: right;" href="{{{ALERT_URL}}}">Modify</a></td></tr>
<tr class="{{ALERT_STATE}}"><td class="state-marker"></td><td style="padding: 10px;" class="header">{{ALERT_STATE_NAME}}</td><td><a style="float: right;" href="{{{ALERT_URL}}}">Modify</a></td></tr>
<tr><td colspan=2><strong>Alert</strong></td><td class="{{ALERT_STATE}}"><strong>{{ALERT_MESSAGE}}</strong></td></tr>
{{#ENTITY_LINK}}
<tr><td colspan=2><strong>Entity</strong></td><td><strong>{{{ENTITY_LINK}}}</strong></td></tr>
@ -118,5 +119,8 @@
{{/ENTITY_GRAPHS}}
</tbody>
</table>
{{{FOOTER}}}
</body>
</html>

View File

@ -5,17 +5,17 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* Used keys:
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, CONDITIONS, METRICS, DURATION,
* ALERT_STATE_NAME, ALERT_URL, ALERT_MESSAGE, CONDITIONS, METRICS, DURATION,
* ENTITY_NAME, ENTITY_DESCRIPTION,
* DEVICE_HOSTNAME, DEVICE_HARDWARE, DEVICE_OS, DEVICE_LOCATION, DEVICE_UPTIME
*/
------------------------------------
{{ALERT_STATE}}
{{ALERT_STATE_NAME}}
{{ALERT_MESSAGE}}
------------------------------------
{{#ENTITY_NAME}}
@ -33,8 +33,11 @@ Duration: {{DURATION}}
------------------------------------
Device: {{DEVICE_HOSTNAME}}{{#DEVICE_DESCRIPTION}} ({{DEVICE_DESCRIPTION}}){{/DEVICE_DESCRIPTION}}
Hardware: {{DEVICE_HARDWARE}}
OS: {{DEVICE_OS}}
Location: {{DEVICE_LOCATION}}
Uptime: {{DEVICE_UPTIME}}
------------------------------------
{{{FOOTER}}}

View File

@ -5,7 +5,7 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2023 Observium Limited
*
*/
/**

View File

@ -5,17 +5,17 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* https://core.telegram.org/bots/api#sendmessage
* Used keys:
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, DURATION,
* ALERT_STATE_NAME, ALERT_URL, ALERT_MESSAGE, DURATION,
* ENTITY_NAME, ENTITY_DESCRIPTION,
* DEVICE_HOSTNAME, DEVICE_UPTIME
*/
*{{ALERT_STATE}} : {{ALERT_MESSAGE}}*
*{{ALERT_STATE_NAME}} : {{ALERT_MESSAGE}}*
_{{ALERT_TIMESTAMP}}_
{{#ENTITY_NAME}}

View File

@ -0,0 +1,40 @@
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* Used keys:
* ALERT_URL, ALERT_MESSAGE, DURATION,
* ENTITY_NAME, ENTITY_DESCRIPTION,
* DEVICE_HOSTNAME, DEVICE_UPTIME
*/
//{{ALERT_TIMESTAMP}}
{{#ENTITY_NAME}}
Entity: {{ENTITY_NAME}}
{{/ENTITY_NAME}}
{{#ENTITY_DESCRIPTION}}
Description: {{ENTITY_DESCRIPTION}}
{{/ENTITY_DESCRIPTION}}
// For syslog:
{{#SYSLOG_MESSAGE}}
Message: {{SYSLOG_MESSAGE}}
{{/SYSLOG_MESSAGE}}
{{#CONDITIONS}}
Conditions: {{{CONDITIONS}}}
{{/CONDITIONS}}
Metrics: {{METRICS}}
Duration: {{DURATION}}
Device: {{DEVICE_HOSTNAME}}{{#DEVICE_DESCRIPTION}} ({{DEVICE_DESCRIPTION}}){{/DEVICE_DESCRIPTION}}
Location: {{DEVICE_LOCATION}}
Device Uptime: {{DEVICE_UPTIME}}
//More information: {{ALERT_URL}}

View File

@ -0,0 +1,43 @@
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2023 Observium Limited
*
*/
/**
* HTML formatting style: https://pushover.net/api#html
* Supports only numeric html entities (&nbsp; == &#160;)
*/
// Keep more actual information in first 2 lines
{{#ALERT_EMOJI}}{{{ALERT_EMOJI}}}&#160;{{/ALERT_EMOJI}}<strong><a href="{{{ALERT_URL}}}">{{ALERT_MESSAGE}}</a></strong>
//<b>{{ALERT_STATE_NAME}} :</b> {{ALERT_MESSAGE}} (<a href="{{{ALERT_URL}}}">Modify</a>)
{{#ENTITY_LINK}}
<b>Entity:</b> <strong>{{{ENTITY_LINK}}}</strong>
{{/ENTITY_LINK}}
<em>{{ALERT_TIMESTAMP}}</em>
{{#ENTITY_DESCRIPTION}}
<b>Description:</b> {{ENTITY_DESCRIPTION}}
{{/ENTITY_DESCRIPTION}}
// For syslog:
{{#SYSLOG_MESSAGE}}
<b>Message:</b> {{SYSLOG_MESSAGE}}
{{/SYSLOG_MESSAGE}}
// Common alerts:
{{^SYSLOG_MESSAGE}}
{{#CONDITIONS}}
<b>Conditions:</b> {{{CONDITIONS}}}
{{/CONDITIONS}}
<b>Metrics:</b> {{{METRICS}}}
{{/SYSLOG_MESSAGE}}
//<b>Duration:</b> {{DURATION}}
<b>Device:</b> <strong>{{{DEVICE_LINK}}}</strong>{{#DEVICE_DESCRIPTION}} ({{DEVICE_DESCRIPTION}}){{/DEVICE_DESCRIPTION}}
<b>Location:</b> {{DEVICE_LOCATION}}
<b>Device Uptime:</b> {{DEVICE_UPTIME}}

View File

@ -5,12 +5,12 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* Used keys:
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, DURATION,
* ALERT_URL, ALERT_MESSAGE, DURATION,
* ENTITY_NAME, ENTITY_DESCRIPTION,
* DEVICE_HOSTNAME, DEVICE_UPTIME
*/

View File

@ -5,7 +5,7 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
@ -14,7 +14,7 @@
*/
// Keep more actual information in first 2 lines
{{#ALERT_EMOJI}}{{{ALERT_EMOJI}}}&#160;{{/ALERT_EMOJI}}<strong><a href="{{{ALERT_URL}}}">{{ALERT_MESSAGE}}</a></strong>
//<b>{{ALERT_STATE}} :</b> {{ALERT_MESSAGE}} (<a href="{{{ALERT_URL}}}">Modify</a>)
//<b>{{ALERT_STATE_NAME}} :</b> {{ALERT_MESSAGE}} (<a href="{{{ALERT_URL}}}">Modify</a>)
{{#ENTITY_LINK}}
<b>Entity:</b> <strong>{{{ENTITY_LINK}}}</strong>

View File

@ -5,18 +5,18 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* https://core.telegram.org/bots/api#sendmessage
* Used keys:
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, DURATION,
* ALERT_STATE_NAME, ALERT_URL, ALERT_MESSAGE, DURATION,
* ENTITY_NAME, ENTITY_DESCRIPTION,
* DEVICE_HOSTNAME, DEVICE_UPTIME
*/
{{#ALERT_EMOJI}}{{{ALERT_EMOJI}}} {{/ALERT_EMOJI}}{{ALERT_TIMESTAMP}}
{{ALERT_STATE}} : {{ALERT_MESSAGE}}
{{ALERT_STATE_NAME}} : {{ALERT_MESSAGE}}
{{#ENTITY_NAME}}
Entity: {{ENTITY_NAME}}

View File

@ -5,16 +5,16 @@
*
* @package observium
* @subpackage templates
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2024 Observium Limited
*
*/
/**
* Used keys:
* ALERT_STATE, ALERT_URL, ALERT_MESSAGE, DURATION,
* ALERT_STATE_NAME, ALERT_URL, ALERT_MESSAGE, DURATION,
* ENTITY_NAME, ENTITY_DESCRIPTION,
* DEVICE_HOSTNAME, DEVICE_UPTIME
*/
//*{{ALERT_STATE}} : {{ALERT_MESSAGE}}*
//*{{ALERT_STATE_NAME}} : {{ALERT_MESSAGE}}*
//_{{ALERT_TIMESTAMP}}_
//
{{#ENTITY_NAME}}

View File

@ -6,5 +6,5 @@
"notification_added" : 1600532824,
"notification_lifetime" : 300,
"notification_entry" : "{\"alert_table_id\":\"9827\",\"alert_test_id\":\"12\",\"device_id\":\"344\",\"entity_type\":\"device\",\"entity_id\":\"344\",\"alert_assocs\":\"\",\"delay\":\"0\",\"ignore_until\":null,\"ignore_until_ok\":\"0\",\"last_checked\":\"1600532823\",\"last_changed\":\"1600532823\",\"last_recovered\":\"1600531670\",\"last_ok\":\"1600532555\",\"last_failed\":\"1600532823\",\"has_alerted\":\"0\",\"last_message\":\"Checks failed\",\"alert_status\":\"0\",\"last_alerted\":\"0\",\"state\":\"{\\\"metrics\\\":{\\\"device_status\\\":\\\"0\\\"},\\\"failed\\\":[{\\\"metric\\\":\\\"device_status\\\",\\\"condition\\\":\\\"equals\\\",\\\"value\\\":\\\"0\\\"}]}\",\"count\":\"1\"}",
"message_tags" : "{\"ALERT_STATE\":\"ALERT\",\"ALERT_EMOJI\":\"&#x1F525;\",\"ALERT_EMOJI_NAME\":\"fire\",\"ALERT_STATUS\":\"0\",\"ALERT_SEVERITY\":\"Critical\",\"ALERT_COLOR\":\"D94640\",\"ALERT_URL\":\"https:\\/\\/observium.test\\/device\\/device=344\\/tab=alert\\/alert_entry=9827\\/\",\"ALERT_UNIXTIME\":1600532824,\"ALERT_TIMESTAMP\":\"2020-09-19 19:27:04 +03:00\",\"ALERT_TIMESTAMP_RFC2822\":\"Sat, 19 Sep 2020 19:27:04 +0300\",\"ALERT_TIMESTAMP_RFC3339\":\"2020-09-19T19:27:04+03:00\",\"ALERT_ID\":\"9827\",\"ALERT_MESSAGE\":\"up\\/down\",\"CONDITIONS\":\"device_status equals 0 (0)\",\"METRICS\":\"device_status = 0\",\"DURATION\":\"4m 29s (2020-09-19 19:22:35)\",\"ENTITY_URL\":\"https:\\/\\/observium.test\\/device\\/device=344\\/\",\"ENTITY_LINK\":\"<a href=\\\"https:\\/\\/observium.test\\/device\\/device=344\\/\\\" class=\\\"entity-popup red\\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu<\\/a>\",\"ENTITY_NAME\":\"cyberpower-pdu.test\",\"ENTITY_ID\":\"344\",\"ENTITY_TYPE\":\"device\",\"ENTITY_DESCRIPTION\":null,\"DEVICE_HOSTNAME\":\"cyberpower-pdu.test\",\"DEVICE_SYSNAME\":\"pdu41003\",\"DEVICE_DESCRIPTION\":null,\"DEVICE_ID\":\"344\",\"DEVICE_URL\":\"https:\\/\\/observium.test\\/device\\/device=344\\/\",\"DEVICE_LINK\":\"<a href=\\\"https:\\/\\/observium.test\\/device\\/device=344\\/\\\" class=\\\"entity-popup red\\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu.test<\\/a>\",\"DEVICE_HARDWARE\":\"PDU41003\",\"DEVICE_OS\":\"CyberPower PDU 1.1.0\",\"DEVICE_TYPE\":\"power\",\"DEVICE_LOCATION\":\"Server Room\",\"DEVICE_UPTIME\":\"Down (PING) 4m 29s\",\"DEVICE_REBOOTED\":\"2020-09-19 12:23:53\",\"TITLE\":\"ALERT: [cyberpower-pdu.test] [device] up\\/down\"}"
"message_tags" : "{\"ALERT_STATE\":\"ALERT\",\"ALERT_STATE_NAME\":\"ALARM\",\"ALERT_EMOJI\":\"&#x1F525;\",\"ALERT_EMOJI_NAME\":\"fire\",\"ALERT_STATUS\":\"0\",\"ALERT_STATUS_CUSTOM\":\"100\",\"ALERT_SEVERITY\":\"Critical\",\"ALERT_COLOR\":\"D94640\",\"ALERT_URL\":\"https:\\/\\/observium.test\\/device\\/device=344\\/tab=alert\\/alert_entry=9827\\/\",\"ALERT_UNIXTIME\":1600532824,\"ALERT_TIMESTAMP\":\"2020-09-19 19:27:04 +03:00\",\"ALERT_TIMESTAMP_RFC2822\":\"Sat, 19 Sep 2020 19:27:04 +0300\",\"ALERT_TIMESTAMP_RFC3339\":\"2020-09-19T19:27:04+03:00\",\"ALERT_ID\":\"9827\",\"ALERT_MESSAGE\":\"up\\/down\",\"CONDITIONS\":\"device_status equals 0 (0)\",\"METRICS\":\"device_status = 0\",\"DURATION\":\"4m 29s (2020-09-19 19:22:35)\",\"ENTITY_URL\":\"https:\\/\\/observium.test\\/device\\/device=344\\/\",\"ENTITY_LINK\":\"<a href=\\\"https:\\/\\/observium.test\\/device\\/device=344\\/\\\" class=\\\"entity-popup red\\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu<\\/a>\",\"ENTITY_NAME\":\"cyberpower-pdu.test\",\"ENTITY_ID\":\"344\",\"ENTITY_TYPE\":\"device\",\"ENTITY_DESCRIPTION\":null,\"DEVICE_HOSTNAME\":\"cyberpower-pdu.test\",\"DEVICE_SYSNAME\":\"pdu41003\",\"DEVICE_DESCRIPTION\":null,\"DEVICE_ID\":\"344\",\"DEVICE_URL\":\"https:\\/\\/observium.test\\/device\\/device=344\\/\",\"DEVICE_LINK\":\"<a href=\\\"https:\\/\\/observium.test\\/device\\/device=344\\/\\\" class=\\\"entity-popup red\\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu.test<\\/a>\",\"DEVICE_HARDWARE\":\"PDU41003\",\"DEVICE_OS\":\"CyberPower PDU 1.1.0\",\"DEVICE_TYPE\":\"power\",\"DEVICE_LOCATION\":\"Server Room\",\"DEVICE_UPTIME\":\"Down (PING) 4m 29s\",\"DEVICE_REBOOTED\":\"2020-09-19 12:23:53\",\"TITLE\":\"ALERT: [cyberpower-pdu.test] [device] up\\/down\"}"
}

View File

@ -6,5 +6,5 @@
"notification_added": 1600533143,
"notification_lifetime": 300,
"notification_entry": "{\"alert_table_id\":\"9827\",\"alert_test_id\":\"12\",\"device_id\":\"344\",\"entity_type\":\"device\",\"entity_id\":\"344\",\"alert_assocs\":\"\",\"delay\":\"0\",\"ignore_until\":null,\"ignore_until_ok\":\"0\",\"last_checked\":\"1600533142\",\"last_changed\":\"1600533142\",\"last_recovered\":\"1600531670\",\"last_ok\":\"1600533142\",\"last_failed\":\"1600532823\",\"has_alerted\":\"1\",\"last_message\":\"Checks OK\",\"alert_status\":\"1\",\"last_alerted\":\"1600532824\",\"state\":\"{\\\"metrics\\\":{\\\"device_status\\\":\\\"1\\\"}}\",\"count\":\"0\"}",
"message_tags": "{\"ALERT_STATE\":\"RECOVER\",\"ALERT_EMOJI\":\"&#x2705;\",\"ALERT_EMOJI_NAME\":\"white_check_mark\",\"ALERT_STATUS\":\"1\",\"ALERT_SEVERITY\":\"Critical\",\"ALERT_COLOR\":\"F2CA3F\",\"ALERT_URL\":\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/tab=alert\\\/alert_entry=9827\\\/\",\"ALERT_UNIXTIME\":1600533142,\"ALERT_TIMESTAMP\":\"2020-09-19 19:32:22 +03:00\",\"ALERT_TIMESTAMP_RFC2822\":\"Sat, 19 Sep 2020 19:32:22 +0300\",\"ALERT_TIMESTAMP_RFC3339\":\"2020-09-19T19:32:22+03:00\",\"ALERT_ID\":\"9827\",\"ALERT_MESSAGE\":\"up\\\/down\",\"CONDITIONS\":\"\",\"METRICS\":\"device_status = 1\",\"DURATION\":\"0s (2020-09-19 19:32:22)\",\"ENTITY_URL\":\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\",\"ENTITY_LINK\":\"<a href=\\\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\\\" class=\\\"entity-popup \\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu<\\\/a>\",\"ENTITY_NAME\":\"cyberpower-pdu.test\",\"ENTITY_ID\":\"344\",\"ENTITY_TYPE\":\"device\",\"ENTITY_DESCRIPTION\":null,\"DEVICE_HOSTNAME\":\"cyberpower-pdu.test\",\"DEVICE_SYSNAME\":\"pdu41003\",\"DEVICE_DESCRIPTION\":null,\"DEVICE_ID\":\"344\",\"DEVICE_URL\":\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\",\"DEVICE_LINK\":\"<a href=\\\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\\\" class=\\\"entity-popup \\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu.test<\\\/a>\",\"DEVICE_HARDWARE\":\"PDU41003\",\"DEVICE_OS\":\"CyberPower PDU 1.1.0\",\"DEVICE_TYPE\":\"power\",\"DEVICE_LOCATION\":\"Server Room\",\"DEVICE_UPTIME\":\"7h 8m 1s\",\"DEVICE_REBOOTED\":\"2020-09-19 12:23:53\",\"TITLE\":\"RECOVER: [cyberpower-pdu.test] [device] up\\\/down\"}"
"message_tags": "{\"ALERT_STATE\":\"RECOVER\",\"ALERT_STATE_NAME\":\"CLEAR\",\"ALERT_EMOJI\":\"&#x2705;\",\"ALERT_EMOJI_NAME\":\"white_check_mark\",\"ALERT_STATUS\":\"1\",\"ALERT_STATUS_CUSTOM\":\"200\",\"ALERT_SEVERITY\":\"Critical\",\"ALERT_COLOR\":\"F2CA3F\",\"ALERT_URL\":\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/tab=alert\\\/alert_entry=9827\\\/\",\"ALERT_UNIXTIME\":1600533142,\"ALERT_TIMESTAMP\":\"2020-09-19 19:32:22 +03:00\",\"ALERT_TIMESTAMP_RFC2822\":\"Sat, 19 Sep 2020 19:32:22 +0300\",\"ALERT_TIMESTAMP_RFC3339\":\"2020-09-19T19:32:22+03:00\",\"ALERT_ID\":\"9827\",\"ALERT_MESSAGE\":\"up\\\/down\",\"CONDITIONS\":\"\",\"METRICS\":\"device_status = 1\",\"DURATION\":\"0s (2020-09-19 19:32:22)\",\"ENTITY_URL\":\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\",\"ENTITY_LINK\":\"<a href=\\\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\\\" class=\\\"entity-popup \\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu<\\\/a>\",\"ENTITY_NAME\":\"cyberpower-pdu.test\",\"ENTITY_ID\":\"344\",\"ENTITY_TYPE\":\"device\",\"ENTITY_DESCRIPTION\":null,\"DEVICE_HOSTNAME\":\"cyberpower-pdu.test\",\"DEVICE_SYSNAME\":\"pdu41003\",\"DEVICE_DESCRIPTION\":null,\"DEVICE_ID\":\"344\",\"DEVICE_URL\":\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\",\"DEVICE_LINK\":\"<a href=\\\"https:\\\/\\\/observium.test\\\/device\\\/device=344\\\/\\\" class=\\\"entity-popup \\\" data-eid=\\\"344\\\" data-etype=\\\"device\\\">cyberpower-pdu.test<\\\/a>\",\"DEVICE_HARDWARE\":\"PDU41003\",\"DEVICE_OS\":\"CyberPower PDU 1.1.0\",\"DEVICE_TYPE\":\"power\",\"DEVICE_LOCATION\":\"Server Room\",\"DEVICE_UPTIME\":\"7h 8m 1s\",\"DEVICE_REBOOTED\":\"2020-09-19 12:23:53\",\"TITLE\":\"RECOVER: [cyberpower-pdu.test] [device] up\\\/down\"}"
}

View File

@ -6,5 +6,5 @@
"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\":\"&#x1F535;\",\"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\"}"
"message_tags": "{\"ALERT_STATE\":\"SYSLOG\",\"ALERT_STATE_NAME\":\"RSYSLOG\",\"ALERT_EMOJI\":\"&#x1F535;\",\"ALERT_EMOJI_NAME\":\"large_blue_circle\",\"ALERT_STATUS\":\"0\",\"ALERT_STATUS_CUSTOM\":\"9\",\"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\"}"
}