RETIRED, The LMA Infrastructure Alerting plugin installs necessary tools to provide the alerting functionality of the LMA toolchain
Go to file
Simon Pasquier 61bb01d49c Add documentation about alerts on InfluxDB metrics
Change-Id: Icd82f0ececeeec1117c303150a603e2c69ae54fa
2015-11-20 10:21:45 +01:00
deployment_scripts/puppet Align with the new alarm schema 2015-10-27 10:44:28 +00:00
doc Add documentation about alerts on InfluxDB metrics 2015-11-20 10:21:45 +01:00
repositories Bootstrap the plugin structure 2015-07-09 17:02:54 +02:00
specs Initial spec for the plugin 2015-07-09 16:59:23 +02:00
.gitignore Update tests 2015-09-10 11:58:42 +02:00
.gitreview Update .gitreview for new namespace 2015-10-17 22:24:19 +00:00
LICENSE Bootstrap the plugin structure 2015-07-09 17:02:54 +02:00
README.md Replace 'stackforge' references by 'openstack' 2015-10-23 09:21:36 +02:00
build_plugin-requirements.txt Update tox environments 2015-09-23 11:31:11 +02:00
deployment_tasks.yaml Add tools task 2015-09-08 11:23:45 +02:00
docs-requirements.txt Update tox environments 2015-09-23 11:31:11 +02:00
environment_config.yaml Define new role infrastructure_alerting 2015-09-08 11:23:41 +02:00
functions.sh Upgrade fuel-library modules to 7.0 2015-10-23 17:34:51 +02:00
metadata.yaml Replace 'stackforge' references by 'openstack' 2015-10-23 09:21:36 +02:00
node_roles.yaml Define new role infrastructure_alerting 2015-09-08 11:23:41 +02:00
pre_build_hook Upgrade fuel-library modules to 7.0 2015-10-23 17:34:51 +02:00
tasks.yaml Define new role infrastructure_alerting 2015-09-08 11:23:41 +02:00
test-requirements.txt Add documentation placeholder 2015-09-18 17:48:56 +02:00
tox.ini Pass HOME variable to the test environments 2015-10-09 15:30:22 +02:00
volumes.yaml Dedicate a Logical Volume for Nagios 2015-09-11 15:55:34 +02:00

README.md

Logging, Monitoring and Alerting (LMA) Infrastructure Alerting Plugin for Fuel

Overview

The LMA Infrastructure Alerting plugin is composed of several services running on a node (base-os role). It provides the alerting functionality for the OpenStack Infrastructure inside the LMA toolchain.

The LMA toolchain is currently composed of these Fuel plugins:

    * [LMA collector Plugin](https://github.com/openstack/fuel-plugin-lma-collector)
    * [InfluxDB-Grafana Plugin](https://github.com/openstack/fuel-plugin-influxdb-grafana)
    * [Elasticsearch-Kibana Plugin](https://github.com/openstack/fuel-plugin-elasticsearch-kibana)

Requirements

Requirement Version/Comment
Mirantis OpenStack compatility 7.0 or higher
LMA Collector Fuel plugin 0.8 or higher
InfluxDB-Grafana Fuel plugin (optional) 0.8 or higher

Recommendations

None.

Limitations

Adding and removing node to/from an environment won't reconfigure the Nagios server. This limitation is due to the missing ability of Fuel Plugin Framework to apply plugin tasks (puppet apply) when these operations occur.

Installation Guide

LMA Infrastructure Alerting Plugin install from the RPM file

To install the LMA Infrastructure Alerting Plugin from the RPM file of the plugin, follow these steps:

  1. Download the plugin from the Fuel Plugins Catalog.

  2. Copy the plugin file to the Fuel Master node. Follow the Quick start guide if you don't have a running Fuel Master node yet.

    scp lma_infrastructure_alerting-0.8-0.8.0-0.noarch.rpm root@<the Fuel Master node IP address>:
    
  3. Install the plugin using the fuel command line:

    fuel plugins --install lma_infrastructure_alerting-0.8-0.8.0-0.noarch.rpm
    
  4. Verify that the plugin is installed correctly:

    fuel plugins
    

LMA Infrastructure Alerting Plugin install from source

To install the LMA Infrastructure Alerting Plugin from source, you first need to prepare an environement to build the RPM file of the plugin. The recommended approach is to build the RPM file directly onto the Fuel Master node so that you won't have to copy that file later.

Prepare an environment for building the plugin on the Fuel Master Node

    1. Install the standard Linux development tools:
    # yum install createrepo rpm rpm-build dpkg-devel
    
    1. Install the Fuel Plugin Builder. To do that, you should first get pip:
    # easy_install pip
    
    1. Then install the Fuel Plugin Builder (the fpb command line) with `pip:
    # pip install fuel-plugin-builder
    

Note: You may also have to build the Fuel Plugin Builder if the package version of the plugin is higher than package version supported by the Fuel Plugin Builder you get from pypi. In this case, please refer to the section "Preparing an environment for plugin development" of the Fuel Plugins wiki if you need further instructions about how to build the Fuel Plugin Builder.

    1. Clone the LMA Infrastructure Alerting Plugin git repository:
    # git clone git@github.com:openstack/fuel-plugin-lma-infrastructure-alerting.git
    
    1. Check that the plugin is valid:
    # fpb --check ./fuel-plugin-lma-infrastructure-alerting
    
    1. And finally, build the plugin:
    # fpb --build ./fuel-plugin-lma-infrastructure-alerting
    
    1. Now you have created an RPM file that you can install using the steps described above:
    # ls ./fuel-plugin-lma-infrastructure-alerting/lma_infrastructure_alerting-0.8-0.8.0-1.noarch.rpm
    ./fuel-plugin-lma-infrastructure-alerting/lma_infrastructure_alerting-0.8-0.8.0-1.noarch.rpm
    

User Guide

LMA-Infrastructure-Alerting plugin configuration

  1. Create a new environment with the Fuel UI wizard.

  2. Click on the Settings tab of the Fuel web UI.

  3. Scroll down the page, enable the "LMA Infrastructure Alerting Server plugin" and fill-in the required fields.

    • The password to access Nagios web interface.
    • The recipient email address
    • The sender email address
    • The SMTP server IP and port
    • Fill-in autentication parameters if enabled.
  4. Add one node with the "Infrastructure Alerting" role.

Disks partitioning

The plugin uses:

  • 20% of the first disk for the operating system by honoring the range of 15GB minimum and 50GB maximum.
  • 20GB for Nagios data and logs (/var/nagios).
  • 10GB for /var/log.

It is recommended to review the partitioning done by Fuel before the deployment and adapt it to your requirements.

Testing

Nagios

Once installed, you can check that Nagios is working by pointing your browser to this URL:

http://<HOST>:8001

Where HOST is the IP address or the name of the node that runs the server.

You should be able to login using the username nagiosadmin and password entered for the configuration of the plugin.

Known issues

None.

Release Notes

0.8.0

  • Initial release of the plugin. This is a beta version.

Development

The OpenStack Development Mailing List is the preferred way to communicate, emails should be sent to openstack-dev@lists.openstack.org with the subject prefixed by [fuel][plugins][lma].

Reporting Bugs

Bugs should be filled on the Launchpad fuel-plugins project (not GitHub) with the tag lma.

Contributing

If you would like to contribute to the development of this Fuel plugin you must follow the OpenStack development workflow.

Patch reviews take place on the OpenStack gerrit system.

Contributors