[ZBX-21272] New MongoDB plugin timeout Created: 2022 Jun 29  Updated: 2024 Apr 10  Resolved: 2022 Oct 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.0.6
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Alessandro Lombardi Assignee: Eriks Sneiders
Resolution: Duplicate Votes: 6
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-08-23-10-31-25-924.png    
Issue Links:
Duplicate
duplicates ZBX-21388 MongoDB plugin starts to timeout afte... Closed
Team: Team A
Sprint: Support backlog

 Description   

I have updated to 6.0.6 but the mongodb monitoring for version 5.x is not working.

I have updated the server and also the agent2 on 3 different machines (of 2 different replica set) and after the update of the agent2 I have installed the plugin.

The issue is that I have this issue on all the machines:

 

check 'mongodb.collections.usage["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred

check 'mongodb.oplog.stats["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred

 

I have hide username and password, the issue is on every raw items.

I am using zabbix agent (active) items, using the most recent version of the template.

Any idea?



 Comments   
Comment by Andrei Gushchin (Inactive) [ 2022 Jun 30 ]

Hello Alessandro,

How long does it take connection to mongo if you test it with cli?

Comment by Alessandro Lombardi [ 2022 Jun 30 ]

with mongo client tools the connection is instantaneous, no issues.

the monitoring was also active before our upgrade to mongodb 5.x (the version of mongo before was 4.4.13) about one month ago without any issue.

Comment by Viktor Brel [ 2022 Jul 04 ]

Same for us, it works during the day after an agent2 restart then again timeout occurred.

Comment by Kris Lowet [ 2022 Jul 04 ]

Same problem here after upgrading to 6.0.6.

Comment by Marco Rigo [ 2022 Jul 20 ]

Same for us, after upgrading agent2 and server to 6.0.6 and mongo to 5.x with the plugin zabbix-agent2-plugin-mongodb

Comment by Fabio Papa [ 2022 Jul 22 ]

I can confirm this behaviour too, zabbix agent 2 version 6.2.0 and mongodb plugin version 1.0.0 on Ubuntu 20.04.

This one is living behind a Zabbix Proxy.

Comment by Eriks Sneiders [ 2022 Jul 25 ]

Hello to all.

Would it be possible to get Zabbix agent 2 config fail (with the separate MongoDB plugin config file, if they are separate) and Zabbix agent 2 log file, with trace level logging if possible.

Comment by Alessandro Lombardi [ 2022 Jul 25 ]

Hi Eriks, I have already upload it on the other ticket some weeks ago: https://support.zabbix.com/browse/ZBXNEXT-6891

