The ability to receive email notification when a MongoDB error occurs is available in FileCloud version 18.2 and later.
For security purposes, to initially access the API, you must now change the default API key. If you do not change it, when you enter a command to call the API, an error is returned.
Note: You are only required to change the default API key initially; after that, you can continue to use the new key you entered.
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?
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.