Commit version 24.12.13800
This commit is contained in:
@ -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>
|
||||
|
@ -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}}}
|
@ -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
|
||||
*
|
||||
*/
|
||||
/**
|
||||
|
@ -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}}
|
||||
|
40
includes/templates/notification/ntfy_text.tpl
Normal file
40
includes/templates/notification/ntfy_text.tpl
Normal 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}}
|
43
includes/templates/notification/pushover_html.tpl
Normal file
43
includes/templates/notification/pushover_html.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-2023 Observium Limited
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* HTML formatting style: https://pushover.net/api#html
|
||||
* Supports only numeric html entities ( ==  )
|
||||
*/
|
||||
// Keep more actual information in first 2 lines
|
||||
{{#ALERT_EMOJI}}{{{ALERT_EMOJI}}} {{/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}}
|
@ -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
|
||||
*/
|
||||
|
@ -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}}} {{/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>
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
Reference in New Issue
Block a user