Unable to load any check from config 'postgres' after updating agent to version 7.23.0-jmx
Hi I've just updated the datadog agent image to 7.23.0-jmx from 7.21.0-jmx (nothing else has changed) and I can see the following error:
| CORE | ERROR | (pkg/collector/scheduler.go:201 in GetChecksFromConfigs) | Unable to load the check: unable to load any check from config 'postgres'
Agent (v7.23.0) status
`Getting the status from the agent.
===============
Agent (v7.23.0)
===============
Status date: 2020-11-30 04:43:35.751344 EST
Agent start: 2020-11-30 04:39:04.843463 EST
Pid: 7304
Go Version: go1.14.7
Python Version: 3.8.5
Build arch: amd64
Agent flavor: agent
Check Runners: 4
Log Level: info
Paths
=====
Config File: c:\programdata\datadog\datadog.yaml
conf.d: c:\programdata\datadog\conf.d
checks.d: c:\programdata\datadog\checks.d
Host Info
=========
bootTime: 2020-11-30 02:37:40.000000 EST
os: windows
platform: Windows Server 2016 Datacenter
platformFamily: Windows Server 2016 Datacenter
platformVersion: 10.0 Build 17763
procs: 17
uptime: 2h1m58s
Metadata
========
hostname_source: container
=========
Collector
=========
Running Checks
==============
cpu
---
Instance ID: cpu [OK]
Configuration Source: file:c:\programdata\datadog\conf.d\cpu.d\conf.yaml.default
Total Runs: 15
Metric Samples: Last Run: 8, Total: 114
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 0, Total: 0
Average Execution Time : 4ms
Last Execution Date : 2020-11-30 04:43:35.000000 EST
Last Successful Execution Date : 2020-11-30 04:43:35.000000 EST
docker
------
Instance ID: docker [OK]
Configuration Source: file:c:\programdata\datadog\conf.d\docker.d\conf.yaml.default
Total Runs: 6
Metric Samples: Last Run: 278, Total: 1,668
Events: Last Run: 0, Total: 2
Service Checks: Last Run: 1, Total: 6
Average Execution Time : 25.298s
Last Execution Date : 2020-11-30 04:43:10.000000 EST
Last Successful Execution Date : 2020-11-30 04:43:10.000000 EST
memory
------
Instance ID: memory [OK]
Configuration Source: file:c:\programdata\datadog\conf.d\memory.d\conf.yaml.default
Total Runs: 14
Metric Samples: Last Run: 17, Total: 238
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 0, Total: 0
Average Execution Time : 0s
Last Execution Date : 2020-11-30 04:43:34.000000 EST
Last Successful Execution Date : 2020-11-30 04:43:34.000000 EST
ntp
---
Instance ID: ntp:d884b5186b651429 [OK]
Configuration Source: file:c:\programdata\datadog\conf.d\ntp.d\conf.yaml.default
Total Runs: 1
Metric Samples: Last Run: 1, Total: 1
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 1, Total: 1
Average Execution Time : 5.995s
Last Execution Date : 2020-11-30 04:40:11.000000 EST
Last Successful Execution Date : 2020-11-30 04:40:11.000000 EST
uptime
------
Instance ID: uptime [OK]
Configuration Source: file:c:\programdata\datadog\conf.d\uptime.d\conf.yaml.default
Total Runs: 14
Metric Samples: Last Run: 1, Total: 14
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 0, Total: 0
Average Execution Time : 0s
Last Execution Date : 2020-11-30 04:43:26.000000 EST
Last Successful Execution Date : 2020-11-30 04:43:26.000000 EST
Loading Errors
==============
postgres
--------
Core Check Loader:
Check postgres not found in Catalog
JMX Check Loader:
check is not a jmx check, or unable to determine if it's so
Python Check Loader:
unable to import module 'postgres': No module named 'postgres'
========
JMXFetch
========
Initialized checks
==================
no checks
Failed checks
=============
no checks`
Agent (v7.21.0) status
Getting the status from the agent.
===============
Agent (v7.21.0)
===============
Status date: 2020-11-30 04:21:52.457079 EST
Agent start: 2020-11-30 04:13:07.962853 EST
Pid: 5992
Go Version: go1.13.11
Python Version: 3.8.1
Build arch: amd64
Agent flavor: agent
Check Runners: 4
Log Level: info
Paths
=====
Config File: C:\ProgramData\Datadog\datadog.yaml
conf.d: C:\ProgramData\Datadog\conf.d
checks.d: C:\ProgramData\Datadog\checks.d
Host Info
=========
bootTime: 2020-11-30 02:37:40.000000 EST
os: windows
platform: Windows Server 2019 Datacenter
platformFamily: Windows Server 2019 Datacenter
platformVersion: 10.0 Build 17763
procs: 23
uptime: 1h35m59s
Metadata
========
hostname_source: container
=========
Collector
=========
Running Checks
==============
cpu
---
Instance ID: cpu [OK]
Configuration Source: file:C:\ProgramData\Datadog\conf.d\cpu.d\conf.yaml.default
Total Runs: 28
Metric Samples: Last Run: 7, Total: 190
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 0, Total: 0
Average Execution Time : 151ms
Last Execution Date : 2020-11-30 04:21:37.000000 EST
Last Successful Execution Date : 2020-11-30 04:21:37.000000 EST
docker
------
Instance ID: docker [OK]
Configuration Source: file:C:\ProgramData\Datadog\conf.d\docker.d\conf.yaml.default
Total Runs: 12
Metric Samples: Last Run: 242, Total: 2,886
Events: Last Run: 0, Total: 4
Service Checks: Last Run: 1, Total: 12
Average Execution Time : 28.572s
Last Execution Date : 2020-11-30 04:21:40.000000 EST
Last Successful Execution Date : 2020-11-30 04:21:40.000000 EST
memory
------
Instance ID: memory [OK]
Configuration Source: file:C:\ProgramData\Datadog\conf.d\memory.d\conf.yaml.default
Total Runs: 29
Metric Samples: Last Run: 17, Total: 493
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 0, Total: 0
Average Execution Time : 24ms
Last Execution Date : 2020-11-30 04:21:51.000000 EST
Last Successful Execution Date : 2020-11-30 04:21:51.000000 EST
ntp
---
Instance ID: ntp:d884b5186b651429 [OK]
Configuration Source: file:C:\ProgramData\Datadog\conf.d\ntp.d\conf.yaml.default
Total Runs: 1
Metric Samples: Last Run: 1, Total: 1
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 1, Total: 1
Average Execution Time : 698ms
Last Execution Date : 2020-11-30 04:14:50.000000 EST
Last Successful Execution Date : 2020-11-30 04:14:50.000000 EST
postgres (5.0.0)
----------------
Instance ID: postgres:409274f75e9f040f [OK]
Configuration Source: docker:docker://f45c3cadd46836561145d73c9fbb63cc46f73aa93463c695443e7844afafbafd
Total Runs: 29
Metric Samples: Last Run: 30, Total: 870
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 1, Total: 29
Average Execution Time : 1.786s
Last Execution Date : 2020-11-30 04:21:47.000000 EST
Last Successful Execution Date : 2020-11-30 04:21:47.000000 EST
metadata:
version.major: 12
version.minor: 4
version.patch: 0
version.raw: 12.4
version.scheme: semver
Instance ID: postgres:876d394c5cf01cf5 [OK]
Configuration Source: docker:docker://f45c3cadd46836561145d73c9fbb63cc46f73aa93463c695443e7844afafbafd
Total Runs: 29
Metric Samples: Last Run: 30, Total: 870
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 1, Total: 29
Average Execution Time : 1.899s
Last Execution Date : 2020-11-30 04:21:52.000000 EST
Last Successful Execution Date : 2020-11-30 04:21:52.000000 EST
metadata:
version.major: 12
version.minor: 4
version.patch: 0
version.raw: 12.4
version.scheme: semver
uptime
------
Instance ID: uptime [OK]
Configuration Source: file:C:\ProgramData\Datadog\conf.d\uptime.d\conf.yaml.default
Total Runs: 28
Metric Samples: Last Run: 1, Total: 28
Events: Last Run: 0, Total: 0
Service Checks: Last Run: 0, Total: 0
Average Execution Time : 0s
Last Execution Date : 2020-11-30 04:21:43.000000 EST
Last Successful Execution Date : 2020-11-30 04:21:43.000000 EST
========
JMXFetch
========
Initialized checks
==================
no checks
Failed checks
=============
no checks
Hi @Buhhovsky, I'm unable to reproduce your issue, to make the investigation easier could you contact support and send them your logs? Thanks!
I'm also getting this error
Same here, i was trying to upgrade datadog agent and it failed with the same message related to postgres custom check module
Got the same / similar error with 6.x after upgrading from 6.42 to 6.47:
agent[1634125] | CORE | ERROR | (pkg/collector/scheduler.go:249 in GetChecksFromConfigs) | Unable to load the check: unable to load any check from config 'postgres'
Downgraded to 6.46 and it works fine. I am using the debian package.
On 6.X to I've fixed it forcing to use pyhon3 in /etc/datadog-agent/datadog.yaml
python_version: 3
BTW that required to update the redis checks configuration that made host and port mandatory.
Facing the same issue with 6.49.1 on Debian 11, solution from https://github.com/DataDog/datadog-agent/issues/6879#issuecomment-1818779228 worked so far.
This issue has been automatically marked as stale because it has not had activity in the past 15 days.
It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window.
Thank you for your contributions!
Hello, I'm closing this stale issue with no activity. Feel free to reopen it if you have any question. Thanks!