-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Description
π I have found these related issues/pull requests
None found for this particular issue
π‘οΈ Security Policy
- I have read and agree to Uptime Kuma's Security Policy.
π Description
I am trying to create a PostgreSQL monitor to periodically check replication status. I am able to create the monitor and the SQL query without issue with an appropriate connection string. However, the status never changes from offline. Looking at the logs, I see numerous logs like:
[MONITOR] WARN: Monitor #24 'Standby CNPG Cluster Sync': Failing: Password is undefined. | Interval: 60 seconds | Type: postgres | Down Count: 0 | Resend Interval: 0
My password is correct and doesn't have any special characters warranting URL encoding. I've tried both methods:
uptimekuma_status:[email protected]:5432/postgres?sslmode=disable
postgresql://uptimekuma_status:[email protected]:5432/postgres?sslmode=disable
I suspect there is supposed to be a password entry in the UI like with MariaDB, but this does not appear to be the case.
π Reproduction steps
- Create a new monitor of type
PostgreSQL
- Set the connection string as per your environment
- Add a basic query like this:
SELECT CASE
WHEN EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp())) > 30
THEN 1
ELSE 0
END as is_lagging;
- Save the monitor and note it is shown as down.
- Review the logs and note the
Password is undefined
error.
π Expected behavior
Either there should be a password field to enter the password separately or UptimeKuma should accept the password as entered in the connection string.
π Actual Behavior
Monitor does not work
π» Uptime-Kuma Version
louislam\uptime-kuma:1.23.16
π» Operating System and Arch
Talos 1.11.2
π Browser
Firefox 143.0.4 and Chrome Version 141.0.7390.66 (Official Build) (64-bit)
π₯οΈ Deployment Environment
- Runtime Environment:
- Kubernetes (K3S/K8S): Version
1.34.1
- Kubernetes (K3S/K8S): Version
- Database:
- SQLite: Embedded
- Database Storage:
- Filesystem:
- Linux: ext4
- Storage Medium: SSD
- Filesystem:
- Uptime Kuma Setup:
- Number of monitors:
15
- Number of monitors:
π Relevant log output
[MONITOR] WARN: Monitor #24 'Standby CNPG Cluster Sync': Failing: Password is undefined. | Interval: 60 seconds | Type: postgres | Down Count: 0 | Resend Interval: 0