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