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