File tree Expand file tree Collapse file tree 1 file changed +40
-4
lines changed Expand file tree Collapse file tree 1 file changed +40
-4
lines changed Original file line number Diff line number Diff line change @@ -3907,7 +3907,41 @@ Default config:
3907
3907
3908
3908
* Replication metrics* use information from ` pg_replication_slots ` .
3909
3909
3910
- 1 . ** Non-active Replication Slots**
3910
+
3911
+ 1 . ** Server Mode**
3912
+
3913
+ Zabbix item:
3914
+ <table >
3915
+ <tr >
3916
+ <th>Name</th>
3917
+ <td>PostgreSQL: server mode</td>
3918
+ </tr >
3919
+ <tr >
3920
+ <th>Key</th>
3921
+ <td>pgsql.server_mode</td>
3922
+ </tr >
3923
+ <tr >
3924
+ <th>Type</th>
3925
+ <td>Text</td>
3926
+ </tr >
3927
+ <tr >
3928
+ <th>Units</th>
3929
+ <td></td>
3930
+ </tr >
3931
+ <tr >
3932
+ <th>Delta</th>
3933
+ <td>As Is</td>
3934
+ </tr >
3935
+ <tr >
3936
+ <th>Supported Version</th>
3937
+ <td>9.5+</td>
3938
+ </tr >
3939
+ </table >
3940
+
3941
+ * Server Mode* shows server status as ` MASTER ` or ` STANDBY ` .
3942
+
3943
+
3944
+ 2 . ** Non-active Replication Slots**
3911
3945
3912
3946
Zabbix item:
3913
3947
<table >
@@ -3940,7 +3974,7 @@ Default config:
3940
3974
* Non-active Replication Slots* calculates as count of slots with ` false ` active status.
3941
3975
3942
3976
3943
- 2 . ** Streaming Replication Lag**
3977
+ 3 . ** Streaming Replication Lag**
3944
3978
3945
3979
Zabbix item:
3946
3980
<table >
@@ -4029,9 +4063,11 @@ Default config:
4029
4063
4030
4064
### Triggers
4031
4065
4032
- 1 . ** PostgreSQL number of non-active replication slots on {HOSTNAME} (value={ITEM.LASTVALUE})**
4066
+ 1 . ** PostgreSQL server mode changed on {HOSTNAME} to {ITEM.LASTVALUE}**
4067
+
4068
+ 2 . ** PostgreSQL number of non-active replication slots on {HOSTNAME} (value={ITEM.LASTVALUE})**
4033
4069
4034
- 2 . ** PostgreSQL streaming lag too high on {HOSTNAME} (value={ITEM.LASTVALUE})**
4070
+ 3 . ** PostgreSQL streaming lag too high on {HOSTNAME} (value={ITEM.LASTVALUE})**
4035
4071
Triggers if * PostgreSQL: streaming replication lag* exceeds ` lag_more_than_in_sec ` .
4036
4072
4037
4073
### Temp Files
You can’t perform that action at this time.
0 commit comments