Install the required packages (Ubunto/Centos):
apt-get update && apt-get install python-apt python-pip build-essential python-dev git python-virtualenv -y yum install python-pip git python-devel python-virtualenv gcc -y
Prepare the virtual environment
virtualenv /root/monitorenv . /root/monitorenv/bin/activate pip install paramiko PyYAML jinja2 httplib2 ansible
Download the playbook
git clone https://github.com/stevekaten/cloud-monitoring-plugin-deploy cd cloud-monitoring-plugin-deploy
Install the required plugin:
ansible-playbook -i hosts holland_mysqldump.yml This will configure the holland_mysqldump plugin on the localhost. ansible-playbook -i hosts mysql_slave.yml This will configure the mysql_slave plugin on the localhost. ansible-playbook -i hosts port_check.yml This will fail with an error message informing you that you need to set a port. ansible-playbook -i hosts port_check.yml -e port=8080 This will configure the port_check plugin on the localhost checking if port 8080 is open. ansible-playbook -i hosts port_check.yml -e '{"host":"rackspace.com","port":"80"}' This will configure the port_check plugin to check rackspace.com:80. ansible-playbook -i hosts port_check.yml -e '{"host":"10.X.X.X","port":"3306"}' This will configure the port_check plugin to check mysql's port 3306 on the ServiceNet address. ansible-playbook -i hosts lsyncd_status.yml This will configure the lsyncd_check plugin.
To UNINSTALL the monitoring, you need to delete the check, removing the related file from /etc/rackspace-monitoring-agent.conf.d/ and restart the Cloud Monitoring agent.