Zabbix Monitoring MongoDB

Source: Internet
Author: User

Zabbix Monitoring MongoDB

From the Zabbix shared site, a MongoDB template was found:

Https://share.zabbix.com/databases/mongodb/mongodb-for-zabbix-3-2

1. Installation of JQ

Yum install-y Epel-releaseyum install-y JQ

2. Create a monitoring account on the monitored server szlinux02 zabbix:

Use Admindb.createuser ({User: "Zabbix", pwd: "Zabbix", roles: [{role: "Clustermonitor", DB: "Admin"}]})

3. Put the mongodb.sh into the/etc/zabbix/directory and add the Execute permission to modify the account password.

chmod A+x/etc/zabbix/mongodb.shvi mongodb.sh

Db_username=zabbix

db_password= Zabbix

4. Place the userparameter_mongodb.conf in the/etc/zabbix/zabbix_agentd.d/directory and modify the actual path of the mongodb.sh file to/etc/zabbix/mongodb.sh

5. Restart the Zabbix service

Systemctl Restart Zabbix-agent

6. Test the fetch data on the ZABBIX server

Zabbix_get-s 192.168.137.4-p 10050-k "Mongodb.status[connections,current]"

7. Import a template in a Web page, add a host, and link a template

650) this.width=650; "title=" clip_image002 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "Alt=" Clip_ image002 "src=" http://s3.51cto.com/wyfs02/M01/96/25/wKioL1kdT8uBym4fAAB4Sq189MI255.jpg "width=" 558 "border=" 0 " height= "292"/>


This article is from the SQL Server deep Dive blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1927172

Zabbix Monitoring MongoDB

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.