![]() ![]() Test Service Check before restarting Nagios Service etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Running pre-flight check on configuration data. Nagios provides a powerful network monitor tool for all versions of Windows. # Definitions for Monitoring MongoDB Hosts and ServicesĬfg_dir=/usr/local/nagios/etc/objects/mongodb-prod-server Click on the newly configured host (nagiosclient) and if everything is configured correctly, you should see its status. You should see the newly configured host along with localhost on the page. Open your Nagios dashboard and click on the Hosts option from the left sidebar. Now add the MongoDB configuration file in the central Nagios configuration file: etc]$ vi /usr/local/nagios/etc/nagios.cfg sudo systemctl restart nagios Check Monitors. # All services definition can be found here: Service_description Mongo Free ConnectionsĬheck_command check_mongodb!connections!27017!70!80 etc]$ vi /usr/local/nagios/etc/mongodb-prod-server.cfgĬheck_command check_mongodb!connect!27017!2!4 Implicit session: session Nagios Service Definition for MongoDB CommandsĬreate a service definition and place it under the /usr/local/nagios/etc directory. Email alerts can be sent to certain contacts or groups of contacts. ![]() Nagios works by defining certain ‘objects’ such as contacts, commands, hosts, and services. If Monit itself has failed, then Nagios also reports this. You must be logged as an admin user in the admin database: ~]$ /opt/nosql/admin/mongodb/products/mongodb-linux-x86_64-amazon-4.4.1/bin/mongo -host 172.21.9.106 -port 27001 -u admin -pĬonnecting to: mongodb://172.21.9.106:27001/?compressors=disabled&gssapiServiceName=mongodb In such a case, Nagios can report that Monit has flagged a particular failure, and then Monit can provide further details. In this blog post, we will describe steps by steps on how to install, configure, and monitor MongoDB instances using the check_mongodb.py plugin.įor Nagios installation please refer to the official documentation: 7/ Create MongoDB user One of the most popular MongoDB plugins for Nagios is the check_mongodb.py available here: The power of Nagios is its ability to integrate custom plugins developed by the community. MongoDB Utilities (mongostat, mongotop)įor the moment, we are going to leave OPS Manager aside because it can only be used with the MongoDB Enterprise Edition. ![]() Actually, a few monitoring solutions exist for MongoDB: That’s exactly what we gonna do in this blog post series of MongoDB Monitoring solutions. The question comes frequently: How can I monitor my MongoDB cluster (ReplicaSet or Sharded) in a production environment? To answer this question we need first to get an overview of all potential monitoring solutions, and then compare them one by one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |