Settings
Activation
To activate this feature
Open tools menu

Click on Global settings

Then

Notification types
You have the option to receive notifications in three different ways.
Email
Prior to email report delivery, configuring an SMTP server is necessary.

Webhook
A http POST request is sent to the specified url with a body containing the following fields
{
"event_time": "2022-10-05 10:19:27",
"notification_type": "PROBLEM",
"pg_instance": "server@crm-production",
"check_name": "memory_usage",
"check_state": "CRITICAL",
"message": "Memory usage: 95% used (1730MB/1835MB) [>=95% - CRITICAL]",
"extra_data": {
"value": 96,
"used": 2512,
"total": 3000
}
}
The extra_data
field can contain different fields depending on the check_name
Custom Script
The script must be executable and present on the platform server. It is executed at each notification and receive the following parameters:
Event time
Notification type
PostgreSQL instance
Check name
State
Message
Last updated