Agent2 config file
ServerActive=XXX
Server=XXX
Hostname=XXX
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=10
PidFile=/var/run/zabbix/zabbix_agent2.pid
Include=/etc/zabbix/zabbix_agent2.d/*.conf
Include=./zabbix_agent2.d/plugins.d/*.conf
UnsafeUserParameters=1
Timeout=30
HostMetadata=:osname=linux:hostgroup=XXX
TLSConnect=psk
TLSAccept=psk
TLSPSKIdentity=XXX
TLSPSKFile=/etc/zabbix/zabbix_agent.psk
 
Log after a fresh restart this morning:
2022/06/30 07:12:00.205714 Zabbix Agent2 hostname: [xxxx]
2022/06/30 07:12:10.457082 Starting Zabbix Agent 2 (6.0.6)
2022/06/30 07:12:10.457678 OpenSSL library (OpenSSL 1.1.1f  31 Mar 2020) initialized
2022/06/30 07:12:10.457824 using configuration file: /etc/zabbix/zabbix_agent2.conf
2022/06/30 07:12:10.457923 using plugin 'Agent' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.457935 using plugin 'Ceph' (built-in) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.457947 using plugin 'Cpu' (built-in) providing following interfaces: exporter, collector, runner
2022/06/30 07:12:10.457960 using plugin 'DNS' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.457970 using plugin 'Docker' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.457980 using plugin 'File' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.457993 using plugin 'Hw' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458001 using plugin 'Kernel' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458010 using plugin 'Log' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458020 using plugin 'MQTT' (built-in) providing following interfaces: watcher, configurator
2022/06/30 07:12:10.458029 using plugin 'Memcached' (built-in) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.458037 using plugin 'Memory' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458045 using plugin 'Modbus' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458060 using plugin 'MongoDB' (/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.458102 using plugin 'Mysql' (built-in) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.458114 using plugin 'NetIf' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458169 using plugin 'Oracle' (built-in) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.458186 using plugin 'Postgres' (built-in) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.458264 using plugin 'Proc' (built-in) providing following interfaces: exporter, collector
2022/06/30 07:12:10.458276 using plugin 'ProcExporter' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458284 using plugin 'Redis' (built-in) providing following interfaces: exporter, runner, configurator
2022/06/30 07:12:10.458293 using plugin 'Smart' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458301 using plugin 'Sw' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458309 using plugin 'Swap' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458317 using plugin 'SystemRun' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458325 using plugin 'Systemd' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458335 using plugin 'TCP' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458344 using plugin 'UDP' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458352 using plugin 'Uname' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458360 using plugin 'Uptime' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458367 using plugin 'Users' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458376 using plugin 'VFSDev' (built-in) providing following interfaces: exporter, collector
2022/06/30 07:12:10.458384 using plugin 'VFSDir' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458392 using plugin 'VfsFs' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458401 using plugin 'WebCertificate' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458409 using plugin 'WebPage' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458416 using plugin 'ZabbixAsync' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458425 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator
2022/06/30 07:12:10.458433 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits
2022/06/30 07:12:10.458440 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter
2022/06/30 07:12:10.458534 Plugin support version 1.0
2022/06/30 07:12:10.458563 Zabbix Agent2 hostname: [xxxx]
2022/06/30 07:12:44.000756 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:12:46.000620 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:12:47.001342 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:12:49.003427 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:12:52.002183 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxauth"]' is not supported: timeout occurred
2022/06/30 07:12:53.002722 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxxxxxx"]' is not supported: timeout occurred
2022/06/30 07:12:55.002506 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:12:58.003663 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:01.004976 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxrequestlogs"]' is not supported: timeout occurred
2022/06/30 07:13:02.000936 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:04.010334 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:05.002476 check 'mongodb.collections.usage["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:06.003464 check 'mongodb.oplog.stats["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:07.001312 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","logxxxx"]' is not supported: timeout occurred
2022/06/30 07:13:07.008614 check 'mongodb.ping["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:08.007290 check 'mongodb.rs.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:09.002356 check 'mongodb.server.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:10.005296 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxstaging"]' is not supported: timeout occurred
2022/06/30 07:13:11.001321 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:13.005243 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:16.000757 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:19.003984 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:20.004115 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:22.003245 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:25.003988 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:26.002839 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","Monthlyxxxx"]' is not supported: timeout occurred
2022/06/30 07:13:28.004307 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:29.001765 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:31.001470 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:34.011084 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:35.003679 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:37.001421 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:38.009599 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:40.001417 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:43.003643 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxaudit"]' is not supported: timeout occurred
2022/06/30 07:13:44.007748 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:46.004064 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:47.006797 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:49.006240 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:52.004167 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxauth"]' is not supported: timeout occurred
2022/06/30 07:13:53.001004 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxxxxxx"]' is not supported: timeout occurred
2022/06/30 07:13:55.005064 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:13:58.002282 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:01.001691 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxrequestlogs"]' is not supported: timeout occurred
2022/06/30 07:14:02.002636 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:04.002236 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:05.008148 check 'mongodb.collections.usage["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:06.004770 check 'mongodb.oplog.stats["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:07.002407 check 'mongodb.ping["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:07.002469 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","logxxxx"]' is not supported: timeout occurred
2022/06/30 07:14:08.009622 check 'mongodb.rs.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:09.001466 check 'mongodb.server.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:10.002346 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxstaging"]' is not supported: timeout occurred
2022/06/30 07:14:11.004853 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:13.001288 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:16.003063 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:19.001442 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:20.005266 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:22.001372 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:25.003921 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:26.001081 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","Monthlyxxxx"]' is not supported: timeout occurred
2022/06/30 07:14:28.000512 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:29.006920 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:31.008555 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:34.001425 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:35.006872 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:37.003803 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:38.009677 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:40.001224 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:43.001805 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxaudit"]' is not supported: timeout occurred
2022/06/30 07:14:44.007538 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:46.004115 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:47.010189 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:49.003535 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:52.006605 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxauth"]' is not supported: timeout occurred
2022/06/30 07:14:53.003635 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxxxxxx"]' is not supported: timeout occurred
2022/06/30 07:14:55.011308 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:14:58.004428 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:01.000888 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxrequestlogs"]' is not supported: timeout occurred
2022/06/30 07:15:02.000740 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:04.001640 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:05.003719 check 'mongodb.collections.usage["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:06.003028 check 'mongodb.oplog.stats["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:07.004220 check 'mongodb.ping["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:07.004470 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","logxxxx"]' is not supported: timeout occurred
2022/06/30 07:15:08.000975 check 'mongodb.rs.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:09.008575 check 'mongodb.server.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:10.001918 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxstaging"]' is not supported: timeout occurred
2022/06/30 07:15:11.001284 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:13.007308 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:16.010577 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:19.004111 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:20.001489 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:22.004101 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:25.000981 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:26.002783 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","Monthlyxxxx"]' is not supported: timeout occurred
2022/06/30 07:15:28.000968 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:29.003190 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:31.001501 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:34.001371 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:35.004073 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:37.000481 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:38.002230 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:40.001528 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:43.000523 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxaudit"]' is not supported: timeout occurred
2022/06/30 07:15:44.005979 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:46.001873 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:47.000997 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:49.001503 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:52.002464 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxauth"]' is not supported: timeout occurred
2022/06/30 07:15:53.006182 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxxxxxx"]' is not supported: timeout occurred
2022/06/30 07:15:55.001131 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:15:58.001419 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:01.006255 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxrequestlogs"]' is not supported: timeout occurred
2022/06/30 07:16:02.001352 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:04.008618 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:05.003235 check 'mongodb.collections.usage["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:06.000792 check 'mongodb.oplog.stats["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:07.015103 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","logxxxx"]' is not supported: timeout occurred
2022/06/30 07:16:07.015339 check 'mongodb.ping["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:08.010350 check 'mongodb.rs.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:09.001307 check 'mongodb.server.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:10.001483 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxstaging"]' is not supported: timeout occurred
2022/06/30 07:16:11.000916 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:13.007405 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:16.006604 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:19.001371 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:20.001797 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:22.006957 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:25.002260 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:26.003832 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","Monthlyxxxx"]' is not supported: timeout occurred
2022/06/30 07:16:28.002824 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:29.002413 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:31.001739 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:34.011113 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:35.003529 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:37.000908 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:38.003894 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:40.007730 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:43.007854 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxaudit"]' is not supported: timeout occurred
2022/06/30 07:16:44.005144 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:46.003377 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:47.003805 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:49.002328 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:49.002395 check 'mongodb.collections.discovery["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:50.001441 check 'mongodb.db.discovery["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:52.003261 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxauth"]' is not supported: timeout occurred
2022/06/30 07:16:53.006506 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxxxxxx"]' is not supported: timeout occurred
2022/06/30 07:16:55.005805 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:16:58.001732 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:01.001357 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxrequestlogs"]' is not supported: timeout occurred
2022/06/30 07:17:02.001047 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:04.001459 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:05.002711 check 'mongodb.collections.usage["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:06.000994 check 'mongodb.oplog.stats["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:07.001132 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","logxxxx"]' is not supported: timeout occurred
2022/06/30 07:17:07.009137 check 'mongodb.ping["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:08.002733 check 'mongodb.rs.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:09.001303 check 'mongodb.server.status["tcp://localhost:27017","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:10.003193 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxxstaging"]' is not supported: timeout occurred
2022/06/30 07:17:11.004246 check 'mongodb.collection.stats["tcp://localhost:27017","xxxx","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:13.003836 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:16.003975 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred
2022/06/30 07:17:19.000989 check 'mongodb.db.stats["tcp://localhost:27017","xxxx","xxxx","xxxx"]' is not supported: timeout occurred

 

I cannot provide you the mongodb config file because the replicaset is managed by Mongo Cloud manager.

The mongodb plugin config file is the default, no customization done. The agent2 log with debug level don't show more details of the issue than what is shown here.

 

Comment by Alessandro Lombardi [ 2022 Jul 26 ]

Is this enough for troubleshooting?

Did you find a way to replicate the issue on your side?

We are stuck like we were before the release of 6.0.6 and of the new plugin.

Comment by Alessandro Lombardi [ 2022 Jul 29 ]

no progress on this?

Comment by Eriks Sneiders [ 2022 Jul 29 ]

Hi, lombardi.aless !

I've looked into the configuration file and everything is set up properly, the same with the log file. Only thing I'd like to ask, based on the config file, you have the default log level 3. Maybe you could bump it up to Trace(log level 5) and show my the Zabbix agent 2 log file then. I am currently on leave from the office and will be back on Tuesday, and could take a look at the log file then if possible.

Comment by Alessandro Lombardi [ 2022 Jul 29 ]

Hey Eriks,
here a partial upload of the log with debug level, as you can see there is exporter task that start and go on timeout after 30 seconds,
 
2022/07/29 13:04:16.001381 executing exporter task for itemid:2386456 key 'mongodb.db.stats["tcp://localhost:27017","xxx","xxx","xxxxxxxstaging46b6da23ade7224247736d54ba564569Full"]'
 
 
2022/07/29 13:04:44.034727 receiving data from [10.0.0.1:10051]
2022/07/29 13:04:44.036859 received [\{"response":"success","info":"processed: 21; failed: 0; total: 21; seconds spent: 0.000547"}] from [10.0.0.1:10051]
2022/07/29 13:04:45.001016 plugin VFSDev: executing collector task
2022/07/29 13:04:45.001066 plugin Cpu: executing collector task
2022/07/29 13:04:45.001076 plugin Proc: executing collector task
2022/07/29 13:04:45.002312 [Proc] In proc.(*Plugin).Collect() queries:3
2022/07/29 13:04:45.008518 [Proc] proc.(*Plugin).Collect() queries:3
2022/07/29 13:04:45.008559 [Proc] proc.(*Plugin).Collect() name:mongod user:mongodb cmdline: pids:[2681]
2022/07/29 13:04:45.008730 [Proc] proc.(*Plugin).Collect() update statistics
2022/07/29 13:04:45.008744 [Proc] End of proc.(*Plugin).Collect()
2022/07/29 13:04:45.009305 executed exporter task for itemid:2187165 key 'systemd.unit.get["walinuxagent.service"]'
2022/07/29 13:04:46.000456 plugin VFSDev: executing collector task
2022/07/29 13:04:46.000507 plugin Cpu: executing collector task
2022/07/29 13:04:46.000520 plugin Proc: executing collector task
2022/07/29 13:04:46.000571 executing exporter task for itemid:2386366 key 'mongodb.db.stats["tcp://localhost:27017","xxx","xxx","backup"]'
2022/07/29 13:04:46.001148 [Proc] In proc.(*Plugin).Collect() queries:3
2022/07/29 13:04:46.004027 failed to execute exporter task for itemid:2386456 key 'mongodb.db.stats["tcp://localhost:27017","xxx","xxx","xxxxxxxstaging46b6da23ade7224247736d54ba564569Full"]' error: 'timeout occurred'
2022/07/29 13:04:46.004067 check 'mongodb.db.stats["tcp://localhost:27017","xxx","xxx","xxxxxxxstaging46b6da23ade7224247736d54ba564569Full"]' is not supported: timeout occurred
 
all the other items failed in the same way.
Connection through mongo shell is quick and without any issue.

Comment by Alessandro Lombardi [ 2022 Aug 02 ]

Hi Eriks,

please let me know if the info provided are enough for helping you in finding the issue, it is important for us to fix the issue as soon as possible.

Thanks!

Alessandro

Comment by Eriks Sneiders [ 2022 Aug 03 ]

Hi, lombardi.aless,

I do not see anything strange in the log, apart from the timeout. If possible could you increase the log level one more time, and set it to Trace (log level 5), there are a couple of important logs in trace that log how well Zabbix agent 2 connects to the MongoDB plugin.

I wanted to ask, how did you set up Zabbix agent 2 ? Was it from source or one of the packages?

Comment by Alessandro Lombardi [ 2022 Aug 03 ]

Hi Eriks,

the log above is already at level 5, what you are searching in particular in the log? I don't see any other error or warning on the log related to the plugin.

The zabbix agent 2 is installed with apt from the zabbix source.

Just to give you more info on our environment:

mongo servers are with Ubuntu 20.04 and are configured as a replicaset with 3 nodes, zabbix agent2  installed on every node and is using the original template for mongo nodes. The only thing we change on the template is using a Zabbix Agent active check instead of passive. Mongodb is version 5.0.8

On the same machines everything was working with the same config until we have upgraded mongodb to version 5.x

Comment by Eriks Sneiders [ 2022 Aug 03 ]

lombardi.aless 

I was looking for this log 

    h.Tracef("plugin %s executing %s", h.name, comms.GetRequestName(reqType)) 

It's Log level 5 for plugins which are compiled separately and log level 4 for pre-compiled plugins, and in the provided log I see such messages for other plugins, but not the MongoDB plugin. Which lead me to believe it's log level 4. But if such a messages does not appear and it's log level 5 then there seems to be a communication issue with the MongoDB plugin. I will try to reproduce the issue with that in mind.

2022/07/29 13:04:46.000456 plugin VFSDev: executing collector task

2022/07/29 13:04:46.000507 plugin Cpu: executing collector task

2022/07/29 13:04:46.000520 plugin Proc: executing collector task 

 

Comment by Alessandro Lombardi [ 2022 Aug 03 ]

I can confirm that was log level 5 but I cannot see in the full log something like you posted.

Thanks!

Comment by Alessandro Lombardi [ 2022 Aug 08 ]

any update on this?

Comment by Eriks Sneiders [ 2022 Aug 17 ]

Hi, lombardi.aless!

I've tried reproducing locally with a package from Zabbix. And the install works Two things I liked to mention and if possible you please take look into it on your side. Since the timeout returned is between Zabbix agent 2 and mongodb plugin.

  • Could you check that the mongodb plugin is running?
    • Once Zabbix agent 2 is started, the first request is executed, and the timeout is returned.
    • Check with `ps aux` or any similar utility if mongodb is running.
  • Check privileges or access rights or anything else that might limit or restrict access to mongodb plugin via Unix sockets.

Have you tried building Zabbix agent 2 and mongodb plugin from source and running it? 

Comment by Alessandro Lombardi [ 2022 Aug 17 ]

Hi Eriks,

everything you mentioned was already tried, I'm trying to debug the plugin with one colleague.

Seems that the connection is established and few seconds after the ping failed and everything goes in timeout.

Did you tested in a mongodb replicaset or on a standalone?

Did you tried with the zabbix template changed to active and not passive checks?

Comment by Alessandro Lombardi [ 2022 Aug 23 ]

Hi Eriks,

any update on this?

I have tested that if I run the command of the check directly on one mongodb machine with:

zabbix_agent2 -t "mongodb.server.status["tcp://localhost:27017","user","password" -c /etc/zabbix/zabbix_agent2.conf -v

the data are read in the output of the command and it takes more or less 1sec, so the timeout issue makes no sense. Sometime running the command manually it gives me the timeout, but most of the time it works.

 

only one time I have seen this message:

maybe this can help you.

Comment by Metin ERDEM [ 2022 Aug 24 ]

I have the same problem, is there a solution?

Comment by Dmitrijs Goloscapovs [ 2022 Aug 24 ]

Currently failing to reproduce, seems to be working as expected. Most likely there is influence of some additional factors.

Comment by Rostislav Palivoda [ 2022 Aug 25 ]

Please provide environment with reproducable problem. 

Comment by Alessandro Lombardi [ 2022 Aug 25 ]

it has no sense that you have put the ticket to CLOSE, other people has the same issue. That it works on your side is not a good reason to close the issue.

There is also the ticket https://support.zabbix.com/browse/ZBX-21388 that is confirmed by Zabbix. In the ticket there is a way to reproduce, did you test the same on 6.0.x to reproduce?

Comment by Sébastien Blaisot [ 2022 Aug 29 ]

I agree, this ticket should not have been closed. I face the same issue.

Debian 11, zabbix-agent2 6.2.1, mongoDB 4.2.22 installed with upstream packages from http://repo.mongodb.org/apt/debian

Comment by Eriks Sneiders [ 2022 Sep 26 ]

Hi all!

A fix to a similar issue, and probably the same cause as for this timeout, has been implemented in this ticket https://support.zabbix.com/browse/ZBX-21388. The fix also added additional logging so should this issue persist it will be easier to resolve.

Generated at Wed Apr 30 06:16:54 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.