Skip to content

Commit f715077

Browse files
committed
feat: new trigger for no data for pgsql
1 parent a811d7f commit f715077

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mamonsu/plugins/pgsql/health.py

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def triggers(self, template):
7676
'{HOSTNAME} ({ITEM.LASTVALUE})',
7777
'expression': '{#TEMPLATE:' + self.right_type(self.key_cache, "hit") + '.last()}<' +
7878
str(self.plugin_config('cache'))
79+
}) + template.trigger({
80+
'name': 'PostgreSQL no ping from PostgreSQL for 1 minute '
81+
'{HOSTNAME} ',
82+
'expression': '{#TEMPLATE:' + self.right_type(self.key_ping) + '.nodata(90)}=1'
7983
})
8084
return result
8185

0 commit comments

Comments
 (0)