Hi Erik
On 03/20/2015 09:17 PM, Erik Weber wrote:
I've had a few incidents where conntrack logging has filled the /var
partition, and break provisioning of new VMs (unable to save password).
And this got me thinking that there must be a way to monitor VR disk space..
We have had the same problem.
We created some tools a while ago for that like
https://github.com/swisstxt/cloudstack-nagios which helps you monitor
CloudStack VRs in nagios or icinga.
But recently we switch to Ansible for managing (security updates, config
changes, package install) the running VRs. So you can basically make a
playbook where you can setup the monitoring on the VRs.
I created a example project. It uses a "dynamic inventory" by fetching
all the routers using the API. See
https://github.com/resmo/ansible-cloudstack-routers
You can run the playbooks scheduled by a cronjob or manually, using
check mode (aka dry-run) to see what would have changed and you are also
able to limit the targets like updating the backup routers first, and
then the masters, etc.
Hope that helps :)
Yours
René