Ad Widget

Collapse

need to help to configure mongodb plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahmathulla
    Junior Member
    • May 2013
    • 11

    #1

    need to help to configure mongodb plugin

    Hi All,

    I am trying to configure the Mongodb plugin to monitoring the mongodb servers. I have followed the URL https://code.google.com/p/mikoomi/wiki/03,
    but I stuck in step "Next open up a browser and download the MongoDB Zabbix template." I have searched a lot but am not able to see any template as mentioned.

    Does anybody help me on this matter?

    Regards,
    Rahmathulla B
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    From article:
    Download the MongoDB Plugin shell script and php file from ... and copy them into /etc/zabbix/externalscripts directory on the Zabbix server. Make sure that the php script and shell script are made executable.
    Over this link just also available template.

    Comment

    • rahmathulla
      Junior Member
      • May 2013
      • 11

      #3
      Do we need to install zabbix agent on mongodb server to monitor the same?

      Comment

      • Heilig
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2013
        • 366

        #4
        No. All configuration takes place only on the Zabbix server. On MongoDB server only need to open the port.

        Comment

        • rahmathulla
          Junior Member
          • May 2013
          • 11

          #5
          HI,


          I have configured the plugin, but am not able to resolve the trigger "No Data Received in 5 minutes" which displaying in the Zabbix front end. I have followed different possibilities but no luck. Can you please help me on this?

          regards,
          Rahmath

          Comment

          • Heilig
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2013
            • 366

            #6
            Judging by the trigger, your items from MongoDB template not updated, check it in the latest data. Are they is displayed/refreshed?

            Comment

            • rahmathulla
              Junior Member
              • May 2013
              • 11

              #7
              Hi,

              Yeah, its is updating. I can see that the last value as zero.

              Comment

              • rahmathulla
                Junior Member
                • May 2013
                • 11

                #8
                Hi,

                I can see this in the Zabbix_server log:

                19670:20130510:074030.321 In evaluate_function()Serverhostname:'1.amazonaws.com :mongoDB_plugin_checksum.nodata(300)'
                19670:20130510:074030.321 evaluate_expressions():expression [{13039}=1] cannot be evaluated: Evaluation failed for function: {Serverhostname:mongoDB_plugin_checksum.nodata(300 )}
                19670:20130510:074030.322 query [txnlev:1] [update triggers set value_flags=1,error='Evaluation failed for function: {Serverhostname:mongoDB_plugin_checksum.nodata(300 )}' where triggerid=13566;

                Where Serverhostname is the mongodb hostname.

                I've modified the scipt like as follows,

                cat mikoomi-mongodb-plugin.sh
                #!/bin/bash
                BASE_DIR="/usr/local/share/zabbix/externalscripts"
                /usr/bin/php $BASE_DIR/mikoomi-mongodb-plugin.php -h $1 -p 27018 -z $1
                echo 0

                after that change the key value for Miscellaneous: Data Collector in ( Configuration of templates ยป Configuration of items ) to mikoomi-mongodb-plugin.sh["{HOSTNAME}"].

                And the created host for mongodb server and liked this host to Template_MongoDB then created macros for this host as follows:

                {$MONGODB_HOSTNAME} = Hostname or IP address of mongod or mongos process
                {$MONGODB_PORT} = Port number for mongod or mongos process
                {$MONGODB_ZABBIX_NAME} = The hostname for the MongoDB server/instance as defined in Zabbix

                Comment

                • rahmathulla
                  Junior Member
                  • May 2013
                  • 11

                  #9
                  Hi there,

                  any help will be much appreciated.

                  regards,
                  Rahmath

                  Comment

                  • joshuamcdo

                    #10
                    Originally posted by rahmathulla
                    Hi there,

                    any help will be much appreciated.

                    regards,
                    Rahmath
                    Did anyone ever manage to resolve this? I am also seeing this same issue.

                    J

                    Comment

                    Working...