@@ -3691,7 +3691,8 @@ Default config:
36913691### Replication
36923692
36933693Default config:
3694-   ;  ;  ;  ;  ;  ;  ;  ; lag_more_than_in_sec = 300
3694+   ;  ;  ;  ;  ;  ;  ;  ; lag_more_than_in_sec = 300\
3695+   ;  ;  ;  ;  ;  ;  ;  ; critical_bytes_held_by_non_active_slot = 1073741824 bytes
36953696
36963697### Items
36973698
@@ -3763,6 +3764,37 @@ Default config:
37633764
37643765 * Non-active Replication Slots* calculates as count of slots with ` false ` active status.
37653766
3767+ - ** Bytes Held By Non-active Replication Slots**
3768+
3769+ Zabbix item:
3770+ <table >
3771+ <tr>
3772+ <th>Name</th>
3773+ <td>PostgreSQL Replication: Bytes held by non-active slot {#NON_ACTIVE_SLOT_NAME}</td>
3774+ </tr>
3775+ <tr>
3776+ <th>Key</th>
3777+ <td>pgsql.replication.non_active_slots_discovery[]</td>
3778+ </tr>
3779+ <tr>
3780+ <th>Type</th>
3781+ <td>Numeric (float)</td>
3782+ </tr>
3783+ <tr>
3784+ <th>Units</th>
3785+ <td>Bytes</td>
3786+ </tr>
3787+ <tr>
3788+ <th>Delta</th>
3789+ <td>As Is</td>
3790+ </tr>
3791+ <tr>
3792+ <th>Supported Version</th>
3793+ <td>10+</td>
3794+ </tr>
3795+ </table >
3796+
3797+ * Non-active Replication Slots* calculates as count of slots with ` false ` active status.
37663798
37673799- ** Streaming Replication Lag**
37683800
@@ -3861,12 +3893,40 @@ Default config:
38613893 </tr>
38623894 </table >
38633895
3896+ - ** PostgreSQL Replication: Non-active Slots Discovery**
3897+
3898+ Items:
3899+ <table >
3900+ <tr>
3901+ <th>Name</th>
3902+ <td>PostgreSQL Replication: Bytes held by non-active slot {#NON_ACTIVE_SLOT_NAME}</td>
3903+ </tr>
3904+ <tr>
3905+ <th>Key</th>
3906+ <td>pgsql.replication.non_active_slots_discovery[]</td>
3907+ </tr>
3908+ <tr>
3909+ <th>Type</th>
3910+ <td>Numeric (float)</td>
3911+ </tr>
3912+ <tr>
3913+ <th>Units</th>
3914+ <td>Bytes</td>
3915+ </tr>
3916+ <tr>
3917+ <th>Delta</th>
3918+ <td>As Is</td>
3919+ </tr>
3920+ </table >
3921+
38643922### Triggers
38653923
38663924- ** PostgreSQL Instance: server mode has been changed on {HOSTNAME} to {ITEM.LASTVALUE}**
38673925
38683926- ** PostgreSQL number of non-active replication slots on {HOSTNAME} (value={ITEM.LASTVALUE})**
3869-
3927+ Disabled by default
3928+ - ** PostgreSQL Replication: bytes held by slot {#NON_ACTIVE_SLOT_NAME} is too high (value={ITEM.LASTVALUE})**
3929+ Triggers if * PostgreSQL Replication: Bytes held by non-active slot {#NON_ACTIVE_SLOT_NAME}* exceeds ` critical_bytes_held_by_non_active_slot ` .
38703930- ** PostgreSQL streaming lag too high on {HOSTNAME} (value={ITEM.LASTVALUE})**
38713931 Triggers if * PostgreSQL Replication: Streaming Replication Lag* exceeds ` lag_more_than_in_sec ` .
38723932
0 commit comments