[ZBX-24229] Zabbix MongoDB Agent 2 Plugin - Stops gathering data Created: 2024 Mar 14  Updated: 2024 Mar 14  Resolved: 2024 Mar 14

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

Type: Problem report Priority: Trivial
Reporter: Damian Cancela Assignee: Zabbix Support Team
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2024-03-14-15-06-30-294.png    

 Description   

We are trying to monitor some MongoDB nodes with zabbix agent 2 version 6.0.26, as we need to authenticate with Mongo using TLS certificate we had to define a Session in config file as:

Plugins.MongoDB.System.Path=/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb

Plugins.MongoDB.Sessions.Prod.Uri=tcp://d42amdmlshddb0.mongodb.DOMAIN.com:27017
Plugins.MongoDB.Sessions.Prod.User=zabbix
Plugins.MongoDB.Sessions.Prod.Password=********
Plugins.MongoDB.Sessions.Prod.TLSConnect=verify_ca
Plugins.MongoDB.Sessions.Prod.TLSCAFile=/etc/zabbix/mongo-ca.crt

We are using template MongoDB node by Zabbix agent 2, for this config we had to change items key to use Session and not connect string/user/pass macros.

Everything is looking fine regarding monitoring, items are able to gather stats, ping, collections and db list with Discovery rules.

The problem starts when we stop mongo db service, we got the alerts as we should for that but some minutes later the host in the frontend becomes unavailable throwing ZBX TCP Read TimedOut

 

Those Mongo items are zabbix agent (passive). 

 

 


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