-
Problem report
-
Resolution: Won't fix
-
Critical
-
None
-
5.0.32, 6.0.14, 6.4.0, 7.0.0alpha1
-
None
Steps to reproduce:
- install mongodb locally: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-red-hat/
- create some user: https://www.mongodb.com/docs/v2.6/tutorial/add-user-administrator/
- install Agent 2 latest from any major version
- setup agent2 plugin configuration:
Plugins.MongoDB.System.Path=/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb Plugins.MongoDB.Sessions.local.Uri=tcp://localhost:27017 Plugins.MongoDB.Sessions.local.User=siteUserAdmin Plugins.MongoDB.Sessions.local.Password=password
- add host to be monitred with MongoDB template using session 'local'
- add some active/passive templates
- stop mongodb
- get data gaps for passive items on the host
- get the logs from Server:
... 2809872:20230317:085513.208 resuming Zabbix agent checks on host "VM4": connection restored 2809872:20230317:085517.208 Zabbix agent item "mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]" on host "GYVM4" failed: first network error, wait for 15 seconds 2809872:20230317:085536.220 Zabbix agent item "mongodb.collections.usage["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$MONGODB.PASSWORD}"]" on host "GYVM4" failed: another network error, wait for 15 seconds ...
Result:
Passive checks not working properly due to the incorrect response from agent 2 for some failed checks.
Expected:
Not working MongoDB is not a Agent availability status.