Skip to content

Commit 91eab5c

Browse files
committed
fix: fixed PostgreSQL Uptime trigger function
1 parent 80e285f commit 91eab5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/plugins/pgsql/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def items(self, template, dashboard=False):
9696
def triggers(self, template, dashboard=False):
9797
result = template.trigger({
9898
"name": "PostgreSQL Health: service has been restarted on {HOSTNAME} (uptime={ITEM.LASTVALUE})",
99-
"expression": "{#TEMPLATE:" + self.right_type(self.key_uptime) + ".change()}<" + str(
99+
"expression": "{#TEMPLATE:" + self.right_type(self.key_uptime) + ".change()}>" + str(
100100
self.plugin_config("uptime"))
101101
}) + template.trigger({
102102
"name": "PostgreSQL Health: cache hit ratio too low on {HOSTNAME} ({ITEM.LASTVALUE})",

0 commit comments

Comments
 (0)