ZABBIX 3.0 Monitoring MongoDB performance "OK"

Source: Internet
Author: User

System Environment:centos7.2zabbix-3.4 first, the principleView the status of MongoDB with the following command: Echo "Db.serverstatus ()" | MONGO Adminecho "Db.serverstatus (). Opcounters" | MONGO Admin Second, the configuration process 1. Add the MongoDB path to the system environment:Vim/etc/profileexport Path=/usr/local/mongodb/bin: $PATH Save Exit Source/etc/profile 2. Add mongodb corresponding key file:Cat >/etc/zabbix/zabbix_agentd.conf.d/userparameter_mongodb.conf << enduserparameter=mongodb.status[*],/ Bin/echo "Db.serverstatus (). $" | /usr/bin/mongo Admin | grep "\<$2\>" | Awk-f: ' {print $$2} ' |awk-f, ' {print $$1} ' end restart AGENTD service:/etc/init.d/zabbix-agentd restart 3. Download the MongoDB Template:Access in Browser:https://github.com/linux503/zabbix_temple/blob/master/Templates_Mongodb.xml Click "Clone or Download"-"Download ZIP" to download all the template XML files to the Windows disk: 4. Import the Zabbix Template:Click "Select File"-"Import the MongoDB template XML file: 5. Add host to Template: 6. "Configuration"-"template"-"MongoDB template"-" monitoring Item "-"All selected monitoring item "--" batch update " --" type: Zabbix client "--" update " 7. Add to the aggregation graph: :

ZABBIX 3.0 Monitoring MongoDB performance "OK"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.