Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22534

Zabbix Agent 2 fails to serve passive checks with MongoDB database unreachable

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Critical Critical
    • None
    • 5.0.32, 6.0.14, 6.4.0, 7.0.0alpha1
    • None

      Steps to reproduce:

      1. install mongodb locally: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-red-hat/
      2. create some user: https://www.mongodb.com/docs/v2.6/tutorial/add-user-administrator/
      3. install Agent 2 latest from any major version
      4. 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
        
      5. add host to be monitred with MongoDB template using session 'local'
      6. add some active/passive templates
      7. stop mongodb
      8. get data gaps for passive items on the host
      9. 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.

            esneiders Eriks Sneiders
            edgar.akhmetshin Edgar Akhmetshin
            Team INT
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: