Ad Widget

Collapse

how to install new mongodb plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kawanjaberi
    Junior Member
    • Sep 2019
    • 8

    #1

    how to install new mongodb plugin

    I want to install https://repo.zabbix.com/zabbix-agent...el7.x86_64.rpm on my server but I couldn'i install it because I get conflict error with zabbix agent2.

    Also I add manual Plugins.MongoDB.System.Path=/path/to/executable/mongodb to /etc/zabbix/zabbix_agent2.d/plugins.d/mongodb.conf but again with below error So would you please help me how to can install this extra plugin and where is that path which I should write down on config file?????




  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    MongoDB plugin is there out-of-the-box so you don't need to add it separately...


    Why exactly you cannot connect to your mongoDB, I cannot tell, never used it.

    Comment

    • kawanjaberi
      Junior Member
      • Sep 2019
      • 8

      #3
      if you check below link:


      because of some bug for mongodb plugin on agent we need too add new plugin in zabbix repository
      example support mongo vesrion 5 or get i/o time out error
      also below link: https://support.zabbix.com/browse/ZBX-20404 your colleagues comment and close.
      Attached Files

      Comment

      • vladimir_lv
        Senior Member
        • May 2022
        • 240

        #4
        rpm --force zabbix-agent2-plugin-mongodb-1.0.0-1.el7.x86_64.rpm
        is it doesn't help?

        Comment

        • kawanjaberi
          Junior Member
          • Sep 2019
          • 8

          #5
          Thanks
          I Installed with --force switch but when add Plugins.MongoDB.System.Path variable. I got error. my agent is zabbix-agent2 v 6.0.5, and according to Zabbix team external plugin support from v6.0.6.

          Many thanks for helping and supporting.

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            6.0.5 still has OOB plugin.. starting from 6.0.6 it will be separate install... https://www.zabbix.com/documentation...rade_notes_606
            But functionality is same

            Looking at the pics you added... Config file needs "Path to Plugin executable". You provided path to mongo executable... Those are different things. And your error reflect that also... "panic: failed to create connection to plugin /usr/bin/mongo"

            Comment


            • kawanjaberi
              kawanjaberi commented
              Editing a comment
              Would you please check my reply message.
          • kawanjaberi
            Junior Member
            • Sep 2019
            • 8

            #7
            I now but when add "Path to Plugin executable" to mongo plugin executable too I have error as below pictures.
            So would you please how to find exact path?

            I use below command to find files belong to mongo plugin

            [root@localhost ~]# rpm -ql zabbix-agent2-plugin-mongodb
            /etc/zabbix/zabbix_agent2.d/plugins.d/mongodb.conf
            /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb
            /usr/share/doc/zabbix-agent2-plugin-mongodb-1.0.0
            /usr/share/doc/zabbix-agent2-plugin-mongodb-1.0.0/LICENSE
            /usr/share/doc/zabbix-agent2-plugin-mongodb-1.0.0/README.md


            [root@localhost ~]# ll /usr/sbin/zabbix-agent2-plugin/
            total 10776
            -rwxr-xr-x. 1 root root 11034248 Jun 8 07:16 zabbix-agent2-plugin-mongodb

            so this file is executable but when insert in that variable I have below error.


            [root@localhost ~]# zabbix_agent2 -t mongodb.ping["tcp://127.0.0.1:27017","zabbix","zabbix"]
            2022/06/18 21:48:26.515818 cannot register plugins: failed to parse agent version strconv.Atoi: parsing "1.0": invalid syntax
            zabbix_agent2 [8891]: ERROR: cannot register plugins: failed to parse agent version strconv.Atoi: parsing "1.0": invalid syntax



            Attached Files

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #8
              Unfortunately I have no answer for you. I have not used agent2 (yet) and it is all foreign territory for me...

              Comment

              • kawanjaberi
                Junior Member
                • Sep 2019
                • 8

                #9
                So how can help me? ))

                Comment

                • bugrakeskin
                  Junior Member
                  • Nov 2022
                  • 5

                  #10
                  Hi Friends,

                  I am a newbie in forums.. can you help me

                  ::: Zabbix 6.0 LTS - i have a mongo cluster , 1 primary and 2 slaves.

                  Problem : I can get data only i restart the agent2 on mongodb.

                  What i did:

                  MongoDB side ;

                  User created with root priviledges(for testing)
                  ​agent2 is installed.
                  agent2 is active&passive working without errors.

                  Zabbix side;

                  MongoDB server is created in the GUI. >> Mongodb Temp. for agent2 is added. >> The Macros is filled with | user name , password and tcp:\\xxx-port

                  When i restart the agent2 i can see the data is coming but only one time. No refreshing.

                  Am i doing something wrong?

                  Thank you.​​​​

                  Comment

                  Working...