The ability to receive email notification when a MongoDB error occurs is available in FileCloud Server version 18.2 and later.
Administrators can use tools provided by FileCloud Server to review current statistics and monitor MongoDB.
- Get stats using an HTTP REST API. This is useful for integration with external monitoring systems like Nagios.
- Review email notifications about MongoDB errors. This is useful for preventing loss of data. For example, if you have a High Availability (HA) deployment, and one day after a VMs in the cluster dies you discover that the master MongoDB node replication failed weeks ago, then you would not be able to recover all of your data.
What do you want to do?
Note that the password is set to apipassword by default and you can modify it in Settings->Admin.
RETURNED XML DATA
The XML can be parsed to graph various values and to trigger various actions.
In FileCloud Server version 18.2 and later, you will automatically receive an email notification on MongoDB cluster failure status.
Please note that when MongoDB fails, then nothing will respond through FileCloud including the FileCloud cron jobs.
Therefore, the mongo health monitor must be running separately from and independent of FileCloud's cron jobs.
To run MongoHealth:
In FileCloud Server version 18.2 and later, FileCloud includes a mongohealth folder in the following location:
The email address that is sent the notification (TO) is configured by the following variable:
Add the /server/resources/tools/index.php to the cron directly.