MongoDB ReplicaSet Monitor

This custom check script will verify that a MongoDB RepliaSet is alive and will check if any of the members of the Replica Set are down.

This can be used to montior any MongoDB ReplicaSet and we recommend you use it to monitor your ServerPing Replia Set.

  • Download this script and place it on your WHMCS server
  • Edit the script and enter in your MongoDB hostnames, username and password and set the replica set name to serverping.
  • Create a random number/letter string to be used as a key.
  • Add a Custom HTTP/HTTPS check in your ServerPing instance and point to to the url where you placed the check script and include the key.
    • e.g. https://yourdomain.com/mongocheck.php?key=39jdsa32nfaj3mn

Download Script

  • 40 Users Found This Useful
Was this answer helpful?

Related Articles

SolusVM Slave Monitor

  This script will connect to the SolusVM instance running on each slave server listed, if it is...