-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
rl 8.10, zabbix 7.0.13, mongodb 4.4.29
-
Support backlog
Hello,
while configuring MongoDB monitoring this issue was observed,
steps to reproduce:
1. get agent2-7.0.13.el8.x86, mongodb plugin and zabbix_get
2. setup plugin to work with either localhost mongodb instance or remote
3. run: zabbix_get -s "127.0.0.1" -k mongodb.ping["tcp:127.0.0.1:27017","user","pass"]
In a result this would be returned:
ZBX_NOTSUPPORTED: Received empty response from Zabbix Agent at [127.0.0.1]. Assuming that agent dropped connection because of access permissions.
And this would be logged in syslog:
Jun 3 18:13:36 rocky8 zabbix_agent2[39957]: Press Ctrl+C to exit.
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: panic: Failed to create connection with plugin /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb: failed to get connection within the time limit 3000000000.
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: goroutine 640 [running]:
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: golang.zabbix.com/agent2/plugins/external.(*Plugin).Configure(0xc0000c4210, 0xc00012a1c8, {0xdd3820, 0xc000310820})
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: #011/tmp/build-alma-8-x86_64.pCaAv95S/buildroot/BUILD/zabbix-7.0.13/src/go/plugins/external/plugin.go:323 +0x1ad
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: golang.zabbix.com/agent2/internal/agent/scheduler.(*configuratorTask).perform.func1()
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: #011/tmp/build-alma-8-x86_64.pCaAv95S/buildroot/BUILD/zabbix-7.0.13/src/go/internal/agent/scheduler/task.go:535 +0xfe
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: created by golang.zabbix.com/agent2/internal/agent/scheduler.(*configuratorTask).perform in goroutine 67
Jun 3 18:16:35 rocky8 zabbix_agent2[39957]: #011/tmp/build-alma-8-x86_64.pCaAv95S/buildroot/BUILD/zabbix-7.0.13/src/go/internal/agent/scheduler/task.go:533 +0xcc
Jun 3 18:16:35 rocky8 systemd[1]: zabbix-agent2.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 3 18:16:35 rocky8 systemd[1]: zabbix-agent2.service: Failed with result 'exit-code'.
Jun 3 18:16:45 rocky8 systemd[1]: zabbix-agent2.service: Service RestartSec=10s expired, scheduling restart.
Jun 3 18:16:45 rocky8 systemd[1]: zabbix-agent2.service: Scheduled restart job, restart counter is at 1.
Jun 3 18:16:45 rocky8 zabbix_agent2[40495]: Starting Zabbix Agent 2 (7.0.13)
+ agent would restart, as it is shown in this log,
software used: rockylinux8.10, zabbix 7.0.13, mongodb 4.4.29