[ZBX-24230] Zabbix MongoDB Agent 2 Plugin - Stops gathering data Created: 2024 Mar 14 Updated: 2025 Feb 14 Resolved: 2025 Feb 10 |
|
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: | Stanislavs Jurgensons |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
||||||||||||
Issue Links: |
|
||||||||||||
Story Points: | 2 |
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://HOST.mongodb.DOMAIN.com:27017 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. Steps 1. 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, Host Availability becomes red and Zabbix proxy logs are showing: 48520:20240314:143542.085 Zabbix agent item "mongodb.collection.stats["{$MONGODB.SESSION}",,,"amdm_dev_schedule","core_non_training_slots"]" on host "HOST.mongodb.DOMAIN.com" failed: first network error, wait for 15 seconds
Those Mongo items are zabbix agent (passive).
2. Besides that, when we start again mongo db service, the monitoring does not recover, even if we try to test an item manually
Note: we tried also changing the Mongo item types from passive to active, this way when we stop the mongo service the host does not become unavailable in zabbix frontend, but when we start the Mongo service again, even then the monitoring does not recover, we have wait for 30 minutes or more the the latest value for Mongo items are before the mongo service was stopped. The other standar linux monitoring like cpu, memory, etc is not interrupted any time.
The only way to solve this is restarting zabbix-agent2 service. |